Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
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
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.
CONTRIBUTE TO THIS THREAD