Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongoose-os-apps/door-sensor
Mongoose OS IoT Door-Sensor for ESP32
https://github.com/mongoose-os-apps/door-sensor
Last synced: 2 months ago
JSON representation
Mongoose OS IoT Door-Sensor for ESP32
- Host: GitHub
- URL: https://github.com/mongoose-os-apps/door-sensor
- Owner: mongoose-os-apps
- License: other
- Created: 2017-06-27T16:22:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T19:02:56.000Z (over 4 years ago)
- Last Synced: 2024-07-31T21:52:59.819Z (6 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 4
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - door-sensor - Mongoose OS IoT Door-Sensor for ESP32 (Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) / Official Examples)
README
# Mongoose IoT Door Sensor
## Overview
An IoT Door Sensor for any room you wish to monitor!
Connect to AWS IoT or your favorite MQTT service to send real-time alerts anytime a sensitive door is opened, such as your office,
your childs room, your front door, a safe... or get more creative!Monitor access to your [Little Free Library](https://littlefreelibrary.org/),
your mail box, or maybe your sock drawer to find a thief in the act!
This is a simple project with a million applications!## Project Design
This app assumes a door sensor and 2 LEDs attached to your board. When the door sensor is "open" a message is sent via MQTT and a Green LED lights up. When the door is "closed" a message is sent via MQTT and a Red LED lights up.
The project was built with:
- [Mongoose!](https://mongoose-os.com/)
- [Espressif ESP32 Development Board](https://www.adafruit.com/product/3269)
- A MC-38 Wired Door Sensor
- A Green LED and 220K Ohm Resistor
- A Red LED and 220K Ohm Resistor
- [AWS IoT](https://aws.amazon.com/iot/)Attach the Red LED and resistor to GPIO Pin 16, and the Green LED on 17.
To attach the MC-38, connect one wire from the sensor to GPIO Pin 5 and the other wire to Ground (it doesn't matter which wire is which).
See a [video of it in action on YouTube](https://www.youtube.com/watch?v=v5jblypN28E)
## How to install this app
- Install and start [mos tool](https://mongoose-os.com/software.html)
- Switch to the Project page, find and import this app, build and flash it: