So I find a micro-controller with a fully differential ADC. It has AN+ and AN- inputs. I connect these across the the brushed DC motor terminals, via a suitable voltage divider, and the difference between the terminal voltages may be read by a suitably referenced ADC as the motor runs down.
What then happens when I want to measure the motor's terminal voltages difference, when the motor spins the other way, and now the AN- input is at a higher voltage than the AN+ input?
I ask this because I'm basically clueless, and because you've mentioned something about the differential ADC being capable of measuring voltage, but not the polarity (?).
Do you suppose I might alternate the AN+ and AN- input polarities to the differential amplifier without damage, and reliably get sensible conversion magnitude data as a result?
ADCs in differential mode only measure the voltage between the pins AN+ and AN-
This is what I meant about voltage only but not polarity.
You must always obey the input limits of the ADC device or processor ADC.
The others are correct that you may not be able to put a true negative voltagr to either AN+ or AN-.
If you use a pick a ADC decive/chip that allows seperate ADC Vref and ground point to the device power then you can measure true negative voltage.
The other are correct.
You must still obey the input limits of the device though.
I believe that in differential mode, the ADC does not mind if AN1- is higher voltage than AN+
The ADC should have a non signed mode and a signed (polarity) mode.
Non signed mode will only tell you the voltage difference (that was the mode I was thinking about)
The Signed mode will tell you the polarity of the voltage as well (I forgot this mode - though not all ADCs have this, you will need to check)
Can you measure the speed and direction of a motor by measuring the motor terminal voltage?
Yes. It is not simple as you are finding out.
Why (how) would a motor suddenly change direction if the micro is controlling the speed and direction of the motor