... | ... | @@ -52,8 +52,9 @@ Try: 60 - seems to work ok, but keeps turning left (as it keeps going even when |
|
|
|
|
|
Stopping the motors in the end helped. But it seemed that the sensor wasn't turning enough when checking, so that the difference between the left and right light values was not large enough, whereby the motors were simply set to move forward, rather than following the light properly. We tried increasing the interval to 300. This didn't seem to make much of a difference, so we increased it up to 500 (the intial value). This seemed to work better (TODO: video), but the robot was turning away from the light rather than towards it. This was due to an error in our code - we simply flipped left and right turns in the code.
|
|
|
|
|
|
We tested in the dark to obtain a bigger light difference.
|
|
|
We tested in the dark to obtain a bigger light difference. In here, the robot's response was easy to observe (TODO: video). Note, though, that the big difference in measured light values caused it to turn A LOT - a little too much.
|
|
|
|
|
|
Switching on everything else again:
|
|
|
|
|
|
TODO: insert program code
|
|
|
|
... | ... | |