Doorframe Enter/Exit Sensor
by FLC_PandE in Circuits > Microcontrollers
332 Views, 0 Favorites, 0 Comments
Doorframe Enter/Exit Sensor
![20181205_040706.jpg](/proxy/?url=https://content.instructables.com/FKS/MSWA/JPADCC3T/FKSMSWAJPADCC3T.jpg&filename=20181205_040706.jpg)
![20181205_040730.jpg](/proxy/?url=https://content.instructables.com/F9Z/EWDI/JPADCCXE/F9ZEWDIJPADCCXE.jpg&filename=20181205_040730.jpg)
First you will set up the Hardware. You will need:
Breadboard, Elegoo Uno R3 Microcontroller, Micro SD card adapter, RTC module, power cable, two LEDs, MicroSD card, push button, two infrared distance sensors, poster putty.
Wire the micro controller as seen above.
CODING
Download necessary libraries and use the following code.
ADAPTED FROM BILL ATKENS AND https://www.instructables.com/id/Real-time-clock-u...
Adjust the sensors (near or far side of door frame based on exit enter code)
Adjust limit variables.
Adjust collection rate.
Downloads
SETUP
![example2.PNG](/proxy/?url=https://content.instructables.com/FTH/Q8RF/JPADCC4I/FTHQ8RFJPADCC4I.png&filename=example2.PNG)
Setup sensor system.
WIRE UP HARDWARE.
![example.PNG](/proxy/?url=https://content.instructables.com/FEP/283E/JPADCC59/FEP283EJPADCC59.png&filename=example.PNG)
Follow Diagram.