veebch / hbty

A flickering LED candle that plays tunes. Extra birthday points guaranteed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouTube Channel Views

hbty

Pico party. It will wait until the lights go dim, light its fake flickery candle and play happy birthday on its tiny buzzer. If you just want to add a flickery nightlight to a project, you can just omit the buzzer part.

Components

  • Raspberry pi pico
  • 220 ohm resistor
  • Yellow LED
  • Buzzer
  • Photoresistor

Assembly

Solder the components directly to the board (see photo).

Buzzer to GND and GP15. Photoresistor to GND and GP26 and GND to resistor to LED cathode (short leg), LED anode (long leg) to GP16.

Copy the code to a file called main.py at the root directory of the pico. Now every time you plug it in, it will be poised to sing Happy Birthday (once) when the lights go down.

Video

Explainer vid

About

A flickering LED candle that plays tunes. Extra birthday points guaranteed

License:GNU General Public License v3.0


Languages

Language:Python 100.0%