Go to Post I'm not certain that I agree with me on this reasoning, either. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Motors
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 26-01-2011, 22:31
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Regulating power to a servo with a relay

Does anyone know if its legal to do this? I wasn't sure if this violates <R48>. It seems fine to <R48>'s statement, but then doesn't seem to look legal in part B. Also <R57> states that servos must be controlled with signals from the digital sidecar, which is still true in our case.

We are using a relay to cut power to a retract servo so we can stop it where ever we want but still using the signal wire on the digital breakout board to control the direction of the servo.

Thanks,
Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #2   Spotlight this post!  
Unread 26-01-2011, 22:34
Cecil's Avatar
Cecil Cecil is online now
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Regulating power to a servo with a relay

I'm not totally sure on this, but wouldn't that blow out the servo anyway?

The power from the Digital Sidecar would give it the 6 volts needed to power it.

If you connected a spike to it using the 12 volt output on the Power Distribution board, I believe it would blow out your motor.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #3   Spotlight this post!  
Unread 26-01-2011, 22:47
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

We are using a 5 volt regulator with it
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #4   Spotlight this post!  
Unread 26-01-2011, 22:47
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Regulating power to a servo with a relay

Why would you want to stop it?

The input it gets (PWM - Pulse Width Modulation) controls the angle of the servo, to about +- 85 degrees or so. If you set the angle precisely, it will stop there and hold its position.

If you want it to not hold its position, then turn it off. If you do not feed it a control signal, it will turn itself off. The way to turn it off is to not give it a control signal, either by letting the watchpuppy kill it or by closing the device when you don't want it to move. (since both of those will tell the FPGA to stop outputting a control signal to that device). Neither one is really an answer, but a workaround. I don't really see why you would need to make it stop, since you can't really smoke those little things (from what I've seen at least) and they don't output much power.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #5   Spotlight this post!  
Unread 26-01-2011, 22:49
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

The problem is its a retract servo, so even when you stop giving it signal, it keeps going till its either all the way clockwise or all the way counterclockwise
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #6   Spotlight this post!  
Unread 26-01-2011, 22:52
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Regulating power to a servo with a relay

There is something wrong in your code.
could you please post that code segment and I can take a look at it.

you should be able to stop anywhere in it's range of motion.
__________________
-Borna Emami
Team 0x27
  #7   Spotlight this post!  
Unread 26-01-2011, 22:54
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

No there isn't anything wrong with the code, this is a RETRACT servo. A retract servo is different then a proportional servo. Retract servos only travel from end to end when powered.
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #8   Spotlight this post!  
Unread 26-01-2011, 22:58
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Regulating power to a servo with a relay

Quote:
Originally Posted by apalrd View Post
If you want it to not hold its position, then turn it off. If you do not feed it a control signal, it will turn itself off. The way to turn it off is to not give it a control signal, either by letting the watchpuppy kill it or by closing the device when you don't want it to move. (since both of those will tell the FPGA to stop outputting a control signal to that device). Neither one is really an answer, but a workaround. I don't really see why you would need to make it stop, since you can't really smoke those little things (from what I've seen at least) and they don't output much power.
I think Servo::SetOffline() is intended to stop driving the servo (I've never used it). No need for a workaround

Quote:
Originally Posted by Ethan Spitz View Post
The problem is its a retract servo, so even when you stop giving it signal, it keeps going till its either all the way clockwise or all the way counterclockwise
If you don't want this feature, why not use a regular positional servo?
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 26-01-2011 at 23:01.
  #9   Spotlight this post!  
Unread 26-01-2011, 23:01
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

Quote:
Originally Posted by The Lucas View Post
If you dont want this feature, why not use a regular positional servo?
Well we didn't realize that it was a retract when we bought it, and we wanted a real torquey servo (280 oz-in) without breaking 4 watts so this one moves at about a second/60 degrees


Quote:
Originally Posted by The Lucas View Post
I think Servo::SetOffline() is intended to stop driving the servo (I've never used it). No need for a workaround
Whats the equivalent for labview?
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #10   Spotlight this post!  
Unread 26-01-2011, 23:05
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Regulating power to a servo with a relay

Quote:
Originally Posted by The Lucas View Post
I think Servo::SetOffline() is intended to stop driving the servo (I've never used it). No need for a workaround
Said function does not exist in Labview.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 26-01-2011, 23:08
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

Quote:
Originally Posted by apalrd View Post
Said function does not exist in Labview.
Haha, ok, thanks.

I did have an idea to make it not move though. I don't know how good it is for the servo though. I was thinking what if I told the servo that when the absolute value of the joystick value is less than .2 to change the direction of the servo every single time that teleop.vi is called. So essentially every 10ms (I think), it would say go left, go right, go left, essentially changing directions so quickly that it wouldn't move.
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #12   Spotlight this post!  
Unread 26-01-2011, 23:12
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Regulating power to a servo with a relay

A servo updates every 20ms (that's how long the FPGA waits between sending PWM pulses) so a 20ms loop should work fine.

Why not just use a proportional servo? Two came in the kit, as part of the camera pan/tilt head (you really only need a tilt head, because you can twist the robot to pan).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #13   Spotlight this post!  
Unread 26-01-2011, 23:19
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

Quote:
Originally Posted by apalrd View Post
A servo updates every 20ms (that's how long the FPGA waits between sending PWM pulses) so a 20ms loop should work fine.

Why not just use a proportional servo? Two came in the kit, as part of the camera pan/tilt head (you really only need a tilt head, because you can twist the robot to pan).
Its not for use with the camera, its moving a joint on an arm so we need a really torquey servo.

This servo is 260 oz-in at 1.55seconds/60 degrees

http://www.jrradios.com/Products/Def...ProdID=JRPS791

Do you know of any servos that are:
  • Proportional
  • 260 oz-in or higher
  • and are under 4 Watts of mechanical power
If you do I would appreciate a link to said servo very much.

Thanks!
Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
  #14   Spotlight this post!  
Unread 26-01-2011, 23:24
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Regulating power to a servo with a relay

A motor + a potentiometer + code = big servo

A window motor does about 20 watts, is fairly easy to use (if you just bolt your mechanism to the hub), you can use 2 for more power (or even 4 I guess), and it spins at a good speed.

A 775 does 266 watts at peak power, which is 66.5 times as much as the 4w servo. Add another (making that joint powered by 2 775's) and you will have 133 times as much power.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #15   Spotlight this post!  
Unread 26-01-2011, 23:26
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Regulating power to a servo with a relay

This is true, but we wanted something really really light because its going to be at the height of the top peg and then extended a foot or so outside of the boundaries of the robots chassis.
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
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


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

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