My idea is to provide a kit with everything a user needs to build a RooDe. That would include the enclosure, sensors (pre soldered), cables in the correct length and screws/nuts. Pleas vote
Today is finally the day where i write about my lovely project: RooDe.
RooDe is a fairly low price reliable PeopleCounter using the MySensors library for communication. The project started as a university project about 2 years ago. I started with a scientific research about exisiting products, people counting techniques and so forth.
The main goal was to built a low price but reliable people counting system for door ways. I tried a lot of diffierent methods and sensors and ended up with a good combination (two SHARP IR sensors). The system is working very well for me and i use it (passive) nearly every day since then.
After the university project i continued the development, fixed a lot of bugs, made the system even more reliable, modular and cleaner. At the moment i am switching to fairly new sensors, the VL53L0X which are much better for that prupose due to the non analog interface (which caused a lot of problems...). I refactored the whole project and created a new repository on GitHub: https://github.com/Lyr3x/Roode
Features:
- Configurable Setup
- Different measuring sensors
- OLED support (displaying the counter and boot up Info)
- PIR for wakeup after sleep
- Push-Button support for manual counter change on the hardware itself (not finished yet)
- Calibration system for your own environment
- Threshold calculation using standard deviation
- Recalibration via Domoticz
- Update Counter via Domoticz
- Domoticz setup to control Roode and automate things
- BatteryMode - With a pair of 18650 i used the system for about 3 month.
- Battery management can be improved though!
- STL files for a 3D printable enclosure (Available via GitHub)
Hardware used:
- Any Atmel 328P AVR (Arduino Pro Mini 5V is working well)
- 2x VL53L0X/VL53L1X
- The VL53XXX are using IĀ²C and are much more reliable up to 2m/4m
- HC-SR501
- 1x NRF24L01+ incl. Power Adapter
- Alternative: RFM69 or ESP8266 (ESP8266 for MQTT)
- 1x CP2101 Micro USB TTL Adapter and used as power supply
- 1x 128x32 OLED Display (Optional)
When using ESP8266/ESP32 i recommend the wemos d1 mini boards (available with 8266 and 32) as i build another super small enclosure with a pcb to connect all devices. As the Arduino hardware is super limited the project continues on the ESP platform using MQTT as transmitter
I have a lot more ideas and plans how to improve RooDe and hope some guys will test the system and give me some feedback. I would really appreciate some feedback about the code itself. I think there is a lot to improve.
Feel free to open issues and contribute to the project!
Some of my ideas where i would really appreciate some support:
- Developing one PCB with all the stuff integrated to make the whole system much smaller and less messy -> If anyone with experience wants to help me to achieve this i would very appreciate a message.
- Developing support for the VL53L1X
- These new sensors support programmable ROI position -> Its possible to define two ROI's to count people with one sensor or we can cover 4 ROI's with two sensors to make it possible to count 2 people entering simultaneously. Need to get two sensors to implement this.
- OTA update mechanism (Not sure if this is a good idea though)
I'll attach some pictures of the development process. Hope you like the idea and implementation Cheers!
RooDe latest changelog:
You will always find the lates changes on GitHub. Check always the dev branches!
Changelog v1.0 - upcoming release
- Completely new architecture
- easy to extend due to new abstraction layer for both sensors and transmitter types (MySensors, MQTT, Blynk, whatever)
- Independent sensor calibration
- improved detection algorithm
- ESP Platform
- Support for MQTT
- Multicore support for ESP32 - coming soon
- Web Interface for easy configuration and setup - coming soon
- OTA update
Changelog v0.9.6
- added full VL53L0X support
- measruing speed improvements
- Fixed receiving and sending message issues
- Added OLED brightness config option
- general bug fixes and improvements
Thread Changelog:
2.12.18:
- Removed the old Circuit plan as it is maybe confusing
- Updated Goals
- Added a few more pictures
Assembled RooDe: https://photos.app.goo.gl/WdYxeUiESCUnJaAfA
The first self soldered circuit (was working good) prototype
This is the first iteration of enclosure without the OLED panel
The new design preview with the VL53L0X-Sensors