Go to Post Failure is in my eyes, the key to success. If you can deal with failure, look it in the eye, and conquer it, the hard stuff won't really intimidate you any more...and you can only get better. - Andy Grady [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 11-11-2005, 01:30
varcsscotty varcsscotty is offline
Programmer
FRC #1571 (Braughtswurst)
 
Join Date: Oct 2005
Location: Gresham, Oregon
Posts: 41
varcsscotty is an unknown quantity at this point
Lightbulb Nintendo Style Speed Booster

ok so we've all played the classic nintendo racing game where you hit the "Z" button and you get a booster, or whatever. What if this could be implemented in a robot.
Say I have a 'dead-band' around my joystick inputs so that they can only go so fast for extra control. But there are those times when you want to get across the field as fast as possible. Alas, The Speed Booster!
Quite simple actually to program, but it may be hard on the machine, I dunno. The program would just include the dead-band code but with a variable for the top joystick input. When the button is pushed, max out the variable. Simple, eh?
Basically the joystick would have some sort of desensitizing function on it but when the button is pressed it is undesensitized...that's not a word is it...

PS I don't know if there is another thread about this topic because the javascript pop-up menus appear to be broken for FF.
  #2   Spotlight this post!  
Unread 11-11-2005, 01:43
Cory's Avatar
Cory Cory is offline
Registered User
AKA: Cory McBride
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: May 2002
Rookie Year: 2001
Location: Redwood City, CA
Posts: 6,807
Cory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond repute
Send a message via AIM to Cory
Re: Nintendo Style Speed Booster

People do this all the time.

If you had a super fast robot and wanted to slow it down for precise movement, I could see using it.

It seems like a waste to limit the power of your motors when using this option as if it were a psuedo 2 speed transmission, however.
__________________
2001-2004: Team 100
2006-Present: Team 254
  #3   Spotlight this post!  
Unread 11-11-2005, 02:04
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Cory
People do this all the time.

If you had a super fast robot and wanted to slow it down for precise movement, I could see using it.

It seems like a waste to limit the power of your motors when using this option as if it were a psuedo 2 speed transmission, however.

While it may be a waste, for teams with limited resources (money or experience) it is sometimes the only way to achieve 2 speeds.

During our rookie season, we had no driver practice prior to shipping, so it was during our first practice round that we discovered that it was very difficult to control while turning. We used software to scale down our top speed to 1/3 during normal operation, and tied the thumb button on the joystick to full speed while travelling straight. Very inefficient, yes, but given the time constraints and lack of experience I think it was a good solution to the problem. And it was kind of fun to see the robot just kind of crawling along, and then suddenly take off at full speed.
  #4   Spotlight this post!  
Unread 11-11-2005, 06:26
Denman's Avatar
Denman Denman is offline
Tie Wrap-Not Cable Tie or Zip tie
AKA: Stephen Denman
FRC #0759 (Systemetric)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Cambridge UK
Posts: 817
Denman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud ofDenman has much to be proud of
Send a message via ICQ to Denman Send a message via AIM to Denman Send a message via MSN to Denman Send a message via Yahoo to Denman
Re: Nintendo Style Speed Booster

We actually had a total mechanism for this. If you look on our robot its 4 wheel drive but with a twist. There is a mechanism that is controlled by a motor that pushes a pair of castors onto the ground at the front, thus enabling much more manourveablility, at the expense of power. The idea was that you use 4wd to get the tetra to the goal and use the castors to align it more accurately. However the welds got smashed off during a nasty bump in one of the later rounds.
This pic is the best i can find.

If you look there there is a V shaped piece, which was later attached to the black motor. We then added a little flag that went up when the castors were down.
__________________
I am an ex-member of team 759.
759: regional winners with 522 and 233 NYC (2004)


FIRSTWiki.org - Contribute, learn, inspire.

"Teach the way of the GP and the way of the GP shall teach you" - Me
  #5   Spotlight this post!  
Unread 11-11-2005, 07:21
Pat McCarthy Pat McCarthy is offline
FiM Volunteer
FRC #0067 (HOT Team)
Team Role: Alumni
 
Join Date: May 2003
Rookie Year: 2003
Location: Grand Rapids, MI
Posts: 593
Pat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond reputePat McCarthy has a reputation beyond repute
Send a message via AIM to Pat McCarthy
Re: Nintendo Style Speed Booster

For our 2005 robot, it was crazy fast and jerky when trying to get the precision needed to cap well. So we made the trigger button on the joystick decrease the robot's top speed by 2/3 or so.
__________________
2003-2006: FRC Team 67 - Drafter, Driver, Student Leader
2006 Volunteering: Kettering Kickoff Ref, Team Ford FIRST Robotics Invitational Ref
2007 Volunteering: GLR Field Reset/Repair; WMR Robot Inspector and Scorekeeper; MARC Referee
2008 Volunteering: WMR Planning Committee, WMR Scorekeeper, MARC Ref, IRI Scorekeeping, WMRI Scorekeeping & DJ
2009 Volunteering: Kettering District, MARC, IRI, and WMRI Scorekeeper/Field Power Controller
2010 Volunteering: Kettering District, MARC, IRI, and WMRI Scorekeeper/Field Power Controller
2011 Volunteering: Waterford District, West Michigan District, MARC, & IRI DJ
2012 Volunteering: Waterford District, West Michigan District DJ
  #6   Spotlight this post!  
