Giter Site home page Giter Site logo

rgrokett / esp8266_pirv2 Goto Github PK

View Code? Open in Web Editor NEW
28.0 12.0 2.0 2.07 MB

ESP8266 Huzzah Deep Sleep Mode PIR Motion Alarm using IFTTT

License: GNU General Public License v3.0

C++ 98.04% C 1.96%
esp8266 adafruit-huzzah pir motion-sensor ifttt deep-sleep

esp8266_pirv2's Introduction

ESP8266_PIRv2

ESP8266 Huzzah Deep Sleep Mode PIR Motion Alarm using IFTTT

Version 2 โ€“ This version changes the ESP8266 to use Deep Sleep mode to significantly save battery power. Requires extra hardware. See original version for simpler hardware (and shorter battery life).
http://www.instructables.com/id/The-Cat-Has-Left-the-Building-ESP8266-PIR-Monitor/ https://github.com/rgrokett/ESP8266_PIR

This version is only needed if you wish to run the unit using AA batteries. After 4 months and hundreds of triggers, still running strong on the same set of batteries.

2018-06-24 - Updated HTTPSRedirect Library from https://github.com/electronicsguy/ESP8266/tree/master/HTTPSRedirect

We just installed a Cat Door in our garage and I wanted to see how many times per day (actually night) our cat went in and out the door. We could tell the cat was using the door as we would find it outside sometimes and inside sometimes. So, breaking out my parts box, I found a PIR motion sensor and ESP8266.

I used the Adafruit HUZZAH ESP8266 as it has a regulator for powering the 3.3v ESP as well as good tutorials for initially getting it set up. I also used the Arduino IDE with the ESP8266 library, since I was already quite familiar with using it with the Huzzah ESP8266. I decided to interface this to IFTTT (www.ifttt.com) to trigger any number of types of events. Initially, just an email each time motion was detected.

SEE: ESP8266_PIRv2.pdf for full details.

esp8266_pirv2's People

Contributors

rgrokett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp8266_pirv2's Issues

Rebooting too fast...

I think I have this implemented correctly. So thank you for that! Looks to be working great... except for one issue.

It seems like if it continues to detect motion, it keeps rebooting over and over usually before it makes it all the way through my code (a little different than what you have)... which I think is correct.

Any ideas on how you could stop this until the code is fully executed?

"connection failed"

Hello sir,
I've checked and rechecked the sketch, editing and rechecking the ssl fingerprint many times.
I get a "connection failed" message every time regardless of what I try.
Any ideas?

PIR Pin not specified

In your v2 code you haven't specified the PIR sensor pin, how ESP will detect the motion?

type transistor for deep-sleep

Hi,

Do you know if your setup will also work when using a 2N3904 TO-92 NPN transistor to connect between ESP and PIR module?

Wiring for regular ESP8266

I suspect that this will only work with a ESP8266 Huzzah, right? The regular ESP8266 modules that I have all freeze when RST is held low, and come back to life again when RST rises again. With the wiring that you propose, a regular ESP8266 is disabled when motion is detected, and when it comes back to life motion is already gone because that's when the PIR outputs a low signal.

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.