This is a Christmas-themed project featuring 18 flowing LEDs, four buzzers playing Christmas tunes, and a Pygame-based holiday-themed animation; all done on the Raspberry Pi 4 Model B. Credit for the "buzzer_music.py" and "machine.py" codes, the Snowflake class, and the Transition class go to james1236 via the buzzer_music repository, EruditeCode via the snow_simulator repository, and Clear Code via the PirateMaker repository respectively. Check out (https://github.com/james1236/buzzer_music), (https://github.com/EruditeCode/snow_simulator), and (https://github.com/clear-code-projects/PirateMaker) respectively for more information.
- 1 Raspberry Pi 4 Model B
- 2 solderless breadboards
- 18 LEDs (6 reds, 6 greens, 6 whites)
- 18 330 Ω resistors
- 4 buzzers (active or passive)
- Design the circuit based on the provided breadboard image and schematic below:
- Plug in the Raspberry Pi 4 Model B.
- Copy the files in this repository to the Pi.
- Go to 'Terminal' and install pygame - Community Edition using the command 'pip install pygame-ce'. Then, type 'pip install pygame-ce --upgrade' to get the latest version of pygame.
- Open main.py and settings.py
- To add more holiday-themed music, go to onlinesequencer.net and pick a song. Click edit, select all notes with CTRL + A, and then copy them with CTRL + C.
- Go to settings.py and paste the string. Make sure to remove "Online Sequencer:120233:" from the start and ";:" from the end.
- Run main.py
- Enjoy the music, lights, and a nice little animation at the end, and have a wonderful Happy Holidays!