Unread 11-11-2005, 07:47
Greg Needel's Avatar Unsung FIRST Hero
Greg Needel Greg Needel is offline
REVving up for a new season
FRC #2848 (All-sparks)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Dallas, TX
Posts: 3,107
Greg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond repute
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Cory
It seems like a waste to limit the power of your motors when using this option as if it were a psuedo 2 speed transmission, however.
it really isn't limiting the power of the motors. since the IFI setup uses pwm(pulse width modulation) the motors are still receiving maximum voltage, it is just the pulse length that is shorter. and since
Torque(transmitted to the shaft) = (Horsepower*63000)/rpm

and since 1 HP = 745.699872 watts

and watts= voltage^2/ohms <--constant in this case because resistance of the motor doesn't change and neither does the voltage.

the total torque transmitted at a given rpm is the same, all that is being changed is your speed. This is the same thing that happens when you push the joysticks only a little bit forward.

we did this this past year and it works very well for precise movements on the field.


although to make a "speed boost" button you would have to be limiting your pwm the whole time except when you want to boost, which would be a waste.
__________________
Greg Needel│www.robogreg.com
Co-founder REV Robotics LLC www.REVrobotics.com
2014 FRC World Champions with 254, 469, & 74

Last edited by Greg Needel : 11-11-2005 at 07:51.
  #7   Spotlight this post!  
Unread 11-11-2005, 07:52
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,364
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Nintendo Style Speed Booster

While not the same as programing 2 response curves, you could use an exponential response function to give a larger low speed area on the joy stick. Thats what our team did last year.
  #8   Spotlight this post!  
Unread 11-11-2005, 09:43
Dave Scheck's Avatar
Dave Scheck Dave Scheck is online now
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by varcsscotty
ok so we've all played the classic nintendo racing game where you hit the "Z" button and you get a booster, or whatever. What if this could be implemented in a robot.
First off, shame on you for making me feel old ...classic nintendo turbo will always be the "B" Button

We've actually been using such a system for years. We usually use the top button on the joystick as our "turbo" button. The trick is that when the button is not pressed, we scale the full range of the joystick so that it maps to +- half speed. When the button is pressed, we take this scaling away and the full joystick maps to the full output.
  #9   Spotlight this post!  
Unread 11-11-2005, 10:49
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Greg Needel
it really isn't limiting the power of the motors. since the IFI setup uses pwm(pulse width modulation) the motors are still receiving maximum voltage, it is just the pulse length that is shorter. and since
Torque(transmitted to the shaft) = (Horsepower*63000)/rpm

and since 1 HP = 745.699872 watts

and watts= voltage^2/ohms <--constant in this case because resistance of the motor doesn't change and neither does the voltage.

the total torque transmitted at a given rpm is the same, all that is being changed is your speed. This is the same thing that happens when you push the joysticks only a little bit forward.

we did this this past year and it works very well for precise movements on the field.


although to make a "speed boost" button you would have to be limiting your pwm the whole time except when you want to boost, which would be a waste.
This is wrong but I don't think I should delete it, just didn't want anyone to pay attention to it:

No they're not. To control the speed of a DC motor, you vary the voltage applied to it. PWM is used solely as a communication mechanism between the RC and the speed controller. It's not used for controlling the actual motor (you'd probably break the motor if you tried). The actual inside of the speed controller consists of an H-Bridge which allows for variable voltage control. So, by limiting the speed, you're also limiting the torque output from the motor. However, you may want to do this as it can allow finer grained control over the robot.

Matt

Last edited by Matt Leese : 11-11-2005 at 11:47.
  #10   Spotlight this post!  
Unread 11-11-2005, 11:15
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: Nintendo Style Speed Booster

Quote:
Originally Posted by Matt Leese
To control the speed of a DC motor, you vary the voltage applied to it. PWM is used solely as a communication mechanism between the RC and the speed controller. It's not used for controlling the actual motor (you'd probably break the motor if you tried). The actual inside of the speed controller consists of an H-Bridge which allows for variable voltage control.
The Victor speed controllers do use pulse width modulation of the power to the motor. The H-switch inside them is a digital device, either completely off or completely on in one direction or the other. The average voltage to the motors is controlled in approximately 1% steps, but the peak is always full battery voltage.
  #11   Spotlight this post!  
Unread 11-11-2005, 11:36
jdiwnab's Avatar
jdiwnab jdiwnab is offline
Really the Inventor Guy
AKA: Bryan Hartley
FRC #0617
Team Role: College Student
 
