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.

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.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > arduino resistance measurement?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums