Getting Started Guide

CLASS 3
32
Instead of using true or false to express darkness and brightness, we will use numerical
values to show what infrared sensors are seeing.
Analog input
B
R
W
1 2345678
012345
If you leave the
infrared sensor, you
can see that the value
of "Analog0" revolves
around three digits.
If the infrared sensor
is covered, you can
see that the value of
"Analog0" spins two
digits
Connecting an IR sensor to an Analog port
Connecting Main Cell
Connect the infrared sensor to the analog port of the mainboard
Plug the infrared sensor into the port and check the values below!
You can see that the value of the Analog0 port changes! This is the analog value of the infrared sensor. When
you cover the infrared sensor with your fingers and release it again, you can see that the value goes down and
then goes up again.