Log in

View Full Version : Servo problems


pigpenguin
27-01-2013, 16:53
First of all I am not completly sure that this is the right forum to be posting this in. The problem spans a couple of areas and I was not sure which one to post it in.

Any way basically our programming team is trying to make a servo move to no avail. The code in question is right here: Github (https://github.com/FRC-Team-1160/2013-Ultimate-Ascent-Code/blob/2013-01-15-1630/ultimateAscent/src/com/team1160/ultimateAscent/outputManager/OutputManager.java). We have confirmed that the input is making it to the output manager and that the manager is running the servo.set() method. Additionally when we ask the servo for its position it tells us it moved (I am not really sure if when you ask if you are asking the hardware or checking your last set position) on the hardware side of things we have tried multiple ports, servos, sidecars, and pretty much every way we could come up with to make the servo move to no avail.

Does any one have any ideas on what is up?

Ether
27-01-2013, 17:20
when we ask the servo for its position it tells us it moved (I am not really sure if when you ask if you are asking the hardware or checking your last set position)

The PWM going to the servo is one-way communication. There is no provision for the servo to tell you that is has moved.

What are you trying to move with the servo? You're not trying to lift something heavy, are you?

pigpenguin
27-01-2013, 17:36
The PWM going to the servo is one-way communication. There is no provision for the servo to tell you that is has moved.



That makes sense

You're not trying to lift something heavy, are you?



No, right now there is nothing on the servo except for the plastic hub that came with it

Ether
27-01-2013, 18:24
No, right now there is nothing on the servo except for the plastic hub that came with it

Are you giving the servo power? You need to place the jumper to provide power to the servo or it will not move.

pigpenguin
27-01-2013, 18:40
Are you giving the servo power? You need to place the jumper to provide power to the servo or it will not move.




yeah we have placed a jumper on the two pins next to the pwm out

Ether
27-01-2013, 19:01
yeah we have placed a jumper on the two pins next to the pwm out

Apologies for asking the obvious question, but do you have a center wire in your PWM cable and 3 pins at each end?

pigpenguin
27-01-2013, 19:30
Apologies for asking the obvious question, but do you have a center wire in your PWM cable and 3 pins at each end?




yes

Greg McKaskle
27-01-2013, 19:46
Have you tried using test mode to identify whether it is a code or electrical issue?

Greg McKaskle

AsianRookie
27-01-2013, 22:43
servo.set(value), is value between 0 and 1?

pigpenguin
27-01-2013, 23:07
Have you tried using test mode to identify whether it is a code or electrical issue?

Greg McKaskle

No, to be honest I have never heard of test mode. I will try that tomorrow when I get my hands on the bot again.

servo.set(value), is value between 0 and 1?

Yes, the way we have it set up right now we have a button, when the button is not pressed the servo is set to 0.0 and when it is pressed the servo gets set to 1.0

pigpenguin
01-02-2013, 02:15
For any one curious it was a bad jumper... which was the one thing no one thought to check.