I may need to clean it up a bit and add some comments to make it readable. There is lots of double checking in it that may make it confusing to read some of it right now. I will try to get it up soon.
Thank you for the nice comments. I have built another maze and am finding out that this robot seems to be flawless so far
I would expect that there is no difference in the different colored batteries. I guess I was just in the mood for some orange ones when I ordered them.
The way I understand your code and video, the robot remembers every turns he makes. The colected data are store as variables.right? Iâm not too familar with Arduino. Thanks for posting and great job as always.
The robot will store the turns in an array. Every time it goes to turn it checks and sees if the previous move was one where it had to turn around which would indicate a wrong turn was taken. It then goes ahead and corrects this wrong move using some simple move combinations it knows. So it does not end up remembering all the moves it has taken, just the final best path.Â