Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alerrad/auto-gates-system
Just a fun little IoT project. Automatic gates with the logbook for opening timestamps.
https://github.com/alerrad/auto-gates-system
arduino blynk esp8266 iot mongodb nodejs
Last synced: 2 days ago
JSON representation
Just a fun little IoT project. Automatic gates with the logbook for opening timestamps.
- Host: GitHub
- URL: https://github.com/alerrad/auto-gates-system
- Owner: alerrad
- License: mit
- Created: 2024-05-13T07:12:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T12:42:08.000Z (6 months ago)
- Last Synced: 2024-05-29T04:13:41.365Z (6 months ago)
- Topics: arduino, blynk, esp8266, iot, mongodb, nodejs
- Language: C++
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatic gates system
Just a fun little IoT project. Automatic gates with the logbook for opening timestamps. Every record is stored in a cloud mongoDB Atlas.
## Schematic & parts
parts used:
- breadboard *(x1)*
- ESP8266 *(x1)*
- Micro Servo 9g *(x1)*
- RTC module - 2 *(x1)*
- HC-SR04 *(x1)*
- LEDs *(1 green and 1 red)*
- Jumper wires## Logic
Once the ultrasonic sensor detecs an object (e.g. a car) it triggers servo motor to turn 90 degrees (kind of gates opening) and then the RTC module loggs the datetime which is then sent to REST API endpoint to further save it in a MongoDB cluster and sets "open" status in the blynk dashboard. Once the object is gone "closed" status is set in blynk console.## Running the REST nodejs API
To run the REST API locally you can build the dockerfile and run the container or simply run it via nodejs. Don't forget to set your own ENV variables as in [.env.example](./server/.env.example). Make sure that your ESP8266 is connected to the same WiFi as your machine running the REST API.## License
This repo is licensed under [MIT license](./LICENSE).