Timothy Le
Published © GPL3+

The Arduino Gatekeeper

The Arduino Gatekeeper is an IoT-connected authenticator for outdoor gates and doors. No longer are keys required for secure backyards!

AdvancedFull instructions provided8 hours15,261
The Arduino Gatekeeper

Things used in this project

Hardware components

Arduino Mega 2560 & Genuino Mega 2560
Arduino Mega 2560 & Genuino Mega 2560
×1
Arduino Wifi Shield 101
Arduino Wifi Shield 101
×1
Arduino Proto Shield
Arduino Proto Shield
Any variant of the protoshield should work.
×1
RFID Reader ID-20LA (125 kHz)
×1
Adafruit 6 x AA battery holder
×1
Adafruit N-channel power MOSFET - 30V / 60A
×1
0.47uF, 50V Multilayer Ceramic Capacitor
×1
Resistor 100 ohm
Resistor 100 ohm
×1
Resistor 221 ohm
Resistor 221 ohm
×4
Resistor 1k ohm
Resistor 1k ohm
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
SparkFun Bluetooth Modem - BlueSMiRF Silver
SparkFun Bluetooth Modem - BlueSMiRF Silver
×1
RGB Diffused Common Anode
RGB Diffused Common Anode
×1
9V Battery Clip
9V Battery Clip
×1
Adafruit Rugged Metal Pushbutton with Green LED Ring - 16mm Green Momentary
×1
Adafruit Magnetic contact switch (door sensor)
×1
Buzzer
Buzzer
×1
RFID Tags (125 kHz)
Assorted. A suggested link has been provided.
×1
Servo - Hitec HS-646WP (Standard Size)
Waterproof to IP67
×1
SparkFun Channel Bracket A
×1
SparkFun Shaft - Solid (Stainless; 1/4"D x 3"L)
×1

Software apps and online services

Microsoft Azure IoT Hub
Microsoft Azure Stream Analytics
Microsoft Azure SQL Database
Visual Studio 2015
Microsoft Visual Studio 2015
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Drill with various drill bits for drilling the holes for the cable gland and bulkhead USB connector
Any hardware store; the cable gland is 1/2" diameter and the USB bulkhead is a Bulgin PX0845/B, but a Bulgin PX0842/B would have fit better.
Soldering iron (generic)
Soldering iron (generic)
Needed if using the protoshield.

Story

Read more

Custom parts and enclosures

SparkFun Big Red Box

This is the main enclosure for the project.

Schematics

Breadboard Layout

Schematic for breadboard layout of the Gatekeeper circuit.
Arduino%20iot%20gatekeeper bb1

Locking Mechanism for Gate with Combined Deadbolt and Handle

This is the locking mechanism I came up with that is meant to be mounted on a gate like the one at my house. It can be modified to accommodate other types of gates or doors.
Img 3614

View of Mounted Locking Mechanism

View of the locking mechanism mounted on the gate.
Img 3617

Picture of Mounted Components on Protoshield

This is a detail of the protoshield with all of the components from the breadboard mounted on it.
20160331 110317

Code

Azure Stream Analytics Query

SQL
SELECT
    deviceId as deviceId,
	deviceTime as Time,
	RFID as RFID,
	ID1 as ID1,
	Access as Access,
	Gate as Gate

INTO
	[SQLDataOut]	
FROM
	[IoTHubInput]

GitHub Repo

The readme has further details. The ArduinoCode folder contains all of the sketch tabs in INO format. The src folder contains the custom VirtualShields library that moves the serial port from Serial to Serial1, thus making the virtual com port available for debugging.

Credits

Timothy Le

Timothy Le

2 projects • 7 followers

Comments