Submission for Hack'n'Roll 2019, a 24 hour hackathon. Representing VRMC.
An Arduino powered alarm clock contraption that sprays water in your face if you don't wake up on time.
Made possible by a haphazard combination of pneumatics, electromechanics, and embedded programming.
![](https://private-user-images.githubusercontent.com/19762596/293883315-3eb52954-7223-4ceb-b778-1b65cb06af59.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzUzOTksIm5iZiI6MTcyNDI3NTA5OSwicGF0aCI6Ii8xOTc2MjU5Ni8yOTM4ODMzMTUtM2ViNTI5NTQtNzIyMy00Y2ViLWI3NzgtMWI2NWNiMDZhZjU5LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDIxMTgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxYmFmNTk3NGY3YmJkYzg0ODE4YzM3YjI2ZTUyNjZhNGIyMTUxMzViN2QwNWVkNDY2MTE0MWUwNGY2ZGExNzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kzaMff9OCuctEe4vlhY_YN_kwL6Ju6-h0sqie4afAGU)
![](https://private-user-images.githubusercontent.com/19762596/293883422-68dd5610-f135-49e8-b797-5fd22a9312cc.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzUzOTksIm5iZiI6MTcyNDI3NTA5OSwicGF0aCI6Ii8xOTc2MjU5Ni8yOTM4ODM0MjItNjhkZDU2MTAtZjEzNS00OWU4LWI3OTctNWZkMjJhOTMxMmNjLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDIxMTgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdkNTczZTljMjlmZmNhMDFlN2ZhMTU3YmI0NjAyMTY2MmVmNDA1MjNjZjVlNWU3YWMyZjYyNzgxYjhlN2ZmMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.v3Tm3p5SzTwPM48vS07gHsl4Om9n6hhNfmjzEPhn-QE)
A solenoid value is hydraulically and pneumatically connected to a pressurized canister (made of PVC) containing plain water via pressure-rated polyurethane tubing. The canister itself can be pressured either via a schrader valve or a lighter valve, whereby either air or butane can act as fluid propellant.
The solenoid valve is connected to a DC relay and Lithum-ion Polymer batteries. The DC relay is connected to an Arduino Nano board. The valve is normally closed, meaning that when no power is applied, it will stop fluid flow by default. When a power signal is sent from the Arduino to the relay, the circuit consisting of the solenoid valve and the DC relay is closed, and the pressure differential between atmospheric pressure and canister pressure causes the fluid in the canister to flow in the direction of lower pressure, through the solenoid valve.
Powering the entire system, the Arduino is connected to a I2C 2x16 LCD board, a buzzer, an LED light system, a potentiometer, and a button. The potentiometer can be used to set the time of the alarm.
The code running on the Arduino board can be found in this file. The dependencies for driving the LCD display and providing for offline low level time and date functions are also included in this repo as C++ header files.
- The user positions the device pointing towards them, and sets the alarm before going to bed.
- As the set alarm time approaches, the buzzer will begin emitting loud sounds.
- Soon after, the LED lights will flash (together with the buzzer sounds) in the user's face.
- If the user fails press the button to disable the alarm by now, the Arduino will send a digital output signal to the DC relay, which will open the solenoid valve causing the user to be sprayed with water (as a last resort).
- The user can press (and hold) the button on the side of the device to disable the alarm at any time during the process.
Dated 2019, hosted on Github in 2024 as part of a consolidation effort