Go to Post I am speechless......but I will think of something by the time it becomes an obvious candidate for the photo caption contest. - Rich Wong [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 03-04-2011, 23:23
Thomas DeSilva's Avatar
Thomas DeSilva Thomas DeSilva is offline
Programming Fury
FRC #1983 (Skunkworks)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Des Moines, WA
Posts: 22
Thomas DeSilva is on a distinguished road
Re: victor 884 basics

Sorry for bumping/hijacking an old thread, but does anyone know if its possible to get an even wider duty cycle range out of the Victor without increasing the total period length? For a personal project, I'm using Victors with CIMs, and they don't seem to have quite the variety of speeds I'm looking for. I get around 12 distinct power settings in the forward direction and about 3 in the reverse--this is definitely a problem that needs fixing. (As a note, when I connect the same CIM to a Jaguar and give the Jag the same inputs as I gave the Victors, I get variance smooth enough that I can't count distinct speeds going forward, and about five speeds going back.)

Last edited by Thomas DeSilva : 03-04-2011 at 23:25.
  #2   Spotlight this post!  
Unread 04-04-2011, 07:06
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,770
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: victor 884 basics

Thomas,
Are you using a pulse generator as Alan showed earlier or some other type of generator? The Victor is capable of decoding more than 100 steps in either direction. (127 - dead band - protected bits)
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 04-04-2011, 15:16
Dale(294engr]'s Avatar
Dale(294engr] Dale(294engr] is offline
Mentor/Sponsor since '98
FRC #0294 (Beach Cities Robotics)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Redondo Beach, CA
Posts: 92
Dale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of light
Post Re: victor 884 basics

Attached are two PPT slides in jpeg format from my workshops given at Chatsworth, CSUN, El Camino College and BCR Team 294

The V884 is an H-bridge
H-defined: 2 connections each to battery & motor forming an 'H' with a switch in each of the 4 legs

.. 2open+2closed opposite switches define motor direction by reversing battery connections to motor,

.. motor speed is set by the PWM input varying the ON time of selected ON switch from 0% motor stopped to 100% full motor current

.. note supplied to the motor is always full battery voltage
.. i.e starts at 12.6v (no load) dropping ~1v for every 50A drawn due to battery ~.02ohm internal resistance (Vdrop = 50A*.02ohm = 1v)

(example: for each CIM at start up =133A spec at 12.0v constant)
..for few hundred mS battery Vdrops ~2.6v ea CIM which in turn drops the stalled I in practice (spec Rcim= 12/133=.09ohm)

1 CIM at start up 12.6-2.6 = ~10v/.09=~111A for TBD mS

2 cims ~8v/.09 ea = 89A ea for TBD mS etc up to 4 or 6 CIMs used)

while in neutral (1.5mS PWM 127 +_5 deadband)
jumper selects either all switches OPEN for COAST
for BRAKE two ground side switches close shorting Rotor aka dynamic Brake

Spike switches are mechanical.. aka relay

In Victor & Jaguars they are FETS
(3 in parallel in each of 4 places to reduce ON resistance sharing current to reduce P=I^2R heating most of which occurs only during the fast <1uS rise & fall times between 0v & ~12.6v for the applied variable duty rectangular wave if the FET ON resistance is << .09ohm (like ~.009 ohm) It has a positive temp coefficient so it is essential keep the switches cool else they may smoke and burn

example: Team 702 at LA Regional smoked V884.. most likely from voltage breakdown 'punch thru' spike from highly inductive motor inductance upon switch OFF kickback, shorting the source to drain of a FET = tied directly to the Battery which caused one of the biggest smoke + fire event I've seen in 14 years serving FIRST.

Note: Victors & Jag's have good internal spike protection which rarely fail but when it does it's spectacular!! ++

DaleScience@aol.com
Attached Thumbnails
Click image for larger version

Name:	PWM HbridgeSchematicSlideSansNGC just Dale 25p.jpg
Views:	75
Size:	57.8 KB
ID:	10529  Click image for larger version

Name:	PWM Coast-Brake 555 servo victor jag controller schematic SansNGC Spike 25p.jpg
Views:	57
Size:	56.5 KB
ID:	10530  
  #4   Spotlight this post!  
Unread 04-04-2011, 16:22
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: victor 884 basics

Quote:
Originally Posted by Thomas DeSilva View Post
Sorry for bumping/hijacking an old thread, but does anyone know if its possible to get an even wider duty cycle range out of the Victor without increasing the total period length? For a personal project, I'm using Victors with CIMs, and they don't seem to have quite the variety of speeds I'm looking for. I get around 12 distinct power settings in the forward direction and about 3 in the reverse--this is definitely a problem that needs fixing. (As a note, when I connect the same CIM to a Jaguar and give the Jag the same inputs as I gave the Victors, I get variance smooth enough that I can't count distinct speeds going forward, and about five speeds going back.)
I'm curious as to how you have found these numbers. How are you measuring the distinct power settings? Its been too long for me to be able to pull up the numbers, but when we tested the vics and the jags we found MANY more than you indicate.
  #5   Spotlight this post!  
