Water Alarm Clock
I kept missing Linear Algebra this semester (10 AMs are rough) so I decided to go to extreme measures. I built an alarm clock that dumps water on my head to wake me up.
The project consists of an internet-connected Raspberry Pi connected to a peristaltic water pump. The two components are mounted on the wall next to my bed. A water container sits under my bed, and a pipe runs up through the peristaltic pump up to the ceiling, right above my bed.
I can set an alarm by connecting to a webapp running on the Raspberry Pi. The webapp uses a recurring weekly cron job, as well as the GPIO library, to turn on the peristaltic motor at the scheduled time. As the motor rotates, it pumps water through the pipes, eventually falling onto my head.
I can SSH into the Pi at any time to manually manage the webapp or run the water alarm.
Here is a video of the alarm clock in action:
The webapp I built to configure the alarm:
The entire thing as viewed from my bed:
The water reservoir under my bed from which the water is pumped from. I can go about a month before needing to refill the bottle:
The Raspberry Pi and peristaltic pump mounted on the wall. Note the small clear pipe coming into and out of the motor. (The small servo also present on the breadboard is used as a mechanical "transistor" in order to step up the voltage for the motor (I didn't have a transistor or relay readily available)):
The pipe that hangs over me to wake me up. The water is dumped for about 5 seconds, and the initial pouring is unpleasant enough to leave me wide awake. Thankfully, the water dries up from my bed after about 30 minutes:
Setup
- Git clone
./script/setup.sh
sudo ./run.py
- Modify
config.py
and change username/password. - Configure server to run on boot (instructions here).