Giter Club home page Giter Club logo

aqualarm's Introduction

AquAlarm

Submission for Hack'n'Roll 2019, a 24 hour hackathon. Representing VRMC.

Overview

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.

Some Explanation

Pneumatics

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.

Electromechanics

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.

Software & Electronics

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.

Usage

  1. The user positions the device pointing towards them, and sets the alarm before going to bed.
  2. As the set alarm time approaches, the buzzer will begin emitting loud sounds.
  3. Soon after, the LED lights will flash (together with the buzzer sounds) in the user's face.
  4. 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).
  5. The user can press (and hold) the button on the side of the device to disable the alarm at any time during the process.

Notes

This project, while originally dated 2019, is being uploaded onto GitHub in 2024 as part of an ongoing attempt at consolidating my portfolio and previous projects in a publically available manner.

aqualarm's People

Contributors

sp4ce-cowboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.