Unread 05-04-2011, 17:25
Thomas DeSilva's Avatar
Thomas DeSilva Thomas DeSilva is offline
Programming Fury
FRC #1983 (Skunkworks)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Des Moines, WA
Posts: 22
Thomas DeSilva is on a distinguished road
Re: victor 884 basics

I'm using the Cypress PSoC 5 PWM functionality to send pulses. I think part of my problem was that I was using just about the default PWM configuration that they have, which was running on 8-bit resolution off a 15kHz clock. I haven't tested it yet, but I changed the resolution to 16-bit and the clock speed to 3.8MHz, which (since it's just doing integer math on the clock counts and the "on-times" that I give it) should increase the variance in the outputs while keeping the period about the same. What I'm confused about now is why it gave so many more steps in one direction than the other.

Eric, I have the Victor driving a CIM on a 12:1 P80 using PWM values that I adjusted using input from a linear potentiometer, and I could tell about how many different speeds it was going by listening to the gearbox and watching the output shaft. Not exactly scientific, but it was precise enough for my needs. On the FRC robots that I've worked on, I've never noticed a problem with smoothness of speed changes, so it must be a problem with either how I'm handling the PWM--very likely, I've never done anything with PWM deeper than WPILib's Set()-- or the specific Victors that I'm using.
  #6   Spotlight this post!  
Unread 05-04-2011, 18:34
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: victor 884 basics

Quote:
Originally Posted by Thomas DeSilva View Post
... I could tell about how many different speeds it was going by listening to the gearbox and watching the output shaft. Not exactly scientific, but it was precise enough for my needs.
... I was hoping that you had actually measured the number of speeds. This is an extremely flawed test plan.

8 bits of resolution across the entire servo pulse range gives you less than 4 bits of resolution across the active range. To properly run this test, you need at least 9 bits of resolution across 0.5ms-2.5ms, preferably more. apalrd did a great job of explaining what the signal looks like, and you need your test signal to be more precise that the measurement equipment (the vic/jag).

Calculate what your test signal resolution is, and use that to predict how many steps a "perfect" (infinite resolution) device would give. If you later measure a number of steps within a factor of 2 or 4 of this, your test signal doesn't have enough resolution.



Second, you need a better way of actually measuring the number of steps. Your ears just ain't going to cut it. An honestly, I wouldn't even really trust a method that involves measuring the rotational speed: That would put the motor's imperfections into your measurement of the speed controllers' quality.

Stick an oscilloscope across the outputs and measure duty cycle. Plot output duty cycle vs input duty cycle. You should get a piecewise step function. Again, you should have at least 4 input duty cycle points per step, or the test is flawed.
  #7   Spotlight this post!  
Unread 05-04-2011, 18:54
Thomas DeSilva's Avatar
Thomas DeSilva Thomas DeSilva is offline
Programming Fury
FRC #1983 (Skunkworks)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Des Moines, WA
Posts: 22
Thomas DeSilva is on a distinguished road
Re: victor 884 basics

There wasn't actually any measurement involved, as I wasn't actually testing how many steps the Victor gave. I had just calibrated the Victor and was turning the pot when I noticed it jumping. The numbers I posted above were merely meant to illustrate the general problem that I was having of an extreme lack of precision in one direction, not as hard data on what was actually happening. Sorry for any confusion there, and thanks for the tips on how to actually measure it.
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 12:01.

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