|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Stupid servo
Have you installed a jumper on the pins next to the PWM's so that the servo gets 5 volt power?
|
|
#2
|
|||||
|
|||||
|
Re: Stupid servo
Stupid question: did you enable the robot from the Driver Station?
|
|
#3
|
||||
|
||||
|
Re: Stupid servo
If you can move it by hand (and it doesn't try to resist) when the robot is on but there's no programming, it is not wired correctly* Try a different servo.
*I think |
|
#4
|
|||
|
|||
|
Re: Stupid servo
I have another question to add to the mix: we have just started playing around with a servo and we can get it to move from one end of its range to the other extreme. We have not been able to get a button to set its position in between. Any suggestions on how to set multiple positions? We have already tried various combinations of values and programming loops, but they all seem to move the servo to the same position. P.S. this is with Labview. Thanks for any advice!
|
|
#5
|
|||||
|
|||||
|
Re: Stupid servo
If the full Servo range works, then it might be the value you're feeding it is incorrect and actually too large.
Check the Help for the Servo Set to see the range of values allowed. One thing to do is test with the default servo example code to see if you can control your servo to all those intermediate positions you want to stop at. From the Startup screen (View->Getting Started Window...) lower right corner Find FRC Examples. Actuators->Servo. Change the project target IP to your own team cRIO and use the Run button. You can see the value being sent to the Servo by the front panel controls. |
|
#6
|
|||
|
|||
|
Re: Stupid servo
"Have you installed a jumper on the pins next to the PWM's so that the servo gets 5 volt power?"
Yep "Stupid question: did you enable the robot from the Driver Station?" Yep n_n b If you can move it by hand (and it doesn't try to resist) when the robot is on but there's no programming, it is not wired correctly* Try a different servo. No resistance at all so I'll try a different one tomorrow but I remember trying it on a vex robot and it worked fine. I don't know how the wiring could be wrong it's on the dsc with a jumper right next to it. I put the yellow to sig and red and black to positive and negative. |
|
#7
|
|||
|
|||
|
Re: Stupid servo
If you're unsure about the wire colors, you could try flipping the connector going to the DSC; they tend to act funny when plugged in backwards.
|
|
#8
|
|||
|
|||
|
Re: Stupid servo
If I did, since nothing else seems to be working, could that screw with it in any way? It's working fine on the vex robot by the way.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|