arduino resistance measurement?
hi again. have photocell , wondering if possible use arduino measure resistance cell.
note: photocell creates resistance depending on light, 1k ohm in dark , 10k ohms in bright light.
note: photocell creates resistance depending on light, 1k ohm in dark , 10k ohms in bright light.
connect 1 end of photocell +5v , other end 1k resistor. connect other end of resistor ground. connect wire resistor/photocell junction analog pin.
call analogread read value. value go or down depending on how light hitting photocell.
the photocell/resistor combination forms voltage divider, changes amount of current flowing, depending on changing resistance of photocell. measuring voltage dropped photocell gives measure of resistance of photocell.
call analogread read value. value go or down depending on how light hitting photocell.
the photocell/resistor combination forms voltage divider, changes amount of current flowing, depending on changing resistance of photocell. measuring voltage dropped photocell gives measure of resistance of photocell.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > arduino resistance measurement?
arduino
Comments
Post a Comment