Go to Post Most of us are pretty friendly. - StephLee [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 12-02-2008, 21:22
Team 135 Team 135 is offline
Registered User
FRC #0135 (Penn Robotics)
 
Join Date: Jan 2008
Rookie Year: 1998
Location: Mishawaka, Indiana
Posts: 139
Team 135 will become famous soon enough
Question Running Vex servos

I am having trouble running a vex servo using a FRC controller. I assumed that the servos would be able to use a PWM signal and move accordingly. I was wrong. A snippet of the code that I was attempting to use would be the following. Simply I am asking for a bit of code that would fix my problem.
pwm01 = p1_y;

--or--

if (p1_sw_trig == 1){ // Analog input from the Joystick
pwm01 = 255;}
else{
pwm01 = 127;}

( I know that I have unnecessary { }'s )
Anyone have something that would be helpful, any bit of code or wisdom would be greatly appreciated
  #2   Spotlight this post!  
Unread 12-02-2008, 22:11
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Running Vex servos

Can you define the problem? Specifically, what are you expecting to happen, and what is happening instead?
  #3   Spotlight this post!  
Unread 12-02-2008, 22:25
Team 135 Team 135 is offline
Registered User
FRC #0135 (Penn Robotics)
 
Join Date: Jan 2008
Rookie Year: 1998
Location: Mishawaka, Indiana
Posts: 139
Team 135 will become famous soon enough
Re: Running Vex servos

What is happening is nothing at all, what I would like to happen is the servo moving to a position and halt there. I have tested the servo, it works with VEX items it's just the FRC that I won't cooperate with the robot controler.
  #4   Spotlight this post!  
Unread 12-02-2008, 22:36
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Running Vex servos

is it plugged in correctly? and is your backup battery charged?
  #5   Spotlight this post!  
Unread 12-02-2008, 22:38
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Running Vex servos

Quote:
Originally Posted by bear24rw View Post
and is your backup battery charged?
I think this is probably your problem, because your code looks fine. Servos are powered exclusively by the backup battery. If this battery is missing or discharged, then you won't see the expected motion.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #6   Spotlight this post!  
Unread 13-02-2008, 18:34
Team 135 Team 135 is offline
Registered User
FRC #0135 (Penn Robotics)
 
Join Date: Jan 2008
Rookie Year: 1998
Location: Mishawaka, Indiana
Posts: 139
Team 135 will become famous soon enough
Re: Running Vex servos

Ahh, that would make a lot of sense. I did indeed not have a backup battery that was charged. Thanks a lot to you guys for your help.
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
Servos? PrincessJae Motors 15 26-01-2008 01:33
Vex Servos John Gutmann Technical Discussion 2 26-02-2007 17:31
Vex servos burkechrs1 Motors 3 08-01-2007 17:59
VEX servos JasonQ FIRST Tech Challenge 2 07-12-2005 15:14
servos savage Technical Discussion 5 09-04-2005 20:52


All times are GMT -5. The time now is 01:00.

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