Let's Make Robots!

how to build the source code....

hi...i'm fizan from malaysia...i have to implement a project for fullfill my study...i was developed a robot..but i had a problem to build the robot's source code...for your information i'm using one infrared sensor (GP2D12) to detect the obstacles...but i want the sensor spinning to detect the obstacles....if don't mind can u help me to create the source code by using C languange....thank you for your co-operation...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
i use 2 servo motor for motion the robot...now i don't know how to create the program for sensor and servo motor using C language....

What is your programming experience? Are you already familiar with programming in C or another language? Are you looking for guidance on the logic for your code or are you looking for a primer on programming in C?

There are lots of code examples on this site for controlling servos and using sensors. Not all of the examples are in C, but if you just need help with the approach and logic, they will be helpful.