EasyManua.ls Logo

Elegoo Mega2560 - Page 176

Elegoo Mega2560
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
176
/
223
The resistor and photocell together behave like a pot. When the light is very bright,
then the resistance of the photocell is very low compared with the fixed value
resistor, and so it is as if the pot were turned to maximum.
When the photocell is in dull light, the resistance becomes greater than the fixed 1
kΩ resistor and it is as if the pot were being turned towards GND.
Load up the sketch given in the next section and try covering the photocell with your
finger, and then holding it near a light source.

Table of Contents