Mission global: Create a tiny cat which reminds OCD people to not over wash their hands.
Sub-targets:
Principles of Operating System:
Material : Arduino UNO, a whiteboard, a buzzer, a Ultrasonic Sensor HC-SR04, some jump wires.
All the material are in a cat face laser box, in wood and waterprof.
Running : L’example with OCD people washing hands.
The simple versions : when the user washes hands more than 20 seconds, the box alarm.
The medium version : the user starts to wash, the water flow will be spotted, when it continues to be spotted for more than 20 seconds (the time of an average washing), the box alarm.
The developed version : the sessor monitors the distance per sec. Every distance per second is named as a sample. Each 5 seconds, which means 5 samples are grouped. If in this group, one int sample is spotted less than 25 CM (which is the distance between the box and the person), and in the next 15 seconds, each 5 seconds has one time spotted, it will trigger the buzzer. Every 20 seconds if there hasn't been a sample less than 25 CM, the data will be all updated.
See the code here :