BOE-Bot Digital Encoder Question?
wshipley
Posts: 2
First Question:· Can I use the BOE-Bot Digital Encoder to automaticly adjust my servos to keep my BOE-Bot driving in a straight line?
Second Question:· Does anyone have any guidance on how to do this, I have read most of the documentation on this site, and still don't know how to accomplist this.· You see the servos that came with my BOE-Bot are serverly mis-matched.
Thanks
Second Question:· Does anyone have any guidance on how to do this, I have read most of the documentation on this site, and still don't know how to accomplist this.· You see the servos that came with my BOE-Bot are serverly mis-matched.
Thanks
Comments
2) Have you looked at the "Downloads & Resources" part of the webpage for the wheel encoders? There's a quite involved discussion on using the encoders to correct for wheel motion and some sample code as well.
Servos have quite a bit of variation in manufacturing from manufacturer to manufacturer, model to model, and servo to servo within the same model. The control pulse width is used to set the servo speed (and direction) and it's expected that you might need to use a different pulse width (PULSOUT) for each servo to get approximately the same speed. You can calibrate them by writing a simple program to make the BoeBot move forward, then adjusting the PULSOUT values to get the BoeBot to move in a straight line, at least for some reasonable distance (a few feet).
Thanks.
idea: boe bot have calibration routine, in calibration mode send some pulse to servo and measure distance betwen pulses from encoder, try it with variable pulse lenght - finding zaro and max speed, try it for both wheel, (calculated value store to flash and use in normal mode).
Output from this is also useable for ramping.
Sliping on the flor is standart random variable you can minimalize this by ramping (start and stop slowly).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
C-Bob
Every problem·have at least one·nice, simply and·wrong solution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."