PDA

View Full Version : Monitoring negative voltages



Charles Linquis
- 14th August 2014, 18:56
From time to time, I have seen requests for information about how a PIC - using only a positive voltage supply, can measure negative voltages.
In order to simplify things, I have created a spreadsheet that does most of the work for you.
Those with better math skills could probably simplify the equations, but nonetheless, you can find it here:


http://www.charleslinquist.com/PICNegativeVoltage.xlsx

mackrackit
- 15th August 2014, 00:39
Thank you Charles,
This should prove helpful.

Charles Linquis
- 16th August 2014, 04:17
I should also add that - when converting voltages, you gain a lot of accuracy from oversampling.

For example, if you need to multiply an A/D reading by 14, rather than take one sample and multiplying it by 14, take 14 samples and add them up. At 40Mhz, a single conversion takes only about 20uSec, so the oversampling doesn't add much overhead.

http://en.wikipedia.org/wiki/Oversampling