So my company recently moved to a new office, and it’s huge, and awesome! The only problem is, no one sits by the front door; design flaw or conspiracy? No one knows for sure. When people come to the door, whether visiting someone or delivering a package, they need to ring a good ‘ole fashion doorbell to get someone’s attention to come and let them in. As you can imagine, hearing a doorbell ringing throughout the day can be quite annoying, so I thought, “I can make this better! With Arduino!”
Here’s the basic idea:
iPad outside the office door, where visitors can state their intentions
Using Slack, alert the Office Manager for deliveries, or whoever the visitor is there to see
Provide everyone an ability to unlock the door directly from Slack
The first two were easily accomplished. One of our UI engineers whipped up an awesome interface, the iPad went up without a hitch, and utilizing the Slack API’s were easy enough.
Now, how to go about letting people unlock the door from Slack? I took a look at how the front door is wired up (which includes a “Request to Exit” button, a keypad, and a motion sensor, all of which unlock the door by releasing the magnetic lock). I found the panel which controls the door lock, and saw that it had a simple relay board inside. I realized that I could take an Arduino (I chose a Particle Photon) and wire it into the relay board to remotely trigger the relay, and unlock the door.
The benefit of the Photon is that you can define a function in the Arduino code which can be called via the REST API provided by Particle. Utilizing the Slack API, I added a command which was sent to a NodeJS server, which in turn made the REST API call to Particle, which in turn sent a LOW signal to the relay, and voila! the door is unlocked!
The project all came together very nicely, and it’s always awesome to find ways in which micro-controllers can be introduced into everyday life!
Next up, adding a camera that will snap a picture of the visitor to include in the Slack message.
PS – Here’s some pictures of the project:
Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.