Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Wiring Victor output to both motor and analog in (http://www.chiefdelphi.com/forums/showthread.php?t=103380)

shuhao 20-02-2012 10:45

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..

sjspry 20-02-2012 11:03

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?

Ether 20-02-2012 11:04

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by shuhao (Post 1130834)
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%).



shuhao 20-02-2012 11:13

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

Ether 20-02-2012 11:26

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by shuhao (Post 1130860)
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.



jimsmith2354 20-02-2012 16:25

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.

DonRotolo 20-02-2012 16:34

Re: Wiring Victor output to both motor and analog in
 
For a very small current application, a wire size of 22 should be fine.

Alex698 20-02-2012 17:05

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?

RufflesRidge 20-02-2012 17:09

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.

vamfun 23-02-2012 22:16

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by shuhao (Post 1130834)
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.

Cal578 23-02-2012 23:12

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.

Al Skierkiewicz 24-02-2012 08:08

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by shuhao (Post 1130834)
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.

Mr. Rogers 25-02-2012 20:43

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by RufflesRidge (Post 1131104)
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.

Matt Krass 25-02-2012 21:52

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by Cal578 (Post 1133828)
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

Joe Ross 25-02-2012 22:20

Re: Wiring Victor output to both motor and analog in
 
Quote:

Originally Posted by Matt Krass (Post 1134880)
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.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi