can any one give me the code for line follower and obstruction avoider?

i have used arduino atmega 168 board for a line follower come obstruction avoider. i have used ultrasonic sensor for sensing.For execessive  cost i ave not used stepper motor. Can any 1 help me the appropriate code??

rickharris5 years ago
Unless there is a library for a line follower I doubt any one is going to write it - that's half the fun of building something - learning new skills along the way.

HOWEVER you had best start with a pencil and paper and writ out a flow chart for what you want the robot to do then you can consider coding up each part of the flow diagram.