SIDEBAR
»
S
I
D
E
B
A
R
«
Using ADC to Measure Voltage and Current

 

Example Circuit

+v via current regulator
  | 
  |----- analog2 in (LED anode)
 _|_
 \ /    <- LED
 _v__
  |
  ------- analog1 in  (LED cathode)
  |
 [ ]  
 [ ] <- current sensing resistor  (as close to 1 ohm as possible) 
 [ ]  
  |
  ------------ Ground



analog1 value will be proportional to current

analog2 will be the voltage on the led anode

(analog2 - analog1) value will be the voltage across the diode

 

See Also

Example using 2 potentiometers

Current-Sensing with Allegro ACS714 Hall-Effect-Sensor


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

CAPTCHA * Time limit is exhausted. Please reload CAPTCHA.

%d bloggers like this: