Problem when using Arduino IDE 2.0.0 (Robots too fast)
I was flashing robot 120 and 121 and had a strange problem. The robots were moving faster than robot 126, which was flashed before by Khaled. Firmware commit I used: 495ef3b4
Speed difference is ca. factor 3 and the robots work fine otherwise.
The robot hardware of all three robots is totally fine. I even extracted the binary from robot 126 and putting it in robot 120 makes it move exactly as robot 126.
In the end the problem was the Arduino IDE version... Using Arduino IDE 2.0.0 results in a robot that moves too fast. Using Arduino IDE 1.8.19 fixes the problem.
Open question: Is the old Arduino version buggy and we rely on the bug or is the new Arduino version buggy?
What can we do?
-
try new Arduino IDE > 2.0.0 once it is released -
debug the current firmware, output motor speeds etc. and find out what changes if flashed with new vs. old IDE
Until this is solved: Use Arduino IDE 1.8.19