Introduction: Doorframe Enter/Exit Sensor
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.
Step 1: 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.
Step 2: SETUP
Setup sensor system.
Step 3: WIRE UP HARDWARE.
Follow Diagram.