Giter Club home page Giter Club logo

garage-door-monitor's Introduction

Garage Door Monitor

Afraid of letting your garage door opened when you are out? This project monitors your garage door, report status on Blynk.cc cloud and ThingSpeak and sends you a notification through an e-mail address when it is opened for some minutes. This project is inspired in Jay Moskowitz post on hackster.io (take a look at it!).

Based on Arduino!

Blynk.cc is a library that ease you to create an app and control your hardware directly on your smartphone. Arduino is the most used interface with Blynk! This project uses Arduino, Blynk library and MQTT component to send data to Thingspeak.

Choose your board!

This project uses a CC3200 launchpad and Energia (an Arduino-based interface with Texas Instruments launchpads). However, it is totally compliant with ESP8266-based boards.

Blynk.cc

Blynk is an extraordinary tool for making it easier to develop an application. Take a look at getting started. We are going to use mail notification feature and develop an app to monitor current door status. Download Blynk library and install it at Arduino IDE or Energia IDE.

Why not Thingspeak?

Why not report door status on Thingspeak and make it easier to people who lives with you see current ans historical data? Create a channel on thingspeak and report data using MQTT API Key and Write API Key.

How to use

Edit the following sections of the code:

  • char auth[] = "YourAuthTokenHere";, (from Blynk!).
  • char ssid[] = "YourWiFiSSIDHere"; and char pass[] = "YourWiFiPasswordHere"; (a little bit self-explaining).
  • char mqttPass[] = "YourThingSpeakMQTTAPIKey";, MQTT API Key from Thingspeak Account > MyProfile.
  • char writeAPIKey[] = "YourThingSpeakChannelWriteAPIKey";, your channel Write API Key.
  • long channelID = 12345;, your channel ID on Thingspeak.
  • short fieldID = 1;, the field you want to send data for on Thingspeak.
  • [email protected]", whenever it appears along the code. It will send you an e-mail notification if door is opened for a while.

Create an app in Blynk

Create an app containing the following widgets:

  • Superchart, to monitor current garage door status on V1 (virtual pin 1, read about it at (blynk.cc))
  • Email, to send e-mail notification everytime door is opened for more than some minutes (also defined in code).

Check Pins Logic

This project uses a CC3200 launchpad which contains a embedded switch (SW2) with a hardware pull-down. When garage door is opened, a relay from door controller closes. These relays pins pull-up SWITCH input pin, indicating that door is opened. Other boards and garage door controller may require another strategy to indicate that door is oponed and this project should be modified according to it.

Upload your code, contribute and be happy!

I hope it would be useful!

garage-door-monitor's People

Contributors

tmedicci avatar

Forkers

rruella

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.