Perfect 90 degree turn.
RollTideKid11
Posts: 8
in BASIC Stamp
I have boe-bot that I am trying to get it to run a pattern I have laid out. It does the first few turns perfect but after that it turns to far. What do I do?
Comments
There are a variety of techniques you could use to get better results. The "standard" way (if there is one) would be to use encoders. Encoders allow feedback from the wheels to make sure the wheel actually rotated as much as you intended them to rotate.
Another way to improve the repeatability of your robot is to power the motors from a regulated power source. As the batteries on the robot drain, the voltage of the batteries drop. This reduced voltage makes the wheels turn slower. By using a regulator between the batteries and the motor, you can insure the motors receive a constant voltage supply.
I discuss the trouble I had getting one of my robot to perform a figure 8 in this post. I wasn't able to get the robot to travel in a predicable way until I added a voltage regulator for the continuous rotation servos.
Don't use the 5V regulator on the BOE to power the servos. I don't think the regulator on the BOE can supply enough current for the servos. You'll probably need to purchase a separate regulator. These regulators only cost a couple dollars so it's not a major expense.
I described the regulator I used in the thread linked above.
Thanks, RollTideKid11