Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dariocasciato/chickenhouse-door-analyzer
An ESP8266-based analytics tool designed to monitor and log the behavior of an automatic chicken door operated by a light sensor. Captures door states and correlates them with sunrise and sunset times for data-driven insights.
https://github.com/dariocasciato/chickenhouse-door-analyzer
Last synced: about 1 month ago
JSON representation
An ESP8266-based analytics tool designed to monitor and log the behavior of an automatic chicken door operated by a light sensor. Captures door states and correlates them with sunrise and sunset times for data-driven insights.
- Host: GitHub
- URL: https://github.com/dariocasciato/chickenhouse-door-analyzer
- Owner: DarioCasciato
- License: mit
- Created: 2023-09-08T13:27:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-17T12:54:30.000Z (over 1 year ago)
- Last Synced: 2023-09-17T15:15:43.230Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatic Chicken Door Analyzer
## Description
An ESP8266-based analytics tool designed to monitor and log the behavior of an automatic chicken door operated by a light sensor. This project captures door states and correlates them with sunrise and sunset times to provide data-driven insights.
## Installation
1. Clone this repository.
2. Install the required libraries.
3. Flash the firmware onto your ESP8266.## How it Works
### State Management
The firmware uses a state machine to manage different functionalities. The two main states are:
1. **Idle State (`st_idle`)** : In this state, the system listens for changes in the reed sensor to detect if the chicken door is opening or closing. When a change is detected, the current time and either the sunrise or sunset time are logged into flash memory.
2. **Flash Reading State (`st_flashReading`)** : This state is responsible for reading the logged events from flash memory and displaying them for analysis.#### Idle State
* **Reed Sensor Positive Edge** : When the reed sensor detects a door closing, the current Unix timestamp and the sunset time are captured and logged into flash memory.
* **Reed Sensor Negative Edge** : When the reed sensor detects a door opening, the current Unix timestamp and the sunrise time are captured and logged into flash memory.#### Flash Reading State
In this state, the system reads all the logged open and close events from flash memory and logs them for analysis.
## Contributing
Contributions to improve this template repository are always welcome. If you find any issues or have suggestions for enhancements, please open an issue or submit a pull request.
## License
This template repository is licensed under the [MIT License](LICENSE). Feel free to use it as a starting point for your own firmware projects.