How can I improve the stability and sensor placement for my line-following robot?
Hey! We built a robot with wheels and we are doing line follower using 3 black/white sensors to detect a black line. We place the sensor in front of the robot The problem is that the robot is a bit too large for the line, making it hard to stay on track. Its movements are also unstable and sometimes veers off.
Do you have tips on stabilizing movement or optimizing sensor placement?
Do you have tips on stabilizing movement or optimizing sensor placement?
31 Replies
what is black/white sensor?
IR?
okay
an IR,
I see
if your robot is a rectangle,
what are the 3 sensor's placement?
In the front of the robot
hmm
if all 3 are there
how is the line looking like in comparisation to 1 sensor?
The robot is 34 cm long and 15 cm wide, and the line is 1 cm wide and the sensor is also 1cm wide , the line is been detected but the problem when we do the line following the robot goes off track because it's a bit big
I just thought about implementing a PID controller OR changing the sensor to this
i suppose the way you are implement it
(regardless of path planning) is to basically have the have mid sensor to be always black,
if either side gets black and mid get white-> it rotates the other side
and if all three get black, it stops (reaches end line)?
at the moment?
The problem is the line is being detected as you said but when it make a turn it loose the road
was the logic which i said, the one you are following?
Yes
then it should fairly simple
Your contraint are very tights
you will need to space out your side sensors
by how much?
that you will need to expiriment
i used to use this for my robot
https://robu.in/product/smartelex-rls-08-analog-digital-line-sensor-array/?gad_source=1&gbraid=0AAAAADvLFWdjKsZEIy9j8HVgAieKoBZXC&gclid=CjwKCAiAmrS7BhBJEiwAei59ixmYJcPWidfGqcehHyPi6ptaxsjrM4yolTV374qjGUh3Sp1qbZl_BBoC2KQQAvD_BwE
Nitin Zanwar
Robu.in | Indian Online Store | RC Hobby | Robotics
Buy SmartElex RLS-08 Analog & Digital Line Sensor Array Online at R...
Buy the SmartElex RLS-08 Analog & Digital Line Sensor Array for precise line detection and tracking. Perfect for robotic applications. Shop now!
looks good and saves a hassle of glueing each and every sensor/ Calibrating each sensor
I will try doing that tonight
So it 8 IR like am using, do you recommend adding sensor to the 3 am using?
not really,
it depend on the precision, you are aiming for
you Could improve the SW instead
for example
if you know the style of track being used
you could design the FW to compliment that
if you know the tracks have only right angled turn and no curve,
you could force your robot to do only 90/180 movement.
Welp this is more of a stop gap, but hopefully you get what i mean
Yes i did, but I don't know how the track going to be, am not the one making it so i have to do all cases, i will try what you suggest and give you updates.