I want to use "analogReadDifferential" to record the voltage drop (and, consequently, current) across a shunt resistor in an electric vehicle. I've seen references to this function and indications that Teensy 3.1 can do differential analog measurements. I've done single-ended measurements with the Teensy, but not differential. In the circuit being analyzed, the shunt resistor is rated at 50mv per 500 Amp, and there's a 500 Amp fuse in the circuit. So, I'd be measuring differential voltages that are <50mv. But, the system is a 72V DC system, so I want to make sure that I get this right. Here are my questions:
-Do I hook one analog pin to each side of the resistor (say A0 and A1) and then use analogReadDifferential(A0, A1) to get the measurement?
-Would that set-up (if it's right) give me the reading for A0-A1 or A1-A0?
-Is the system tolerant of negative voltages?
I've searched for but not found any info on this topic. If it exists somewhere, please excuse my ignorance and point me at it. Thanks in advance!
-Do I hook one analog pin to each side of the resistor (say A0 and A1) and then use analogReadDifferential(A0, A1) to get the measurement?
-Would that set-up (if it's right) give me the reading for A0-A1 or A1-A0?
-Is the system tolerant of negative voltages?
I've searched for but not found any info on this topic. If it exists somewhere, please excuse my ignorance and point me at it. Thanks in advance!