[Solved]Read voltage across a resistor and use it as an input to an anlog pin.
Topic: [Solved]Read voltage across a resistor and use it as an input to an anlog pin.
(Read 1 time)
Location: Boston area, metrowest
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
Re: Read voltage across a resistor and use it as an input to an anlog pin.
Feb 19, 2011, 06:36 am
: Feb 19, 2011, 06:43 am by CrossRoads
Sounds like you are getting the hang of it!
Yes, the arduino ground connects to the ground of what you are measuring. If that is a single supply op amp than that is what you connect to.
For example, an op amp like this, which runs from +5v and Gnd.
The arduino running on batteries is like a portable multimeter - you are measuring the red lead (Analog in) with respect to the black lead (arduino ground).
Only the arduino can't withstand negative voltage, while the multimeter can - so the black lead must be connected to the circuits ground and only positive measurements can be made.
If you have an op amp with +/- supplies, then you must be careful - perhaps adding a diode before the analog input pin to rectify the incoming voltage, at the loss of voltage drop across the diode.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at
Arduino for Teens available at Amazon.com.
Re: [Solved]Read voltage across a resistor and use it as an input to an anlog pin.
Feb 20, 2011, 03:28 am
Thanks a bunch!