Go to Post As my daughter said, you used to shut up your robot and send it away from home. Now you just suffocate it. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2008, 16:11
Newzealand38 Newzealand38 is offline
Registered User
AKA: Alex
FRC #2102 (Team Paradox)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: California
Posts: 23
Newzealand38 has a spectacular aura aboutNewzealand38 has a spectacular aura about
Send a message via AIM to Newzealand38 Send a message via Yahoo to Newzealand38
Servo Help

hi i am programming for team 2102 and i have run in to a problem in easy c pro where i can't get this stupid servo to work i pluged it in to the PWM and i put an RC PWM output in the code gave it an axis (just fro now) but it still doesn't respond its been a few hours and i am crying on the inside any help would be great.
  #2   Spotlight this post!  
Unread 13-01-2008, 16:24
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Servo Help

Well, the first thing to check is the connection. Are you sure everything is plugged in correctly? (It more common than you think)

I'm not sure if you know this.... so i will just say it. Servos aren't motors, they dont spin constantly. They just spin to a certian point given by the pwm value. So even if you do output a value, it may not even move at all, since it is already at that position.

The last problem, the battery. The 7.2 volt header pins for the PWM ports DO NOT get their power from the 12 volt input, they get it from the 7.2 volt backup battery. The servos will not work unless you have a backup battery attached to the Robot Controller.

Hope this helps.
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #3   Spotlight this post!  
Unread 13-01-2008, 16:50
Newzealand38 Newzealand38 is offline
Registered User
AKA: Alex
FRC #2102 (Team Paradox)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: California
Posts: 23
Newzealand38 has a spectacular aura aboutNewzealand38 has a spectacular aura about
Send a message via AIM to Newzealand38 Send a message via Yahoo to Newzealand38
Re: Servo Help

thank you i will go test that out now but i think it is all hooked up correctly cause i was also part of the electronics but i will double cheack thanks again
  #4   Spotlight this post!  
Unread 13-01-2008, 18:58
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Servo Help

Well, once you have checked, and everything is wired correctly, the problem may lie somewhere in your code.... could you post it?

Now, what do you mean by you gave "it an axis (just fro now)"?
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #5   Spotlight this post!  
Unread 13-01-2008, 20:08
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Servo Help

Quote:
Originally Posted by adamm View Post
Now, what do you mean by you gave "it an axis (just fro now)"?
You just assign the servo PWM (example pwm01) to an axis of the joystick (example p1_y)

This is a great way to test if a servo actually works. Also great way to figure out positions for the servo if you use printToScreen.

My guess is he didn't hook up the Backup Battery or the battery was dead
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #6   Spotlight this post!  
Unread 13-01-2008, 20:52
adamm adamm is offline
Registered User
AKA: Michael Adam
FRC #1671 (The Bird Brains)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2002
Location: Fresno, CA
Posts: 29
adamm is just really niceadamm is just really niceadamm is just really niceadamm is just really niceadamm is just really nice
Re: Servo Help

Quote:
Originally Posted by Gamer930 View Post
You just assign the servo PWM (example pwm01) to an axis of the joystick (example p1_y)
Wow, Why didnt i see that.

but yea, the battery would most likely be the problem.
__________________
Michael Adam
Director, Central Valley Robotics

FLL and FLL Jr. Affiliate Partner, Central California (2009-Present)
Member, Central Valley Regional Planning Committee (2012-Present)
Volunteer of the Year, Central Valley Regional (2015)
FRC Control System Advisor (2013-Present)
FRC Scorekeeper (2015-Present)
Mentor, Team 1671 (2009-Present)
Member, Team 1671 (2005-2009)
  #7   Spotlight this post!  
Unread 13-01-2008, 22:30
Newzealand38 Newzealand38 is offline
Registered User
AKA: Alex
FRC #2102 (Team Paradox)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: California
Posts: 23
Newzealand38 has a spectacular aura aboutNewzealand38 has a spectacular aura about
Send a message via AIM to Newzealand38 Send a message via Yahoo to Newzealand38
Re: Servo Help

well what i ended up doing was retrieving the thumb button and told it to be 0 so its always in high gear (its for our AM Super Shifter) then made it so when u pushed the thumb button it shifted to low gear. thanks for all the help.
one other thing is if u where driving before the round ended and u threw your robot into neutral and rolled over a line would that count probaly not right?
  #8   Spotlight this post!  
Unread 13-01-2008, 22:31
Newzealand38 Newzealand38 is offline
Registered User
AKA: Alex
FRC #2102 (Team Paradox)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: California
Posts: 23
Newzealand38 has a spectacular aura aboutNewzealand38 has a spectacular aura about
Send a message via AIM to Newzealand38 Send a message via Yahoo to Newzealand38
Re: Servo Help

Quote:
Originally Posted by adamm View Post
Wow, Why didnt i see that.

but yea, the battery would most likely be the problem.
backup battery was a problem some genius had +/- mixed up /punt culprit
  #9   Spotlight this post!  
Unread 13-01-2008, 22:33
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Servo Help

we had a similar servo problem. For the servos you have to have a backup battery (I think) AND you have to set it to either 0 or 255. I realized that our joysticks only went to 254, and somewhere in easy C it also says to get it to 255 or 0; It took us a while to figure that out O.o
  #10   Spotlight this post!  
Unread 13-01-2008, 22:37
Kiwi's Avatar
Kiwi Kiwi is offline
Registered User
AKA: Emily
FRC #0847 (PHRED)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Philomath, Oregon
Posts: 13
Kiwi is an unknown quantity at this point
Re: Servo Help

Quote:
Originally Posted by Newzealand38 View Post
one other thing is if u where driving before the round ended and u threw your robot into neutral and rolled over a line would that count probaly not right?
If the bot got all the way across the line before the teleoperated period ended, it would count. You'd probably want to just keep driving, because crossing a line doesn't count after the end of the match, which is when they stop the robots. But until the end of the match you can cross a line any way that you want.
  #11   Spotlight this post!  
Unread 13-01-2008, 23:14
Newzealand38 Newzealand38 is offline
Registered User
AKA: Alex
FRC #2102 (Team Paradox)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: California
Posts: 23
Newzealand38 has a spectacular aura aboutNewzealand38 has a spectacular aura about
Send a message via AIM to Newzealand38 Send a message via Yahoo to Newzealand38
Re: Servo Help

Quote:
Originally Posted by Kiwi View Post
If the bot got all the way across the line before the teleoperated period ended, it would count. You'd probably want to just keep driving, because crossing a line doesn't count after the end of the match, which is when they stop the robots. But until the end of the match you can cross a line any way that you want.
Darn it was a thought tho i didn't think it would fly.

Last edited by Newzealand38 : 13-01-2008 at 23:16.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
help getting servo values from camera ruddy Programming 12 30-11-2007 23:18
Servo Help Chase Programming 1 06-02-2006 17:53
Servo behavior question / advanced servo/PIC programming question DanL Electrical 12 18-10-2005 18:33
Servo Help Dominator_Legen Motors 3 11-03-2005 19:50
Servo MASherry General Forum 6 04-10-2004 22:46


All times are GMT -5. The time now is 09:15.

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