Go to Post Oh, the magic smoke will just make make it seem a bit more like Christmas. - CJO [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 20-02-2012, 10:45
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Wiring Victor output to both motor and analog in

We have a system where the motor takes a long time to spin up. Is it legal to wire something to the analog in to check the voltage? If so, what's the wire size?

I checked the rules... it seems like it implicitly disallowed it, but it also didn't say you can't ..as it's not really a load..
  #2   Spotlight this post!  
Unread 20-02-2012, 11:03
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Wiring Victor output to both motor and analog in

Well, the rules say a low impedance current measuring or high impedance voltage measuring modification in-between the wires driving the motor controller (or motor, I forget which, but I'd rather look at the non-PWM signal) are allowed. The analog module should count as a high-impedance device, right?
  #3   Spotlight this post!  
Unread 20-02-2012, 11:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,084
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by shuhao View Post
We have a system where the motor takes a long time to spin up. Is it legal to wire something to the analog in to check the voltage?
You might get some interesting results if the motor is being powered by a Jag or a Vic. They output PWM, not DC (unless of course the command is 100%).


  #4   Spotlight this post!  
Unread 20-02-2012, 11:13
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Alright ill try it.. but what's the proper wire gauge? I don't want the gauge to be too small and nnot be able to handle the current or too big to not be able to connect to analog out
  #5   Spotlight this post!  
Unread 20-02-2012, 11:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,084
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by shuhao View Post
I don't want the gauge to be too small and nnot be able to handle the current
There won't be any current to speak of, if you wire it properly. The ADC input is fairly high impedance.

You didn't comment on the issue of trying to use an ADC to measure a PWM waveform.


  #6   Spotlight this post!  
Unread 20-02-2012, 16:25
jimsmith2354 jimsmith2354 is offline
Registered User
FRC #0279 (Tech Fusion)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 1999
Location: Toledo OH
Posts: 17
jimsmith2354 is on a distinguished road
Lightbulb Re: Wiring Victor output to both motor and analog in

Feeding the output of a motor controller back to the analog inputs will require lots of filtering (read as a big delay) and some careful wiring to pass inspection and not to let any smoke out. I would suspect that you may have a ramp rate enabled in software or the motor driver module. Run with no load to verify.
  #7   Spotlight this post!  
Unread 20-02-2012, 16:34
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,003
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: Wiring Victor output to both motor and analog in

For a very small current application, a wire size of 22 should be fine.
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 20-02-2012, 17:05
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: Wiring Victor output to both motor and analog in

Would it be possible for you to use the serial-CAN interface with one jaguar and read the current draw from the CAN interface to achieve a similar effect?
__________________
Eat, Sleep, Build Robots
  #9   Spotlight this post!  
Unread 20-02-2012, 17:09
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Wiring Victor output to both motor and analog in

As Ether said, you are likely going to run into problems with the fact that the output is PWM. This will present the additional problem that the cRIO is only rated for +/- 10V not the ~12V that you will be coming out of the speed controller.
  #10   Spotlight this post!  
Unread 23-02-2012, 22:16
vamfun vamfun is offline
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by shuhao View Post
We have a system where the motor takes a long time to spin up. Is it legal to wire something to the analog in to check the voltage? If so, what's the wire size?

I checked the rules... it seems like it implicitly disallowed it, but it also didn't say you can't ..as it's not really a load..
Question: What would you do with the information? If the speed controller is putting out the max voltage then there isn't anything you can do to speed it up.
Why not just bench test with a volt meter and see where you stand? The PWM can be a problem with low duty cycles but you should be ok at max speed output where the output is nearly DC. There are switching spikes still but you can low pass those to ground by putting some bypass capacitors across the meter.

Have you tried connecting a battery directly to the motor and seeing what the spin up time is? If it is too long, then you probably need to lower the inertia of your load, add more motors or change the gearing.
  #11   Spotlight this post!  
Unread 23-02-2012, 23:12
Cal578 Cal578 is offline
Passionate FIRST-er, CD donor
AKA: Gerry
FRC #0578 (Red Raider Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Rochester, NY
Posts: 256
Cal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant futureCal578 has a brilliant future
Re: Wiring Victor output to both motor and analog in

I would not connect the output of a Victor (or Jaguar) directly to the analog module. The motor controllers use a bridge circuit for switching the voltage in both directions. It has the effect of the motor seeing either +12V or -12V, but that's not reference to ground (battery return). The analog module is a single-side measuring circuit, reference to ground. You would need a translation circuit in between to make the measurement work safely.
__________________
Cal
R3: Red Raider Robotics (FRC Team 578)
Fairport, NY, USA
www.FairportRobotics.org
2016 Finger Lakes Regional: Semifinalist on Alliance 7 (1128, 2010, 578)
2016 NYC Regional: Finalist on Alliance 3 (3419, 578, 3017), 4th seed team, Team Spirit Award
2015 Finger Lakes Regional: 8-3-0 in qualification, 7th seed, Quarterfinalist
2014 NY Tech Valley Regional: 8-4-0 in qualification, 13th seed, Semifinalist
2013 Finger Lakes Regional: 4-5-0 in qualification, 26th seed, Alliance 6, 1-2 in tournament
2012 Buckeye Regional: Gracious Professionalism Award, 7-3-0, 14th seed
2011 Finger Lakes Regional: Engineering Inspiration Award
  #12   Spotlight this post!  
Unread 24-02-2012, 08:08
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,785
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: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by shuhao View Post
Is it legal to wire something to the analog in to check the voltage?
There is the possibility of a custom circuit that looks at the absolute value of the average voltage supplied to the motor. As mentioned above, the output of the speed controllers change reference (with respect to battery) with direction. However, if you want really accurate results, nothing satisfies this better that an encoder connected to the driven device or some form of tachometer. We find that opto-couplers work great for this application.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #13   Spotlight this post!  
Unread 25-02-2012, 20:43
Mr. Rogers's Avatar
Mr. Rogers Mr. Rogers is offline
That? That was in the CAD.
FRC #3539 (Byting Bulldogs)
Team Role: College Student
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Romeo, MI
Posts: 67
Mr. Rogers will become famous soon enoughMr. Rogers will become famous soon enough
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by RufflesRidge View Post
As Ether said, you are likely going to run into problems with the fact that the output is PWM. This will present the additional problem that the cRIO is only rated for +/- 10V not the ~12V that you will be coming out of the speed controller.
THIS!!!!! Don't blow a module.
__________________
Grow the roses of success!
2011 Archimedes 2nd seed,
2011 Waterford Champion, 2011 Troy Simi-Finalist,
2011 Waterford Rookie all star, 2011 Troy Rookie all star
http://www.bytingbulldogs.com/
  #14   Spotlight this post!  
Unread 25-02-2012, 21:52
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by Cal578 View Post
The analog module is a single-side measuring circuit, reference to ground. You would need a translation circuit in between to make the measurement work safely.
This is not entirely true, while the analog module range is limited to 10V, it is limited to 10V in both positive and negative directions. That is to say they're good for +/- 10V. Now, you'd still need to divide the voltage down (this is how the system measures the battery voltage) to make it compatible. For a good example of how to do this, reference the analog breakout schematic here:
http://www.usfirst.org/uploadedFiles...matic%20v3.pdf

Page 2 of that PDF, upper right corner shows the voltage divider used to measure the battery voltage, which is a 680 ohm and 1k ohm resistor. These values allow about a +/- 16.8V maximum input. This is more than sufficient for your purposes.

As far as the PWM problem goes, the simplest solution is a low pass filter with a tight corner frequency, that is sufficiently above the bandwidth you'll need for your control application, while being as far under the PWM frequency of the Jaguar as possible. This will result in an average voltage at your input proportional to the duty cycle of the PWM output by the Jaguar. Supposedly, the Analog Breakout has a 1600Hz single pole filter on each input, which should be quite sufficient (if memory serves, the Jags switch in several 100s of kHz region) but I can't confirm that.

Page 3 of this document: http://www.usfirst.org/sites/default...20Breakout.pdf references a 1600Hz per channel filter, but I do not see it on the above linked schematic, so I am a bit confused on that.

Either way, adding your own 1600Hz or so filter to the signal is easy with a few basic components and some perfboard, and will only assist any existing internal filter, giving you the information you are seeking.

That said, I couldn't tell you a thing about it's legality, and I wonder about its effectiveness compared to more traditional tachometry approaches. It is a fun and interesting design challenge though!

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #15   Spotlight this post!  
Unread 25-02-2012, 22:20
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,569
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Wiring Victor output to both motor and analog in

Quote:
Originally Posted by Matt Krass View Post
For a good example of how to do this, reference the analog breakout schematic here:
http://www.usfirst.org/uploadedFiles...matic%20v3.pdf

Page 3 of this document: http://www.usfirst.org/sites/default...20Breakout.pdf references a 1600Hz per channel filter, but I do not see it on the above linked schematic, so I am a bit confused on that.
That schematic is for the old analog breakout with the switching power supply. The document is for the new analog breakout. I'm not sure where to find the schematic for the new analog breakout.
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:33.

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