line follower code help

hi guys plzz help me out with the code of line follower… i need it urgently and i tried but it doesn’t seem to be working my aurdino is not responding… :confused: need a code to follow a black line on white background and simultaneously for a white line on a black background…the bot should run half track on black line and half track on white line…

To get any real help you’ll need to provide at least:

  • a schematic of your hardware
  • specs of the sensors you’re using
  • you code so far

By the way, what do you mean by “not responding”?

m using tcrt 5000 digital sensor array.....l293D to run motors of 1000rpm using pwm...and pins 10, 11, 6,5 to motor driver....and pins 1,2,3,4,7 to sensor array....

no it was a circuit error the aurdino was not detecting the sensor aray output .....error in circuit...ne it is workin fine bt i need a code urgently preferably pid or any other ....plzz help....