All Projects → 8n1 → Esp8266 Tiny Door And Window Sensor

8n1 / Esp8266 Tiny Door And Window Sensor

Battery powered door and window sensor with ultra low standby power. Arduino, ESP-12, Reed switch, ATtiny, LDO

Projects that are alternatives of or similar to Esp8266 Tiny Door And Window Sensor

Mycontroller V1 Legacy
The Open Source Controller
Stars: ✭ 135 (-7.53%)
Mutual labels:  arduino, sensor, iot, esp8266
Bleeper
Library to manage your firmware configurations written in C++
Stars: ✭ 54 (-63.01%)
Mutual labels:  arduino, iot, esp8266
Server Go
🎨OpenIoTHub Server[内网穿透和物联网设备管理服务器]
Stars: ✭ 127 (-13.01%)
Mutual labels:  arduino, iot, esp8266
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+650%)
Mutual labels:  arduino, iot, esp8266
Gateway Go
🎁GateWay Client for OpenIoTHub[云易连访问内网端口和设备的网关]
Stars: ✭ 127 (-13.01%)
Mutual labels:  arduino, iot, esp8266
Esp8266 Wifi Relay
simple sketch of using ESP8266WebServer to switch relays on GPIO pins. It serves a simple website with toggle buttons for each relay
Stars: ✭ 13 (-91.1%)
Mutual labels:  arduino, iot, esp8266
Home Assistant Config
My Home Assistant Configuration 🏡🏡
Stars: ✭ 133 (-8.9%)
Mutual labels:  arduino, iot, esp8266
Arduinojson
📟 JSON library for Arduino and embedded C++. Simple and efficient.
Stars: ✭ 5,456 (+3636.99%)
Mutual labels:  arduino, iot, esp8266
Homie Esp8266
💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
Stars: ✭ 1,241 (+750%)
Mutual labels:  arduino, iot, esp8266
App Release
An IoT Solution,this is the android release app | download ios app in app store
Stars: ✭ 104 (-28.77%)
Mutual labels:  arduino, iot, esp8266
Nodemanager
Plugin for a rapid development of battery-powered sensors
Stars: ✭ 122 (-16.44%)
Mutual labels:  arduino, sensor, iot
Swifitch
Swifitch is ESP8266 based relay board that could be used to turn any light or any wall socket into smart one!
Stars: ✭ 117 (-19.86%)
Mutual labels:  arduino, iot, esp8266
Esp8266 thing dev
An all-in-one development board for the ESP8266 including an FTDI FT231X for USB programming.
Stars: ✭ 11 (-92.47%)
Mutual labels:  arduino, iot, esp8266
Easyntpclient
Library to read time from Network Time Protocol (NTP) servers.
Stars: ✭ 20 (-86.3%)
Mutual labels:  arduino, iot, esp8266
Iot cloudcloud
Stars: ✭ 26 (-82.19%)
Mutual labels:  arduino, iot, esp8266
Mysensors
MySensors library and examples
Stars: ✭ 1,150 (+687.67%)
Mutual labels:  arduino, iot, esp8266
Esphome Core
🚨 No longer used 🚨 - The C++ framework behind ESPHome
Stars: ✭ 545 (+273.29%)
Mutual labels:  arduino, iot, esp8266
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+3693.84%)
Mutual labels:  arduino, iot, esp8266
Sming
Sming - Open Source framework for high efficiency native ESP8266 development
Stars: ✭ 1,197 (+719.86%)
Mutual labels:  arduino, iot, esp8266
Esp8266
ESP8266 NodeMCU Workshop
Stars: ✭ 109 (-25.34%)
Mutual labels:  arduino, iot, esp8266

Tiny Door and Window Sensor/Alarm with Ultra Low Standby Power (<1µA)

Update 03. February 2017

Changes v0.3:

  • Switched from NodeMCU/Lua to the Arduino IDE
  • Series resistor for the reed switch
  • Pulldown resistor for the shutdown signal
  • Error and OK led removed

The following description is not up to date!


A Ultra Low Standby Power Project which pushes the state of a connected switch(reed/magnet or any other) every time it changes to one of 4 different services(you need to chooose and configure one).
Available(ready to use) services right now (can be easily expanded):

/3/4/5/6/7

Partlist:

  • ATtiny25(45/85)
  • Voltage regulator with enable/shutdown pin (tested with SPX3819, AS1363, LT1763)
  • ESP-07 / ESP-12(E)
  • Changeover/SPDT Reed switch
  • Some resistors, capacitors, and 3 leds(r,g,b)

Schematic

alt text

The standby current consumption is about 330nA(Nanoampere) @3.8V. The biggest current sucker in standby is the ATtiny in power-down sleep mode (~300nA).

Beside a few other tricks I've had to come up with to get the current consumption really that low, a in some of my usecases important one is to use a changover/SPDT (3pin) wakeup switch(the one with 3 pins). Using one of these I can get rid of the pullup resistor that is otherwise needed when using a normal (2pin) switch. This means that the current consumption is in both states(door/window is open AND door/window is closed) equaly low.

Procedure

The ATtiny wakes up from power-down through a pin change interrupt triggered by opening or closing the window/door(pressing or releasing the switch). The ATtiny activates the LDO and therefore the ESP-12. The ESP connects to the wifi, optionaly collects some data(wifi signal strength, temperature, battery voltage), reads the state of the (wakeup) switch and sends it along with the other colleted data to the choosen service. After that the ESP signals the ATtiny to shutdown the LDO and the system goes into standby, waiting for the next pc interrupt.

Installation ESP

  • Clone/download this repository
  • Flash the nodemcu firmware (I'm using esptool.py for this)
  • Configure the two lua files (->Configuration ESP)
  • Upload all lua files (I'm using ESPlorer for that)
  • Execute "compile_files.lua"
  • Done. Restart the ESP to test.

Configuration ESP

Only two files must be edited.

  • Open and edit "config.lua"
  • Open and edit the activated service request script ("..._request.lua")

Installation ATtiny

  • Get the latest Arduino IDE (tested with 1.6.5)
  • Install attiny support using the "Boards Manager" (Menu: Tools->Board:...->Boards Manager->attiny)
  • Compile and upload the sketch (no configuration needed)
  • (go sure the fusebits are set correct (default value))

Pictures

Tiny dooor and window sensor - Breadboard setup

Breadboard setup

Using one of my own Breakout Adapters: Tiny dooor and window sensor - Breadboard setup

A small pcb

I've also designed a small pcb for this project: (More about the pcb in the near futre.) Tiny dooor and window sensor - Project PCB (Front) Tiny dooor and window sensor - Project PCB (Back)

More details and explainations: (in german)

http://www.forum-raspberrypi.de/Thread-esp8266-tuer-und-fenster-sensor-alarm-mit-sehr-geringem-standby-verbrauch-1%C2%B5a

Resources

Services

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].