Go to Post dang. I wish my legs were as good as Dave's. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2013, 16:53
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
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?
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2013, 17:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Servo problems

Quote:
Originally Posted by pigpenguin View Post
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?


Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2013, 17:36
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Servo problems

Quote:
Originally Posted by Ether View Post
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 View Post
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
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2013, 18:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Servo problems

Quote:
Originally Posted by pigpenguin View Post
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.


Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2013, 18:40
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Servo problems

Quote:
Originally Posted by Ether View Post
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
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2013, 19:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Servo problems

Quote:
Originally Posted by pigpenguin View Post
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?


Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2013, 19:30
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Servo problems

Quote:
Originally Posted by Ether View Post
Apologies for asking the obvious question, but do you have a center wire in your PWM cable and 3 pins at each end?


yes
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2013, 19:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Servo problems

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

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2013, 22:43
AsianRookie AsianRookie is offline
Registered User
AKA: Steven/Tim
FRC #0321 (Robolancers)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2007
Location: Philadelphia
Posts: 31
AsianRookie is an unknown quantity at this point
Re: Servo problems

servo.set(value), is value between 0 and 1?
Reply With Quote
  #10   Spotlight this post!  
Unread 27-01-2013, 23:07
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Servo problems

Quote:
Originally Posted by Greg McKaskle View Post
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 View Post
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
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #11   Spotlight this post!  
Unread 01-02-2013, 02:15
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Servo problems

For any one curious it was a bad jumper... which was the one thing no one thought to check.
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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