Microduino Ultrasonic anti-theft
|Language:||English • 中文|
This tutorial will teach you how to use the ultrasonic sensor to design a security system.
Refer to UltrasonicBurglar
Step 1: Stack all the Micorduino module, as follows:
Set button 1 is the day mode and button 2 is the night mode. You can press these two buttons respectively, then check the OLED's output and check does the time setting function work?
If set to day mode, OLED will dispaly "Enable：Day". In this mode, put an object infront of the sensor about 30cm during 7 o'clock to 23 o'clock, LED will light. It doesn't work in other time slot.
If set to night mode, OLED will display "Enable: Night". In this mode, put an object infront of the sensor about 30cm during 23 o'clock to 7 o'clock, LED will light. It doesn't work in other time slot.