|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: MicroControllers at competitions
Dunno, didn't need to. We had Jags on a CAN bus so it was baked in for us. But my gut feeling is no, a clamp on ammeter woulda been fine.
|
|
#2
|
||||
|
||||
|
Re: MicroControllers at competitions
Beware that most current clamps measure AC only. The DC capable ones tend to be expensive.
|
|
#3
|
||||
|
||||
|
Re: MicroControllers at competitions
Quote:
http://www.sears.com/craftsman-digit...p-03482369000P |
|
#4
|
|||
|
|||
|
Re: MicroControllers at competitions
Quote:
-matto- |
|
#5
|
||||
|
||||
|
Re: MicroControllers at competitions
Sorry. I just got home from school. I don't have one yet, but I was thinking of a very small shunt. The main point of this would be to find shorts. Also, I don't think it is illegal. You can have things between motors, as long as they don't change the power. In this case, the power difference would be so minuscule, that it would just be ignored. I wanted to use Ohm's law to get a precise measurement of a high amperage. For that, I wanted to use the MCP3204 ADC to measure the voltage drop, and plug that into the formula, to get the exact amp draw. Last year, that would have been useful because we had no idea how to check what was shorted, so we had to use trial and error. It would have told that our motor controller was shorted (though we could tell because of hot the wires were getting!)
|
|
#6
|
|||||
|
|||||
|
Re: MicroControllers at competitions
Quote:
You're almost correct, but you're missing one minor detail: It's power pathways that can't be changed (R54, 2013 rules)--if changing the power was all, there's a number of things that could probably be really bad that could happen. Except, as noted, for low-impedance current monitoring, such that the effect on outputs is inconsequential. Hmmm... how hard would it be to get a current sensor, wire it into the robot's own control system, and have a way to store and extract data from it? Hmmm... Must think about that one for a few minutes. Yep. Totally possible, and plausible. You're the programmer, you get to figure out how to pop up the current info for any motor at any point during a match and/or log it for future reference. (Hint: I know it CAN be done.) |
|
#7
|
||||
|
||||
|
Re: MicroControllers at competitions
It can be done. Quite easily, actually. However, using an MCU is a cheap and dirty way to get it done quickly. You can code an MCU much faster than you can code the cRIO!
Also, the current pathway isn't being changed. It is just being passively monitored using sigma-delta circuitry! |
|
#8
|
||||
|
||||
|
Re: MicroControllers at competitions
Quote:
By all means think through how you would solve the problem yourself - in fact it's encouraged - but also check into existing solutions. The first step in any research project is to survey the literature, i.e. read around first. |
|
#9
|
|||||
|
|||||
|
Re: MicroControllers at competitions
As Ether has pointed out above, wire is a known resistance for length and can be easily monitored in much the same way as you propose for your shunt. A 1 foot piece of #10 wire will drop 0.1 volts at 100 amps. Inserting a shunt resistor in the pathway (wiring) feeding a speed controller does violate the rules as Eric pointed out above. The Jaguar has a resistor built into the input side of the controller to generate the current reading available on the CAN buss.
The clamp on ammeters may give you a false reading do to the switching load of an operating controller. Look at frequency response for the device you are considering or using. For most applications the switching frequency of the Victor is within spec while the Jaguar is not. Your mileage will vary. Magnets, it would help if we knew what your team number is when you refer to team history. A good method for diagnosing shorted device problems is simply to pull all the breakers except for the the DSC and then add them back one at a time until you find the offending device. |
|
#10
|
||||
|
||||
|
Re: MicroControllers at competitions
I was thinking of using this method because it seems simple, and easy to calculate. E=I/R; I=E/R
That means that the voltage reading you get will be equal to the amperage/the shunt resistance. I want a low vRef to help me get a much better resolution! This should give me the exact value. Anyways, you can measure the voltage drop and you know the resistance, so I=E/R If you are measuring a 1 volt drop, and your resistance is .25 ohms, you will have: 1/.4, or 4 amps going through the circuit. Say you have a .025 ohm resistor (much more likely in FIRST), and you have a 1.024 volt drop, you have 1.024/.025, or 40.96 amps going through the circuit. Now, say: R(shunt)=.025ohm V(drop)=4v096 (4.096 volts) 4.096/.025=163.84 Amps running through the circuit. If you see that constantly, you know that there is a fault, and you know to fix the fault. I'd say, have code ready to put on the cRIO that cycles through your robot's motors at 100%. You can write down each current value, and if it seems excessive, you know to change the motor AND the motor controller! MAKE SURE YOU CHANGE BOTH THE MOTOR AND THE MOTOR CONTROLLER. IF YOUR MOTOR IS BY CHANCE BAD, YOU CONTROLLER MAY DIE. VICE VERSA! (I think that the caps were required ![]() |
|
#11
|
||||
|
||||
|
Re: MicroControllers at competitions
The impact of an added 0.025 ohms series resistance on the motor power is not insignificant.
If you don't know how to do the calculation for that, ask and people will be glad to help you. |
|
#12
|
||||
|
||||
|
Re: MicroControllers at competitions
Yeah. That's the main point: To get a reading without having a significant impact. I think something like this is called a "sense resistor"?
|
|
#13
|
|||
|
|||
|
Re: MicroControllers at competitions
Instead of a shunt resistor, Honeywell makes sensors that don't interrupt the circuit (senses current through wire like a clamp-on ammeter)
one example is: http://www.digikey.com/product-searc...=0&pageSize=25 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|