Croco:kit sensor starter kit for micro:bit Tutorial 4.3 Smart home system
After downloading the program, we can see the word 'Happy Birthday!' on the Micro:bit LED dot matrix. When the ultrasound module detects that someone is approaching, Micro:bit LED dot matrix will display a smile, opens the door and lights up RGB light at home.
When the person walks into the house, the door will close automatically and RGB light will close, Micro:bit LED dot matrix clear screen.
- 1 X Micro:bit Board
- 1 X Micro USB Cable
- 1 X Diamond breakout
- 1 X RGB light module
- 1 X Ultrasonic module
- 11 X Alligator clip
- 1 X Servo
- 1 X Infrared sensor
- 1 X PC
Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: http://microbit.org/ to enter the programming interface. Add the Yahboom package: https://github.com/lzty634158/Croco-Kit to program.
Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package: https://github.com/lzty634158/Croco-Kit , you can program.
!Note: S1 be set to the ON, S2 be set to the IO, and S3 to the NC.
4. Search for blocks
5. Combine blocks
The code of the experiment: 25.Smart home system.rar