The code and wiring behind the Arduino Smart Door
Blog post: http://www.jashanbhoora.co.uk/blog/thales-project-arduino
Video: https://www.youtube.com/watch?v=8-D_LgbKshE
This repository contains all the files that were written for the Arduino Smart Door created for the Thales Arduino Challenge 2014. In addition to the files here, the existing Arduino library for the FPS_GT511C3 fingerprint sensor is also required.
The Smart Door code consists of 4 components:
Highest level logic.
To interface with the fingerprint sensor: https://github.com/sparkfun/Fingerprint_Scanner-TTL
Maintains the state of the stepper motor in code. This was written in a couple of days, and it is highly likely that there are existing libraries that are better written, and do this in a better way.
A simple wrapper for a few operations to check the physical status of the door.
Aside from the code, the follow components were also used
- Power Supply for the motor
- Bipolar Stepper motor (4 wires)
- Arduino Uno
- Fingerprint Sensor
- Push Button
- SPST switch
- L293D Motor Driver
- Reed Switch and magnet
- Lots of wire
Not much in the way of instructions...
- Install the libraries into your local Arduino libraries folder
- Connect components to the Arduino according to the circuit diagram
- Cross fingers and test
Most of the pins were chosen arbitrarily, so changing them should not be a problem. The numbers in the diagram do not refer to the pins on the Arduino, so you'll need to look at the Arduino project to find those.
Send me a question if I've missed something!