RooDe - A "reliable" PeopleCounter
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
- 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)
- 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
- 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
- added full VL53L0X support
- measruing speed improvements
- Fixed receiving and sending message issues
- Added OLED brightness config option
- general bug fixes and improvements
- 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
- Configurable Setup
Interesting. Is it really foolproof? What happens is two people go through side by side?
@alowhum then it will cut them down with a frickin laser beam
Because the system needs to be mounted in a doorway or sth. like that it is only possible to count one person at a time. For me it is not a real world problem because i never enter a room with a second body next to me, do you?
Regarding foolproofnes: It is more or less. The system itself should be plug and play (due to the self calibration function) and the domoticz part (a how to setup guide is included) isnt that complicated.
zboblamont last edited by zboblamont
@alowhum then it will cut them down with a frickin laser beam
Doorways are space constrictive, and a lot cheaper to run
Plus cheaper to clean up the mess of severed limbs
dbemowsk last edited by
@zboblamont Wouldn't it throw the count off if the people are in multiple pieces?
@Kai-Bepperling I used to teach about the design of smart technology, and the people counter was a classic. Students would always build concepts on top of the idea that they could reliably count how many people were in a room, or if an elderly person had fallen, etc.
These things never were as reliable as they needed to be. There were always edge cases. People waltzing into the room. two people carrying a large packet together. People coming in through the window. People walking out halfway, changing their mind and walking back in. Children that are too short to be counted. The list is endless and more importantly, impossible to completely predict. You only know your own culture, but in other cultures there are even more edge cases.
So "reliable" is something I'm very interested in, but it's also a term that is totally relative. No people counter will ever be 100% reliable.
@alowhum Well you are totally right there are many edge cases and situations where people counter cant work realiable. But if you think about your home automation universe, how often these edge cases coming along?
To clarify: Reliable in this context means the system is capable to count one person at a time walking through a doorway or any two walls in range of 4 meters.
These things never were as reliable as they needed to be.
That depends on your expectations. At least two persons walking every day through a Roode setup and of course it happens every week that i need to tune the counter manually via the domoticz app. I tried multiple methods and sensors to count people. In my opinion you dont need a 100% reliable people counter covering every edge case and scenario.
People coming in through the window.
This project is not an industrial standard system, which should used as an alarm system or sth. like that. It's counting people to turn your fan and lights on. But if you entering your rooms through the window put another system behind your window...
People walking out halfway, changing their mind and walking back in
Children that are too short to be counted.
If possible adjust the size. Everything between hip and shoulder works fine.
The system is built to use in a private smart home stuff scenario, where you don't enter your room and jump out of the window. If you carry something out of room and you don't do that every day the system will give you a huge benefit in laziness and don't bother you with unreliability.
I don't cover gigantic doorways where crowds entering a room simultane. There are also cats and birds who are not countable too.
No people counter will ever be 100% reliable.
To be hones. No sensor every will be.
I got your points and you are right, but in my opinion you should adjust your expectations within the context. I did not advertised a 100% reliable but a reliable system. But i added some "" to make the title not to confusing
@Kai-Bepperling I have been wanting to make something like this for years. I keep getting sidetracked so I have never completed anything. I am excited to try this method at some point. I have a few rooms where this would work much better than the motion sensors I have now. Thank you for posting this.
@petewill Very happy to hear that you are interested! If you have any questions feel free to ask.
I was very productive this weekend and i have some pictures of the new enclosure for you guys. The enclosure is made to use an Arduino Pro Mini (top right), an NRF24L01+ with adapter (top left), OLED Display (top center), PIR, center and two VL53L0X
Kai Bepperling last edited by
i have a question for you: Is there a interest in a DIY-kit? I could provide a whole kit with all the sensors, cables and enclosure. But before i am going to to buy stuff and so on, i ask you guys about your opinion to see if there is an interest.
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.
I'll add a poll in the main post!
Kabron last edited by mfalkvidd
I'm trying to reproduce the projectr on WEMOS D1 mini Lite with VL53L0/1X excluding oled support. Compiling pass OK, but all I got via serial is
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.1
and nothing more.
What is wrong?
Mathea90 last edited by
this is such a coincidence! I am developing the same device with the same sensors at home. I am currently writing the software so it is not functional yet. But maybe I can look into what you did.
What I can offer you: I designed a custom PCB with all the components directly SMD-soldered onto it. It is very compact but due to the form factor of the VL53L0X sensors you definitely need a reflow oven or heatgun to solder it. I could try to find a way to share the PCB layout. Then you can define this task as completed.
Tyrone last edited by
Do two or more people go through accounting?
Geeky Girls last edited by
Sorry although this is an old thread, is there any continuity on this topic? did a new sensor of a reliable people counter being made?
Mie Miee last edited by
hi, is it possible to skip arduino mini, and replace it with esp8266 or esp32, the purpose is to have dc mqtt transmitted to Home Assistant?
Jonatan Castro last edited by
We have been trying one VL53L1X as counter and it works great, except during some moment during the day were the natural light is at certain wavelength. Have you find a workaround for this, or actually the workaround is to use 2 sensors?