hi, i am trying to build a line following robot. i am using arduino rbbb(due, atmega 328) and i have 4 aa batteries 1000 mah for power supply… everything is working except the fact that my qtr sensor doesn’t read the black line correctly… i am using a a black line of 2,3 cm width on a white surface… the problem is that the first three sensors(0,1,2) are working just fine but the the last three (3,4,5) seem to change values simultaneously… for example when the robot is at the left of the line on the white surface all sensors have values near 35… when i move slightly the robot to the right then sensor1 sees the black line and it’s is value is 900+… this goes on for the second and the third sensor. when the 4th sensor sees the black line it seems that the fifth and sixth sensor see it as well, when in reality they are above the white surface… when i move it more to the right and only the sixth sensor is above the black line and five and four are above the white surface the values of the sixth sensor are very near, almost the same, to the values of the other sensors (near 30)… my sensors are connected to analog inputs of the arduino from 0-5… the ground of the arduino connects to the ground of the qtr board and to the ground of the batteries… the qtr vcc connects to arduino 5V pin… i have LEDOn connected to digital pin 10 and i have set it to HIGH… all connection seem right and i have checked them many times but i cannot see where the problem is… my baud rate is 57600 and i have changed it in the example programs (raw and callibrated values) from the qtr library… i am sendind my data to the pc wirelessly via a wixel.
please help! any idea may be very helpull!! thanx…
these are the raw values using the code from the qtr library… they show what happens when i move the robot from left to right…
at the 1st picture values from 4,5,6 seem to be correct but on the 2nd picture sensors 5,6 have values near the values from 4th sensor…