Access control system for the Auckland Hackland hack space.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need the following: (where (s) is shown, you would multiply this for each door)
- Commercial maglock(s)
- NodeMCU
- 5V power supply
- 12V battery
- 12V door power supply & charger; this has back EMF protection and charges a 12V battery and mains input
- Cable
- Emergency exit button(s)
- Request exit button(s)
- Arduino compatible RFID reader(s)
- 12V relay(s)
How all of this is connected is left until I can set my local up and document this.
Please note: I have committed my .vscode folder to make this project more portable between my own machines. You may need to merge or tweak files in this folder.
- Install visual studio code
- Install arduino
- Start visual studio code
- Install the arduino plugin from Microsoft in extensions
- Go to file->properties->settings then arduino settings, click the link to get the JSON editor
- Paste the following over (or merge) into the settings.json
{
"arduino.path": "C:\\Program Files (x86)\\Arduino",
"arduino.additionalUrls": "http://arduino.esp8266.com/stable/package_esp8266com_index.json",
"arduino.logLevel": "info",
"arduino.enableUSBDetection": true,
"C_Cpp.intelliSenseEngine": "Tag Parser"
}
- Start arduino, go into settings and make sure that additionalUrls is populated with the esp URL from above, then go to boards manager and search for nodemcu. Install esp8266 by ESP8266 Community
- Restart vscode, and open the Hackland.AccessControl.DoorController folder from the repo
- Choose NodeMCU 1.0 (ESP-12E Module) as the board in the bar at the bottom
- Change the wifi ssid and password in the sketch near the top to your ones
- Edit the c_cpp_properties.json file and update the paths to match your environment, restart vscode again
- Hit ctrl+shift+p and type "Arduino: Upload" without the quotes, this will build and upload the blink sketch
- To make builds faster, edit arduino.json in .vscode folder and add "output": "../build" as a setting
No published code of conduct, pull requests reviewed and accepted
No versioning scheme currently defined
- Gareth Evans - Initial work - agrath
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details