Users Manual
SCRATCH CODING KIT
Connecting to the main cell
Connecting the brightness sensor to the analog port
Connect the brightness sensor to the analog port of the main cell.
Check out the value after connecting the brightness sensor!
You can see that the value of Analog0 port changes. This is the analog value of the brightness sensor. The number
will increase if you cover the brightness sensor, and the number will decrease if you lift up your finger(uncover
the sensor).
The analog value of the brightness sensor will be using the value of the amount of light received.
Analog input
B
R
W
1 2345678
012345
You can see a small
value at ‘analog0’
when the sensor is not
covered
When the sensor is
covered, you can see
‘analog0’ value going up