Infrared Line Following Issues
becgracenet
Posts: 3
Hello! I am curious as to how to make a line following program using an infrared sensor could work more efficiently? The infrared sensor covers the entire bottom and uses 8 (S0-S7) sensors, nearly on the ground, to follow a black line. However, the program my peers and I have is fairly choppy and doesn't always work; it's also slow. Does anyone know of any way to improve this? We are also using a ColorPAL from Parallax to detect certain colors, pause, and light up an LED light when the color needed is detected. This part works perfectly fine. The only issue is the line following. Please help, if you can; this is very frustrating.
Comments
Which sensors are you using, analog or digital? If analog, manually test each one of your sensors analog outputs, along the lines of the video below, although your voltage won't vary left/right as mine does.
We could help you more & faster if you post your code & a Youtube video. Obviously skip the ColorPal part for now and get basic line following down pat first.
Edit: I attached another video of a 2-sensor Ardybot which follows a line at a decent speed. If you have 8 sensors you should be able to move much faster than that, the ColorPal speed will likely be your limiter.