Introduction
This light sensor, based on environmentally friendly PT550 photodiode, can be used to detect the intensity of the ambient light by converting optical signals to electrical signals with photodiode. It features analog voltage output that is directly proportional to the ambient light. Besides, the sensor works well with maincontrollers such as micro:bit and Arduino, suitable for not only Mind+ and makecode graphical programming but also non-programming projects.
Specification
- Operating Voltage: 3V-5V
- Interface Type: PH2.0-3P
- Dimension: 26mm×39mm/1.02×1.54"
- Signal Type: analog signal
Pinout
NO. | Label | Description |
---|---|---|
1 | GND | Power - |
2 | VCC | Power + |
3 | SIGNAL | Analog Signal Line |
Usage Description
The light-sensitive components on the light sensor can detect the intensity of ambient light so we can use it to make light interactive applications.
Working Principle
Light sensors are mainly composed of light-sensitive components. This sensor employs environmentally friendly PT550 photodiode, which can detect the ambient light in the environment and output corresponding voltage according to the intensity of light. The voltage is directly proportional to the light intensity.
Application
1.Light Intensity Detector
Description:
Detect light intensity with this light sensor, and display the test result.
Components:
BOS0004 Light Sensor | BOS0035 Mainboard-3IO | BOS0044 OLED Module |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
2.Music Box
Description:
The light sensor can measure the light intensity. We take the music box to a dark place, when the sensor senses the darkness, the box lights up and the buzzer starts to sing.
Components:
BOS0004 Light Sensor | BOS0020 Buzzer Module | BOS0030 Splitter Module |
BOS0019 Multicolor String Light | BOS0035 Mainboard-3IO | MBT0039 Micro:bit |
BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
3.Smart Streetlights
Description:
After connecting the modules according to the connection diagram below, the setup works in this way: the streetlight will light up only when having detected there are passersby at night. This design greatly saves power resources.
Components:
BOS0004 Light Sensor | BOS0009 Sound Sensor | BOS0017 LED Module |
BOS0027 Logic Module-AND | BOS0028 Logic Module-OR | BOS0035 Mainboard-3IO |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Demo Videos:
Non-programming | Programming |
---|---|
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page