Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Servo problems (http://www.chiefdelphi.com/forums/showthread.php?t=112191)

pigpenguin 27-01-2013 16:53

Servo problems
 
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. 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

Re: Servo problems
 
Quote:

Originally Posted by pigpenguin (Post 1222865)
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

Re: Servo problems
 
Quote:

Originally Posted by Ether (Post 1222879)
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

Quote:

Originally Posted by Ether (Post 1222879)
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

Re: Servo problems
 
Quote:

Originally Posted by pigpenguin (Post 1222885)
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

Re: Servo problems
 
Quote:

Originally Posted by Ether (Post 1222912)
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

Re: Servo problems
 
Quote:

Originally Posted by pigpenguin (Post 1222921)
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

Re: Servo problems
 
Quote:

Originally Posted by Ether (Post 1222933)
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

Re: Servo problems
 
Have you tried using test mode to identify whether it is a code or electrical issue?

Greg McKaskle

AsianRookie 27-01-2013 22:43

Re: Servo problems
 
servo.set(value), is value between 0 and 1?

pigpenguin 27-01-2013 23:07

Re: Servo problems
 
Quote:

Originally Posted by Greg McKaskle (Post 1222967)
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.

Quote:

Originally Posted by AsianRookie (Post 1223094)
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

Re: Servo problems
 
For any one curious it was a bad jumper... which was the one thing no one thought to check.


All times are GMT -5. The time now is 10:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi