![]() |
How to program servos
That line was it......please help.
~Bstemp |
Re: How to program servos
Treat them just like you would a motor, except that instead of outputting a speed from -127 to +127, you are outputting a position from -127 to +127. For fun, you can hook the servo to the PWM outputs for one of your motors, and play with the joystick to get a feel for how they work.
|
Re: How to program servos
didn't work....any possible problems/solutions?
|
Re: How to program servos
Quote:
|
Re: How to program servos
Quote:
I thought the readings had to be from 0 to 255... Are you just adding 127 to the outputs at the end of your main loop? Can you actually use +127 .. -127 and I just havent heard about it? Quote:
If you hook a victor up to the outputs, does the little orange light go solid? If it dosent, it means that theres a problem with the code (probibly), and if it IS solid orange, and changes from green to red when you change the signal being sent to it (moving the joystick), then your servo is probibly broken. Also, I read somewhere that last years servos dont work. That might be it. |
Re: How to program servos
Quote:
|
Re: How to program servos
it realy doesnt matter, as long as its a char variable, it doent matter weather is singed or unsigned. And make sure whatever pwms your using are enabled, not used anywhere else and arnt set as digital i/os
|
Re: How to program servos
Quote:
~zBStem |
| All times are GMT -5. The time now is 14:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi