An AirBnB for urinals at public toilets
mictor.io is a cloud based platform for managing public urinals usage. Based on the popular paper "The Urinal Problem" 1, mictor.io relies on a set of wireless modules places at each urinal to sense when a urinal is being used. Furthermore it uses an intuitive color system to tell the user which urinal to use by means of a color LED. Finally a web-based app provides analytics with several metrics including:
- Time spent at urinal (average, max, min)
- Average distance from urinal
- Most/least used urinal
- Number of algorithm violations
- Time of the day with most/least urinal usages
Each node is powered by 4x AA batteries. A 5V regulator is used to power the HCSR04 whereas a 3.3V regulator is used for the ESP.
Start by flashing the NodeMCU into the ESP8266 using esptool:
python esptool.py --port /dev/tty.USB0 erase_flash
python esptool.py --port /dev/tty.USB0 write_flash 0x00000 nodemcu_float_0.9.6-dev_20150704.bin
The firmware can be sent over to the ESP using a tool such as ESPlorer 4
The HCSR04 library for the ESP was downloaded from https://github.com/sza2/node_hcsr04
Learn more at: https://github.com/rchicoria/mictor.io
Live Preview: http://104.236.192.113:3000