|
Re: BEI Gyro Accuracy
As an update: Mostly to you billbo911
I realized I had no "base" code to even drive the bot around, so I decided to work on that first. I am doing the 2 drive motors off of the 16 bit Timer1. Timer0 I decided to make an "event" timer. This way I can say do this after x seconds, or whatever and it will be very easy to do. The resolution is .01 seconds, which should be fine for my needs. The accuracy should be 0.0128% assuming the internal clock has 0% error (pffft! yea right!) and not counting any latency. But this should all be fine for this application. I wrote some simple motor functions to stop, both, stop individually, and set the speeds either together or individually.
I mounted my bread board to the top of the bot, it is a very nice set-up now.
The only problem I am having is that with how the motors are on there, one is turning CW while the other is turning CCW to go forward. So it curves. To solve this, I think I am gonna try to somehow mount the motors both facing the same direction. This should solve the problem.
I can share the plans of the bot and my code if you would like. I assume you can almost just use it with little to no modification from what I have.
-John
|