Cheap arduino-powered remote door (un)lock

in #utopian-io7 years ago (edited)

Once we had an office in the center of the city and there was a remote lock. When our workers came, they had to knock or ring and wait for someone to press the button inside. Furthermore, if everybody was occupied, you had to wait. And in the Russian winter it was... You know, sort of cold. So we had to find a solution.

Also, we had many people visiting our office, so giving them special keys was not an option. Professional solution for remote door opening also cost a fortune. So we had to be creative and make our own device...

Arduino was the easiest solution we found (they was laying around also). So we took one and make this work. Few weeks also we debugged the device and I now I'm releasing the final code. It still might be improved a lot.

Dooruino

With this aruino project, you can use any cheap $5 arduino-like device to remotely open magnetic door lock.

Dooruino

Requirements or components (Bill Of Materials)

  • Arduino or arduino-like device ($10)
  • Cables (just a few, $1)
  • Audio speaker (if you want it to play music when door is opening - $2)
  • Arduino Ethernet Shield ($7)
  • SD Card is optional
  • Ethernet cable ($2)
  • Power source for arduino, 5v 1a ($2)
  • Total: $24

Idea

You're coming to office. Approaching the office door, you just press on the device screen icon which open specific page with password. You might enter the PIN password or save it right in your bookmarks. The door momentarly opens.

Functions

  • Get into the room or office by remotly entering PIN
  • Access logs (optional)
  • Access via internal network, IRC, Telegram or internet

D2

Project

The arduino has two devices: the ethernet shield (to get the command from the net) and speaker (to play a tone when door is opening or closing). Second device is optional. Arduino itself hosts a web page. It works with simple GET requests, when someone forms a specific request or enters the PIN on keyboard (that's on web page) the door opens. Keyboard has flexible design to open correctly on different devices.

Features

  • Remote interface, that works from any OS and device (Mobile Phone: Android, Firefox OS, Sailfish, iOS; Desktop laptop etc.)
  • You can remotely unlock the door even being long distance away, even via IRC or Telegram etc. (might need a small bot-redirector)
  • Self-watchdog which resets the device after some time

How to use this repo in 10 steps

  1. Install git, if you don't already (ubuntu: sudo apt install git)
  2. Clone this repo: https://github.com/sxiii/dooruino
  3. Download, install and start arduino IDE
  4. Open downloaded dooru.ino file (dooruino folder) in the IDE
  5. Press "upload" button & wait for upload to finish
  6. Connect arduino to door lock (arduino PIN #2 and GND to door lock contacts)
  7. Install Ethernet shield on the arduino & connect it to your local network
  8. Optional step: connect speaker to contacts 8 and GND
  9. Open web page of arduino IP address (default: 192.168.1.200) and try to enter PIN (default: 3214)
  10. Profit!

NOTES

  • The default PIN is: 3214 (please give a second after pressing each button).
  • The default IP is: 192.168.1.200
  • The default MAC address of ethernet shield is: 00:05:B5:00:05:B5
  • Wireshark program is helpful to research the (ethernet) output of arduino
  • You can add the PIN after the URL of the arduino like this: http://aruino-ip/3214
  • You can change the PIN yourself: if (readString.indexOf("3214 ") > 0 )

Future plans

  • Make the device be compatible with different locks
  • Security features (have to think about it more)
  • Getting feedback & support

Study time (let's say you know arduino)

  • Learn how to work with arduino ethernet shield: 1 day
  • Writing own sketch for the task: 1 day
  • Total project time: 2 days

Project presentation

https://docs.google.com/presentation/d/1YjkmqbQb2FImgZNrO74sPTNA0jRXeOzomwJ-jpKuo0Y

Please contribute :)

Searching for developers and commits! If you like this project and find it useful, please, improve it by your commits. Thank you!

Contacts

Project creator & ideator: @sxiii (telegram: https://t.me/fakesnowden)

Github source

https://github.com/sxiii/dooruino



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @sxiii I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 62797.54
ETH 2442.85
USDT 1.00
SBD 2.68