Pages: [1]   Go Down
Author Topic: Measure negative voltage with Arduino. FYI  (Read 493 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Faraday Member
**
Karma: 69
Posts: 2859
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

FYI:
If you ever need to measure a negative voltage with an Arduino you can use the circuit below.
If you don't like the click, click, click, use four H11F2 opto FETs instead of the relay or an inverting opamp.


* 8-10-2013 7-46-34 PM.jpg (207.5 KB, 1124x412 - viewed 79 times.)
Logged

The way you have it in your schematic isn't the same as how you have it wired up! That goes for me too.

SW Scotland
Offline Offline
Edison Member
*
Karma: 17
Posts: 1405
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

An interesting concept but you also need to fit a discharge resistor across the capacitor otherwise the capacitor will tend to read peak voltage only.  You also need to consider the transient load the capacitor presents to your negative voltage as it charges up.
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A rather more simple circuit (requiring only 2 resistors) is this:


* Divider.png (11 KB, 322x321 - viewed 29 times.)
Logged

~Tom~

Lacey, Washington, USA
Offline Offline
Faraday Member
**
Karma: 164
Posts: 2570
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd add a shottky protection diode to Tom's circuit in case the voltage goes more negative than planned, otherwise that looks good.
Logged

Steve Greenfield AE7HD
CET Consumer Electronics and Computer
Please don't read your attitudes into my messages

Atlanta, USA
Offline Offline
Edison Member
*
Karma: 56
Posts: 1848
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It should be noted that Rbottom must include the Z_In of the voltage source. 

Assuming a battery, this would be the battery internal resistance, Rs is the Z (impedance) which is very low compared to Rbottom and can be typically excluded.

With an AC input, Z is complex and a capacitor is generally used to bypass the higher frequencies, that is, low-pass filter.

Finally, the two resistors are generally higher values to prevent "loading" the V_in, but too high (> 20K Ohm each) may not match the Atmel suggested 1OK Ohm analog input resistance.

Good news is that for most common input sources, one can use the general two resistor equations.

Ray
Logged

Pages: [1]   Go Up
Jump to: