Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thompson318/birthdaycandles
Blow them out
https://github.com/thompson318/birthdaycandles
birthday flask magpi python raspberry-pi
Last synced: 17 days ago
JSON representation
Blow them out
- Host: GitHub
- URL: https://github.com/thompson318/birthdaycandles
- Owner: thompson318
- License: cc0-1.0
- Created: 2021-05-19T20:07:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-04T20:34:45.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T07:29:49.579Z (2 months ago)
- Topics: birthday, flask, magpi, python, raspberry-pi
- Language: JavaScript
- Homepage: https://thompson318.github.io/BirthdayCandles/
- Size: 48.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Virtual Cake
============.. image:: https://github.com/thompson318/BirthdayCandles/raw/main/doc/20210605_152438.jpg
:width: 640px
:target: https://github.com/thompson318/BirthdayCandles
:alt: Cake, Real and VirtualAuthor: Stephen Thompson
When confronted with the need to avoid children blowing out candles on an actual cake,
the obvious solution was to build a virtual cake, with on screen candles controlled
by a set of wind turbines. Here it is, as featured in the `MagPi`_, the future of cake.The project utilises a `Raspberry Pi`_, an analogue to digital converter(ADC)
like this one
from `BC-Robotics`_, and a set of DC turbines, like these from `Sntieecr`_.The software here consists of a Python library (main.py) to query the voltages on the
ADC in response to POST requests from a javascript front end (static/happybirthday.js).
We use `Flask`_ to create a web application overlaying various animations to
give the appearance that blowing on the wind turbines blows out the on screen candles,
shown above rendered with `Minecraft`_... figure:: https://github.com/thompson318/BirthdayCandles/raw/main/doc/20210608_111525.jpg
:width: 480px
:alt: Under the Cake
Under the cake, the Raspberry Pi and 16 Channel ADC HAT... _`Raspberry Pi`: https://www.raspberrypi.org/
.. _`BC-Robotics`: https://bc-robotics.com/tutorials/getting-started-raspberry-pi-16-channel-adc-hat-v2/
.. _`Sntieecr`: https://www.amazon.co.uk/Sntieecr-Mini-Generator-Motors-3V-12V-DC-Motor-Generator-Educational-Experiment/dp/B0922N8MCR/
.. _`Flask`: https://flask.palletsprojects.com/en/2.0.x/
.. _`Minecraft`: https://www.minecraft.net/
.. _`MagPi`: https://magpi.raspberrypi.com/articles/virtual-minecraft-birthday-cake