Doorframe Enter/Exit Sensor

by FLC_PandE in Circuits > Microcontrollers

332 Views, 0 Favorites, 0 Comments

Doorframe Enter/Exit Sensor

20181205_040706.jpg
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

Setup sensor system.

WIRE UP HARDWARE.

example.PNG

Follow Diagram.