[C.CC USERS] Servo problem

Dennis Meade stone.misc at gmail.com
Sat May 1 00:35:20 BST 2010


Hi guys

It turns out that I don't think the code I wrote to control a servo will 
work as written. The servo's I'm using ( Hitec HS422's) are controlled 
by pulses of between 0.9 and 2.1 milliseconds divided into 180 values 
between thoses limits. I've been looking at the code for timers here and 
there. My head is now spinning! How does one share the Arduino's one 16 
bit timer or is that a problem that has been solved with occam-pi for 
this micorcontroller..  I haven't had the patience to read any of the 
interrupt driven  code and am not really  inclined to do so if this is 
not really a problem. I see there is a C to occam-pi interface.

The one servo that I tested the code on works half way for the two 
values I have available, 0 and 180 degrees. The thing turns to 180 
degrees, but doesn't return to 0 degrees for some reason.






More information about the users mailing list