blog/_posts/2013-04-06-water-fountain-a...

30 lines
1.0 KiB
Markdown

---
title: "Water fountain [Arduino Uno R3]"
date: 2013-04-06
url: water-fountain-arduino-uno-r3
layout: post
category: Hacking
---
[![A missing blog post image](/img/blog/water-fountain-arduino-uno-r3.png)](/img/blog/water-fountain-arduino-uno-r3.png)
This project is an amelioration of a classical collectivity water fountain.
Here, the red LED represents the solenoid controlled by the Arduino.
The power tensions are ignored.
The concept is:
* One fountain for 3 persons
* When a person wants to drink, he puts his glass and press his button
* he keeps his button pressed while his glass is not full
The main function of the project is to compute the time and the volume distributed to a person, and increment a counter variable of total volume.
On the photo, the 3 buttons at the top left corner are assigned to the 3 different persons.
This switch at the top mid is the detector of the glass presence.
Thanks to Martin, Lucas, Théo and Benjamin :+1:
Code [here](https://gist.github.com/HorlogeSkynet/ca755c1e4dcc088501b73aa8a6715173).