Help in programming

hello there,
im trying to build an object follower robot using arduino and ultrasonic sensor.
Part list:
-Arduino duemilanove/diecimella
-motordriver shield l293d
-ultrasound sensor hcsr04
-power source through usb
-micro servo
-2 dc motors

firstly it would be helpful if u could guide me to a page that has similar project.

im able to get the servo working. but im unable to get any output from the ping sensor. the serial communicator shows "0cm 0mseconds" what type of define should we use? and to what pin should we assign echo and trig :confused: ? this is the main part where im confused. i would also like to know where i can find info on library functions of <myservo.h> <newping.h> <afmotor.h>. thank you in advance :slight_smile:

Information about newping ...

https://code.google.com/p/arduino-new-ping/

http://forum.arduino.cc/index.php?topic=106043.0

You would probably get more help if you change your title to "Help with line following robot"

If you modify your Original Post you can edit the title.

...R

Hi,

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

It will help us immensely to give you advice.

Tom..... :slight_smile:

And read this first. All of it.