Microduino Ultrasonic anti-theft
Language | English |
---|
ObjectiveThis tutorial will teach you how to use the ultrasonic sensor to design a security system. Equipment
SchematicProgramRefer to UltrasonicBurglar DebugStep 1:Stack all the Micorduino module, as follows: Front: Back:
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? ResultIf 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. Video |