Chapter 4: Boe-Bot Navigation
I've done activities 1 to 3 successfully but I noticed that at the end of each program even after centering (750) both servos, the right wheel go backward by fits and starts about 30° about each second. What's happened? Thank you for help, I hope that's not serious.
Comments
If you use an END statement at the end of your program or just let it "go off the end", the Stamp goes into a low power mode that briefly causes all the I/O pins to become inputs about once a second. That's what's causing the twitch. You could also connect a "pull-down" resistor from the servo control I/O pins to ground. Anything from about 4.7K to 10K will work fine. This forces the servo control signal to stay off when the I/O pins become inputs.
Read the chapter in the PBasic Manual on the STOP and END statements.