Go to Post Everyone knows the best way to lose weight is to turn the robot upside down, shake vigourously, and throw away anything that falls out. - Mark Hamilton [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 6 votes, 3.67 average. Display Modes
  #1   Spotlight this post!  
Unread 22-12-2004, 13:05
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Victors Non-linear!!!

I have confirmed a suspicion i have had for a while. Apparently the victor 884's do not have a linear PWM input vs. voltage input.

A DVM was attached to a victor and the values recorded while incrementing the PWM input by a set number every 6 seconds. The reason for the initial values being a bit sketchy is that i was using a cheap digital meter that fluctuated a bit. As time went on, i got a little better at figuring what number it was hovering around.


Here i attached an unloaded motor to a victor and measured its speed vs. victor PWM input. The speeds were determined using a 1024 count optical encoder encoder. The motor was a fisher-price motor w/gearbox.
The test was automated and did the following:
1.set victor output
2.wait 2 secs for speed to stabilize
3.count encoder ticks for x secs. (I think the test was set to wait 3 seconds at the time this data was taken).
4.output data
5.increment pwm output and goto step 2 unless finished

Note that since the motor is unloaded, motor models dictate that speed should be directly porportional to the input voltage of the motor.


I should mention that these tests were done on a single victor 884 and i cannot guarentee that all victors behave similarly although i believe that they do. I also believe that this curve is a feature of their design.

There will be higher resolution data as well as code examples of how to compensate for this to come. It will probably be a while as i am busy with other things and will be out of town all this week.

I hope my imagehost holds up
__________________
1139 Alumni
  #2   Spotlight this post!  
Unread 22-12-2004, 14:02
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Victors Non-linear!!!

Jim,


Very interesting data. Thank you for sharing. I'm not sure why IFI would make its device non-linear.

I would be tempted to redo the test and monitor the controller output PWM with a scope.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 22-12-2004, 14:07
Billfred's Avatar
Billfred Billfred is online now
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,475
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Victors Non-linear!!!

Very interesting information--definitely throws an extra idea or two in for the software crew this year.

And I'm sure we'd all love you to run this test on a few more Victors to see if the numbers hold up.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #4   Spotlight this post!  
Unread 22-12-2004, 14:10
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Victors Non-linear!!!

Quote:
Originally Posted by Mike Betts
Jim,


Very interesting data. Thank you for sharing. I'm not sure why IFI would make its device non-linear.

I would be tempted to redo the test and monitor the controller output PWM with a scope.

Mike
You are suggesting that perhaps this is an issue with the controller PWM output being nonlinear? I didn't think of that. This is something else i will test.
__________________
1139 Alumni
  #5   Spotlight this post!  
Unread 22-12-2004, 14:19
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: Victors Non-linear!!!

I think this is actually good news for most FIRST applications. Power is, of course, proportional to voltage squared and this curve looks to be approximately 1/x^2 so that way, PWM values are close to proportional to power.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #6   Spotlight this post!  
Unread 22-12-2004, 15:30
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Victors Non-linear!!!

Quote:
Originally Posted by Rickertsen2
You are suggesting that perhaps this is an issue with the controller PWM output being nonlinear? I didn't think of that. This is something else i will test.
Jim,

I rather doubt that the controller is non-linear and, the more I think on it, it does not matter. This non-linearity does shed some light on some phenomena I saw working with autonomous mode last year. I'm thinking a lookup table to linearize the output may be in order this year.

Once again, Thanks for sharing the data.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #7   Spotlight this post!  
Unread 22-12-2004, 17:41
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,562
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Victors Non-linear!!!

Quote:
Originally Posted by Rickertsen2
I have confirmed a suspicion i have had for a while. Apparently the victor 884's do not have a linear PWM input vs. voltage input.

A DVM was attached to a victor and the values recorded while incrementing the PWM input by a set number every 6 seconds. The reason for the initial values being a bit sketchy is that i was using a cheap digital meter that fluctuated a bit. As time went on, i got a little better at figuring what number it was hovering around.
Erm, so I'm confused. I was under the impression that the Vics have a PWM output instead of a variable voltage output. As such, you can't really measure the output with a standard multimeter. This would be why Mike Betts was talking about checking it with a scope.

This has not bearing on if the RPM output is linear, however. I think I'll do a Simulink model tonight and see how RPM varies with duty cycle, if I can get enough data on motors and the PWM output.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #8   Spotlight this post!  
Unread 22-12-2004, 18:22
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Victors Non-linear!!!

Quote:
Originally Posted by Kevin Sevcik
Erm, so I'm confused. I was under the impression that the Vics have a PWM output instead of a variable voltage output. As such, you can't really measure the output with a standard multimeter. This would be why Mike Betts was talking about checking it with a scope.
Exactly,
It's general knowledge that the Victors pulse 12V to the motors to control their speed. Except at the extremes when the FET's give the full 12V. It would be very difficult to measure this on a general purpose multimeter.

I am extremely skeptical of the voltages you are getting. A better test would be to see if the frequency is linear. I plan on checking that when I get back to the lab after the holidays.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers

Last edited by MikeDubreuil : 22-12-2004 at 18:26.
  #9   Spotlight this post!  
Unread 22-12-2004, 18:35
Dan Richardson's Avatar
Dan Richardson Dan Richardson is offline
iR3 Creative
AKA: Dan Richardson
no team
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Ft. Lauderdale FL
Posts: 1,116
Dan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond reputeDan Richardson has a reputation beyond repute
Re: Victors Non-linear!!!

Quote:
Exactly,
It's general knowledge that the Victors pulse 12V to the motors to control their speed. Except at the extremes when the FET's give the full 12V. It would be very difficult to measure this on a general purpose multimeter.

I am extremely skeptical of the voltages you are getting. A better test would be to see if the frequency is linear. I plan on checking that when I get back to the lab after the holidays.
Wouldn't these numbers make perfect sense in these instances? how at around 0 it went flat.. and untill that point it was near the bottom, and when it was near full 12v it was at the top? It would be taking the pulse average?

And with it fluctuating, it would confuse the meter?

Am I way off here?
__________________
CO-Founder of Robot in 3 Days and the Robot in 3 Day Challenge.


  #10   Spotlight this post!  
Unread 22-12-2004, 18:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,334
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Victors Non-linear!!!

Quote:
Originally Posted by MikeDubreuil
Exactly,
It's general knowledge that the Victors pulse 12V to the motors to control their speed. Except at the extremes when the FET's give the full 12V. It would be very difficult to measure this on a general purpose multimeter.
You can with a true RMS meter.

Quote:
Originally Posted by MikeDubreuil
I am extremely skeptical of the voltages you are getting. A better test would be to see if the frequency is linear. I plan on checking that when I get back to the lab after the holidays.
Actually, the frequency is fixed. The duty cycle is what changes. This too can be measured directly with some higher-end meters, like the Fluke 189.

Edit: I wrote some code that shows how to generate the PWM signals using the PIC's CCP hardware. It's here: http://kevin.org/frc/edu_led_pwm.zip

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 22-12-2004 at 18:42.
  #11   Spotlight this post!  
Unread 22-12-2004, 18:42
Yan Wang's Avatar
Yan Wang Yan Wang is offline
Ithaca is Gorges
AKA: John Wayne
FRC #0639 (Code Red Robotics)
Team Role: Alumni
 
Join Date: Sep 2002
Rookie Year: 2001
Location: Cambridge, MA
Posts: 1,910
Yan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud ofYan Wang has much to be proud of
Send a message via ICQ to Yan Wang Send a message via AIM to Yan Wang Send a message via MSN to Yan Wang Send a message via Yahoo to Yan Wang
Re: Victors Non-linear!!!

That looks very much like a graph from how Tiddlywinks ratings are calculated.


http://www.cheng.cam.ac.uk/~pjb10/wi...gs/method.html
__________________
Code Red Robotics Team 639 Alumnus | www.team639.org
<Patrician|Away> what does your robot do, sam
<bovril> it collects data about the surrounding environment, then discards it and drives into walls
  #12   Spotlight this post!  
Unread 22-12-2004, 18:44
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Victors Non-linear!!!

Quote:
Originally Posted by Kevin Watson
Actually, the frequency is fixed. The duty cycle is what changes.
Ah, I didn't think of that. That makes much more sense that the frequency chaging.
Either way, we have an HP scope in the lab that will tell us duty cycle. Thanks for the heads up.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #13   Spotlight this post!  
Unread 22-12-2004, 18:49
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Victors Non-linear!!!

Quote:
Originally Posted by Stud Man Dan
Wouldn't these numbers make perfect sense in these instances? how at around 0 it went flat.. and untill that point it was near the bottom, and when it was near full 12v it was at the top? It would be taking the pulse average?

And with it fluctuating, it would confuse the meter?
At the extremes? Yes. The duty cycle would be 100% or closer and the meter would easilly be able to read the value. His data does indeed show that motor will get full voltage at the extremes.
However, the change from 0 volts to 12 volts is definitely not linear and more exponential. I think most of us have operated under the assumption that the change was linear.

EDIT: If anyone has taken an electronics course, Jim's graph looks very similar to an RC circuit charging and discharging.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers

Last edited by MikeDubreuil : 22-12-2004 at 18:54.
  #14   Spotlight this post!  
Unread 22-12-2004, 19:19
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,334
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Victors Non-linear!!!

Quote:
Originally Posted by MikeDubreuil
Ah, I didn't think of that. That makes much more sense that the frequency chaging.
Either way, we have an HP scope in the lab that will tell us duty cycle. Thanks for the heads up.
Actually, if the Victors will work down to five volts, you could feed the waveform back into a robot controller running suitable software to give you the information you want. This is pretty much what last years IR receiver software did.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #15   Spotlight this post!  
Unread 22-12-2004, 21:26
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Victors Non-linear!!!

Quote:
Originally Posted by Kevin Sevcik
Erm, so I'm confused. I was under the impression that the Vics have a PWM output instead of a variable voltage output. As such, you can't really measure the output with a standard multimeter. This would be why Mike Betts was talking about checking it with a scope.

This has not bearing on if the RPM output is linear, however. I think I'll do a Simulink model tonight and see how RPM varies with duty cycle, if I can get enough data on motors and the PWM output.
Kevin,

The both the input and the output are PWM. I was asking about the input.

The output is a PWM whose duty cycle varies from 0 to 100% so it can be easily read with a multimeter.

The input is a RC compatible PWM. See (Servo Basics) for a good explanation. A multimeter will not necessarily give good results. That is why I suggested a scope.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...

Last edited by Mike Betts : 22-12-2004 at 21:36.
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
24Vs and victors greencactus3 Control System 13 05-02-2005 14:22
Calibrating Victors SpaceOsc Control System 27 19-11-2004 07:59
Flakey Victors archiver 1999 4 23-06-2002 21:58
DON'T Recalibrate Victors! Joe Johnson Off-Season Events 0 12-11-2001 22:58


All times are GMT -5. The time now is 21:57.

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