Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Electronic Door Opener with Node.js, Arduino and a RPi

86 views

Published on

OMM TECHtalk #2
www.tech-talks.eu

Published in: Software
  • Be the first to comment

  • Be the first to like this

Electronic Door Opener with Node.js, Arduino and a RPi

  1. 1. OMM Solutions TECHtalk #2 www.omm-solutions.de 26.04.2017 < OMM Solutions GmbH > 1 www.tech-talks.eu
  2. 2. Einmal im Monat ist TECHtalk Zeit! First come first served! < OMM Solutions GmbH > 2
  3. 3. Talk: Electronic Door Opener with Node.js, Arduino and a RPi Speaker: David Werth 3< OMM Solutions GmbH >
  4. 4. Why? • New employees • Not enough keys (yale-type) 26.04.2017 • Rented facilities < OMM Solutions GmbH > 4
  5. 5. Switch-button closes circuit 26.04.2017 < OMM Solutions GmbH > 5
  6. 6. Planning 26.04.2017 < OMM Solutions GmbH > 6
  7. 7. Hardware Setup • Arduino Nano  8€ • Solid State Relay  7€ • Raspberry Pi  40€ 26.04.2017 < OMM Solutions GmbH > 7
  8. 8. Node.js as REST-Server • Express-Framework • server.ts  71 LoC • Receives REST-call  executes a bash-command 26.04.2017 < OMM Solutions GmbH > 8
  9. 9. Raspberry Pi as Server • Install Node.js • Create user ‘edo’ Grant GPIO-permission • Install Homebridge • Bash-script Read GPIO 19  write to GPIO 26 Read GPIO 26  write to GPIO 19 • Wiring 26.04.2017 < OMM Solutions GmbH > 9
  10. 10. Arduino for Relay-Control 26.04.2017 < OMM Solutions GmbH > 10
  11. 11. Web-Interface • Pug-Framework html head title= title script(src="jquery- 1.9.1.js") script(src="/scripts/main.js" ) body block content h1= message button(onclick=("Main.openDoo r()")) Open door div(id="response") 26.04.2017 < OMM Solutions GmbH > 11
  12. 12. HomeKit HomeKit != OfficeKit 26.04.2017 < OMM Solutions GmbH > 12
  13. 13. NFC vs. BLE or compare apples to oranges • NFC = RFID, RFID != NFC • Cheap • Many controllers, libraries, resources, tag-types • Made for ticketing, entry control, … • Expensive • Sender-receiver system Own power supply Phone is receiver! 26.04.2017 < OMM Solutions GmbH > 13
  14. 14. Conclusion • 2 person days • Works like a charm ;-) 26.04.2017 < OMM Solutions GmbH > 14
  15. 15. Limitations • No user-management • WiFi as only security layer • Phone required • Smart home integration only for iOS 26.04.2017 < OMM Solutions GmbH > 15
  16. 16. Further Roadmap • Own security layer • Logging • NFC/RFID • Advanced role management 26.04.2017 < OMM Solutions GmbH > 16
  17. 17. EDO (in the case) 26.04.2017 < OMM Solutions GmbH > 17
  18. 18. EDO (open) 26.04.2017 < OMM Solutions GmbH > 18
  19. 19. Source code https://github.com/ommsolutions http://omm-solutions.de/blog/ 26.04.2017 < OMM Solutions GmbH > 19
  20. 20. Vielen Dank für Eure Aufmerksamkeit! 20< OMM Solutions GmbH >
  21. 21. OMM Solutions GmbH Vor dem Lauch 4 70567 Stuttgart Germany Fragen oder Interesse? 21< OMM Solutions GmbH > Ihr persönlicher Ansprechpartner David Werth Software Engineer OMM Solutions GmbH Vor dem Lauch 4 70567 Stuttgart Germany dw@omm-solutions.de +49 (0)711 75 86 46 05
  22. 22. 22< OMM Solutions GmbH > www.omm-solutions.de OMM Solutions GmbH Vor dem Lauch 4 70567 Stuttgart Geschäftsführer Martin Allmendinger Malte Horstmann Olaf Horstmann Kontakt Telefon: +49 711 6747 051-0 E-Mail: info@omm-solutions.de Umsatzsteuer-ID: DE295716572 Sitz der Gesellschaft: Stuttgart Amtsgericht Stuttgart, HRB 749562 Impressum

×