|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to program servos
That line was it......please help.
~Bstemp |
|
#2
|
|||||
|
|||||
|
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.
|
|
#3
|
|||
|
|||
|
Re: How to program servos
didn't work....any possible problems/solutions?
|
|
#4
|
|||||
|
|||||
|
Re: How to program servos
Quote:
|
|
#5
|
|||||
|
|||||
|
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. |
|
#6
|
|||||
|
|||||
|
Re: How to program servos
Quote:
|
|
#7
|
||||
|
||||
|
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
|
|
#8
|
|||
|
|||
|
Re: How to program servos
Quote:
~zBStem |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2-week FIRST summer program @ WPI | ColleenShaver | General Forum | 20 | 31-05-2009 03:02 |
| how to add steps in the provided encoder program for the edu | Zaramel2002 | Programming | 3 | 11-02-2004 08:35 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| Ahh! Program trick confusing! | archiver | 2001 | 9 | 24-06-2002 02:26 |
| Need help in creating program to use servo's to shift drive | archiver | 2001 | 19 | 24-06-2002 00:35 |