compass
I am having a problem getting the BOE-BOT to turn to an exact compass angle. The servo pulsout commands for the turn (PULSOUT 12 & 13, 850) are nested in a·DO LOOP·that reads the compass setting. Once the desired angle is reached, the loop is exited and servos are commanded to stop (PULSOUT 12 & 13, 750). The loop executes correctly and exits at the proper angle, but the BOE-BOT continues to turn·· 5 - 10 degrees past that angle. I have verified that the angle that the loop exits at is the correct angle. Why does the BOE-BOT continue the turn an extra 5 - 10 degrees before executing the stop command?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I think I discovered the problem on my own this morning. It seems that my problem is magnetic interference from the servo motors. When the compass is mounted on the BOE-BOT breadboard, I receive different readings from the same position depending on whether the motors are on or off. I removed the compass from that breadboard and attached it to the BS2 pins further away from the motors and the problem disappeared. Any ideas on how I could shield the compass from servo motor interference?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
There is also a mast designed to hold the compass above the robot chassis that can be found at www.superdroidrobots.com/shop/item.asp?itemid=144.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can handle complexity.. It's the SIMPLE things that confound me.
The Dynaplex Network - Home of The Octabot Project
http://www.thedynaplex.org