zoomx / cellbots

Automatically exported from code.google.com/p/cellbots
0 stars 0 forks source link

Add support for servo calibration #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The servos being used have been modified for continuous rotation. They don't 
however work exactly equal due to slight differences in the resistors used 
for the hack.

We want to add a trim pot and software to let a user slightly adjust the 
signal sent to the left and right servo so the robot drives straight.

Original issue reported on code.google.com by rhickman on 28 Feb 2010 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by glen.arrowsmith on 7 Apr 2010 at 2:49

GoogleCodeExporter commented 9 years ago
Thanks to Ryan, this has now been done.

c = calibrate the servo's center PWM value
Servos that have been modified for continuous rotation don't always center 
themselves
on PWM 90, which should mean no movement at all. This can result in the robot 
not
driving straight and turning poorly at slow speeds. You can now calibrate what 
the
center value is, which on my robot is the command "w 85 86", which centers the 
left
servo on 85 and the right on 86.

Original comment by glen.arrowsmith on 23 Apr 2010 at 5:47