Join Date: Nov 2004
Rookie Year: 2002
Location: Highland Springs, VA
Posts: 260
jdiwnab is a jewel in the roughjdiwnab is a jewel in the roughjdiwnab is a jewel in the rough
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Dave Scheck
First off, shame on you for making me feel old ...classic nintendo turbo will always be the "B" Button
lol I was going to say the same thing. "classic" stuff doesn't have "Z". However, you might be able to make a case that they may have A, B, X, Y, L, and R.
__________________
Proof that Macs will win the platform war: How did Scotty know how to use MacDraft in Star Trek IV?
// random()
I have 100 gmail invites. PM me if you want one.
If they want us to think outside of the box, why do they make us fit in a 38x28x60 inch box?
Beware of Geeks bearing GIFs
Help me test my server software
  #12   Spotlight this post!  
Unread 11-11-2005, 11:43
Dave Scheck's Avatar
Dave Scheck Dave Scheck is online now
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by jdiwnab
lol I was going to say the same thing. "classic" stuff doesn't have "Z". However, you might be able to make a case that they may have A, B, X, Y, L, and R.
Go back one more generation and you only have A and B...ahh, those were the days.
  #13   Spotlight this post!  
Unread 11-11-2005, 11:44
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Alan Anderson
The Victor speed controllers do use pulse width modulation of the power to the motor. The H-switch inside them is a digital device, either completely off or completely on in one direction or the other. The average voltage to the motors is controlled in approximately 1% steps, but the peak is always full battery voltage.
You're right about the PWM control although I'd say the H-bridge is also an analog device but that's beside the point. I really need to think through before I post.

While peak-voltage is still the same, the voltage changes over time. What that means is that the power is changing over time. But it's happening fast enough that it's really not noticable. Instead, you'd be looking at the average voltage for power calculations, not peak power.

Matt
  #14   Spotlight this post!  
Unread 11-11-2005, 12:11
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Greg Needel
it really isn't limiting the power of the motors. since the IFI setup uses pwm(pulse width modulation) the motors are still receiving maximum voltage, it is just the pulse length that is shorter. and since
Torque(transmitted to the shaft) = (Horsepower*63000)/rpm

and since 1 HP = 745.699872 watts

and watts= voltage^2/ohms <--constant in this case because resistance of the motor doesn't change and neither does the voltage.

the total torque transmitted at a given rpm is the same, all that is being changed is your speed. This is the same thing that happens when you push the joysticks only a little bit forward.

we did this this past year and it works very well for precise movements on the field.


although to make a "speed boost" button you would have to be limiting your pwm the whole time except when you want to boost, which would be a waste.

First, you should check your formulas. "Watts" = Voltage^2/R (and note that "Watts" should really be Power) is the electrical power to the motor. Considering it is not perfect, there are lots of losses and the mechanical power available at the motor output is omega times torque. They're not the same and the electrical power (supplied) will always be higher.
Second, the PWM does change the voltage seen by the motor. Even though you are pulsing it between 12V and 0 V, the motor can be seen as an RL (resistor-inductor) series association and thus this pulsed voltage is smoothed and you get an average voltage that is proportional to the PWM duty cycle. I don't want to extend and there are lots of old posts about it, good information can be found there.
When you change the voltage to the motor, you can simply scale its speed/torque curve by a factor of (applied voltage/test voltage), so you are actually changing both its speed and torque (and power, as a consequence).

Concerning the speed boost, we used that one year. It sucked.
The only possible use I see is to make a very fast robot a bit more controllable, but then again your gearing is probably wrong and you are (again) wasting power.
To me, the "coolness factor" of this solution can really hinder your performance.

If your opponent is coming at you with 4 CIMs full power, why in the world would you want to get in a shoving match with your robot at 70%?
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #15   Spotlight this post!  
Unread 11-11-2005, 12:49
Madison's Avatar
Madison Madison is offline
Dancing through life...
FRC #0488 (Xbot)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1999
Location: Seattle, WA
Posts: 5,243
Madison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond repute
Re: Nintendo Style Speed Booster

Quote:
Originally Posted by Hieb
While it may be a waste, for teams with limited resources (money or experience) it is sometimes the only way to achieve 2 speeds.
Remember, however, that such software limitations in no way approximate the functionality of a multiple-speed, mechanical transmission. They're simply a convenient way of limiting your students' lead feet.

Our team met last night to implement 'follow-wheels' on our 2005 robot and did so with great success -- or so I'm told; I was busy doing something else. These unpowered wheels, coupled to encoders, remove from our drivers consideration any notion of voltage or power and instead make them concerned only with position. The joystick input no longer controls average voltage, but instead indicates desired position or speed. The feedback loops do the rest in making sure the robot does what it's meant to do.
__________________
--Madison--

...down at the Ozdust!

Like a grand and miraculous spaceship, our planet has sailed through the universe of time. And for a brief moment, we have been among its many passengers.
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
Electronic Speed Controllers for DC Motor Spindle Robotics Education and Curriculum 12 23-04-2005 09:18
speed controller max speed Team 668 Programming 15 13-02-2005 14:05
Joining 2 dif. motors K.Shaw Motors 32 14-10-2004 19:40
PID control loops - closed loop feedback KenWittlief Technical Discussion 56 26-04-2004 21:27
Power, speed, and torque... AGH Gui Cavalcanti Technical Discussion 5 10-11-2002 19:02


All times are GMT -5. The time now is 17:58.

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