|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Servo question
Hello,
This is not about FRC, just a project, and CD is my go to place for electronics and such. I am not an expert on circuit theory or servos, and I am trying to help a friend on a project. He wants it cheep (so no arduinos), and he needs it so when you flip a switch, the servo goes from full forwards, and when you switch it again, it goes full backwards (if it can only go to center, that's fine too). Is there an easy way to do this? I would think that putting the switch inline with the white signal wire would do the trick for center to one end. Can I get some expert advice? Thanks for your time, Micah |
|
#2
|
||||
|
||||
|
Re: Servo question
Quote:
|
|
#3
|
||||
|
||||
|
Re: Servo question
I'd recommend a 555 timer - there are circuits online that do this. They're known rather humorously as 'servo exercisers'. They work by having one 555 generate a pulse train at the required frequency (usually around 50 Hz) and sending it to a second 555 in monostable multivibrator mode that controls the duty cycle. By changing the RC set circuit on the second 555, you can make the servo move back and forth. Find a combination that gets you the two positions you want (most likely by having two different resistors) and use a switch to choose between which one connects to the 555.
Here's a schematic from the good people at the Seattle Robotics Society: http://www.seattlerobotics.org/encod...Excerciser.htm Good luck! Sparks Last edited by Sparks333 : 22-01-2013 at 20:55. |
|
#4
|
||||
|
||||
|
Re: Servo question
Can you not give it a solid voltage and have it think that the signal is constantly high? Or does that not work?
|
|
#5
|
||||
|
||||
|
Re: Servo question
I think I see the confusion. I'm afraid servos are a bit more complex than that - they depend on seeing a pulse-width modulated (PWM) input as sort of a heartbeat, so they can tell the difference between being given a signal and being unplugged (it's a safety thing, and it's good, trust me). A typical hobby servo PWM signal pulses at 50 Hz and has a pulse width of between 1 mS and 2 mS - the wider the pulse width, the greater the angle (with 1.5 mS being neutral). Unfortunately, no servo I know of will respond in any way to a constantly-high or constantly-low signal - they specifically require that they be pulsed at 50 Hz (though that spec can be a little loose) with a pulse width between 1 mS and 2 mS. If you want dead-simple low-power full-CW or full-CCW and don't have the patience to do hobby servos, you might try wiring to a motor directly to a double-pole double-throw switch that either makes the motor rotate CW or CCW, and use limit switches to break connection when you get to your desired angle.
Luck, Sparks Last edited by Sparks333 : 22-01-2013 at 21:31. |
|
#6
|
||||
|
||||
|
Re: Servo question
Quote:
|
|
#7
|
||||
|
||||
|
Re: Servo question
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|