You must have a lot of questions if pay attention to the various phenomena of daily life, such as
corridor lights? How does it work? How did it automatically turn on the lights when we went
up the stairs? With these questions in mind, let's start our sixth experiment: intelligent corridor
lights.
Experiment 6 – Intelligent corridor lights
Instruction
Learn how the light sensor works and use it to make an intelligent corridor light with LED.
Learn how to read the values from an analog module.
Micro:bit x1
Crowtail-Base shield for Micro:bit x1
Crowtail-Light Sensor x1
Crowtail-LED(Green) x1
Crowtail-Cable x2
USB cable x1
Target
Required Parts
The Light sensor module uses the GL5516 photoresistor to detect the
light intensity of the environment. The resistance of the sensor decreases
when the light intensity of the environment increases. The chip LMV358
is used as a voltage follower to enable you to get accurate data.
This module outputs an analog signal that shows the light intensity. It
can be used in many occasions, such as Intelligent street light, intelligent
corridor light, etc.
Connect Crowtail-Light Sensor and Crowtail-LED to P0 and P1 ports of Crowtail-Base shield for
Micro:bit. The hardware connections are as follows:
Hardware learning and connection
17