Go to Post Don't you just wish life had a redo button? - DHarris [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 31-01-2008, 21:37
Neurovirus Neurovirus is offline
Registered User
FRC #0224
 
Join Date: Jan 2008
Location: Piscataway
Posts: 13
Neurovirus is an unknown quantity at this point
Using Digital Output to control Brake/Coast on Victor

Can a female-female PWM cable be used to connect Digital Output to Victor?
How will you program it to brake and coast using easyC?
and any other thing that I need to know...
Thanks for your help!!
  #2   Spotlight this post!  
Unread 31-01-2008, 21:45
cardinalman86's Avatar
cardinalman86 cardinalman86 is offline
0001 0101 0010 1001 System Lead!!
AKA: Corey
FRC #1529
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Southport,Indiana
Posts: 112
cardinalman86 will become famous soon enough
Send a message via Yahoo to cardinalman86
Re: Using Digital Output to control Brake/Coast on Victor

I don't think u can connect a female connector to a victor. I might be wrong, and somebody can correct me if i'm wrong, but in a Victor, normally don't u put the male end into the pwm hole. Then we need to know what program your using to program your robot? It will guide you through the process.
__________________
Before you practice zen, a bowl is a bowl and a cup is a cup. During zen, a bowl is not a bowl and a cup is not a cup. After practicing zen, a bowl is a bowl and a cup is a cup.
  #3   Spotlight this post!  
Unread 31-01-2008, 21:56
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Yes it can, but we have not tried it.

If your application requires that you have to switch from brake to coast, or vice versa, then try it. Just make sure the control lines are defined as digital outputs and not the default inputs in the IFI code.

I'm not sure how well the brake function works with the victor. My guess would be it will slip somewhat if the motor inertia is too great for the victor to hold.

To program this, you basically need the I/O switch to simulate the jumper being installed on the victor. This may require 2 output lines from the controller. You need to find out about the circuitry inside the controller( pull up resistors, etc.) in order to determine if you pull the pin low to close the switch, or if it is reverse logic. See IFI's website for this information.

Good Luck.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.

Last edited by Jim E : 31-01-2008 at 22:04.
  #4   Spotlight this post!  
Unread 31-01-2008, 22:04
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

I believe you need to connect a digital output of the RC to the center pin of the Victor "Coast/Brake" connector (which is male on the victor, so you'll need a double-femals PWM cable, but a single-pin cable is all you really need).

Then, set the pin High or Low depending on whether the brake is on or off.

Remember this is dynamic braking: Brake off means "Open circuit" when Victor is at 127, Brake on meand "Short Circuit" when vistor is at 127.

A DC motor acts like a generator - a short will cause the generator load to be high and cause a braking effect. The force depends on the speed of the motor - high speeds generate a lot of power and thus a lot of braking, low speeds generate virtually no braking effect.

Search the forums for more info on both points.

Don

.
__________________

I am N2IRZ - What's your callsign?
  #5   Spotlight this post!  
Unread 31-01-2008, 22:31
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Also, please remember that all energy has to go somewhere. When the victors ground both sides of the motor, and all that electricity can't go anywhere fast, the CIM will generate a little heat and a TON of electro magnetic field.

Beware: at a high speed, this EM field can be more than intense enough to disrupt analog signals and sometimes even digital signals.

Can't wait to see all the autonomouses this year (especially ours... )

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #6   Spotlight this post!  
Unread 31-01-2008, 22:37
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Thank you Don for the excellent post. That helps clear it up for me.

So having the brake set would mean the battery is drawing a large current into the motor in order to stop it's inertia if running full bore. The victor doesn't see the current path at all since the MOSFETs are short circuited(no damage) or do the Victors sink the excess current?

If the speed is great enough, then there exists the possibility to trip the 40A breakers when the brake is applied?

I need to search the Forums myself.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.
  #7   Spotlight this post!  
Unread 31-01-2008, 22:43
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

No batteries involved, The Victor is switched on in such a way as to short the motor terminals together. The MOSFETs have to absorb the full output of the motor(Generator), that energy transfer is the braking action.

The victor input is not drawing any current during braking, and the input side is electrically isolated from the goin's on at the output.

Don
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 31-01-2008, 22:43
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Quote:
Originally Posted by Jim E View Post
So having the brake set would mean the battery is drawing a large current into the motor in order to stop it's inertia if running full bore. The victor doesn't see the current path at all since the MOSFETs are short circuited(no damage) or do the Victors sink the excess current?

If the speed is great enough, then there exists the possibility to trip the 40A breakers when the brake is applied?
No, there is little or no current draw on the battery beyond what the cooling fan on top the victor draws. All that happens is both sides of the motor are tied to ground (bottom two mosfet triplets energized) which causes the motor's back EMF to fight the forward motion of the motor. Note i said EMF: this is what you have to watch out for. It won't pop breakers or anything, but just like a broad-spectrum low frequency RF emitter it'll induce currents in any surrounding signal wires.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #9   Spotlight this post!  
Unread 31-01-2008, 22:58
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Alex,
You are correct about the back EMF working to brake the motor but the action occurs as the armature windings move withing the magnetic field of the permanent magnets within each motor. Any wire in a changing magnetic field will induce current to flow in the wire. The current flows into the very low impedance of the speed controller when in the Brake mode. As long as the motor is not spining faster than it did when being driven, the EMF generated should be about the same as when controlled. It will of course produce a current flow opposite to that when it is driven by a voltage source. There should be no real increase in generated field than that which occurs with the motor under control. The high instantaneous currents will produce some fields around the motor wiring, and these may interfere with some signal wiring. If you are not using zip type cable (the two wires are bonded to each other and the fields tend to balance out.) then the fields around the wire can be a source of interference. For that reason, do not run servo, sensor or modem cables near motor wiring
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #10   Spotlight this post!  
Unread 31-01-2008, 23:05
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Thanks for the posts.

I had planned on using brake on some Victors this year. Now I know that any sensor wires running close to the motors require special considerations for EMI shielding. That isn't a big issue, but the robot controller is located pretty close to the motors in question. I'm pretty sure there isn't any EMI shielding there (aka. new layout).
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.
  #11   Spotlight this post!  
Unread 31-01-2008, 23:10
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Using Digital Output to control Brake/Coast on Victor

Quote:
Originally Posted by Jim E View Post
pretty sure there isn't any EMI shielding there (aka. new layout).
You could also use a lead brick to shield your robot controller if it's bothering you. (lead brick aka battery).

Ok, i'm officially not posting on this thread anymore tonight. (3 posts later...)

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #12   Spotlight this post!  
Unread 31-01-2008, 23:33
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: Using Digital Output to control Brake/Coast on Victor

In this post I describe how I make a brake/coast cable. I do recommend you take the white pin out of the black housing (shrink tube or electrical tape the exposed metal) and plug it into the center pin on the brake/coast header. The 3 pin black housing is too wide for the brake/coast header (it is built for jumpers) and it will not plug in all the way. I also chain 2 victors per digital output. I wouldn't recommend chaining more than 2 victors per output.
__________________
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"
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
Brake / Coast switching for Victors nreyesciena Control System 2 28-01-2008 13:17
Brake/Coast setting for speed controller cabbagekid2 Electrical 0 16-02-2005 16:54
Victor 884 Brake/Coast Issues sciguy125 Control System 23 23-01-2005 14:46
Speed Controller brake/coast setting steven114 Electrical 21 03-03-2004 13:05
Brake/Coast Jumper archiver 2001 3 24-06-2002 01:04


All times are GMT -5. The time now is 19:14.

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