Skip to content

A Christmas-themed project that features flowing LEDs, four buzzers playing Christmas tunes, and a Pygame-based animation; all done on the Raspberry Pi 4 Model B.

License

Notifications You must be signed in to change notification settings

mvinza34/A-Pi-Christmas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A-Pi-Christmas

Overview

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.

Components

  1. 1 Raspberry Pi 4 Model B
  2. 2 solderless breadboards
  3. 18 LEDs (6 reds, 6 greens, 6 whites)
  4. 18 330 Ω resistors
  5. 4 buzzers (active or passive)

image image image image image image image

Instructions

  1. Design the circuit based on the provided breadboard image and schematic below:

Pi4_Christmas_bb Pi4_Christmas_schem

  1. Plug in the Raspberry Pi 4 Model B.
  2. Copy the files in this repository to the Pi.
  3. 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.
  4. Open main.py and settings.py
  5. 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.
  6. Go to settings.py and paste the string. Make sure to remove "Online Sequencer:120233:" from the start and ";:" from the end.
  7. Run main.py
  8. Enjoy the music, lights, and a nice little animation at the end, and have a wonderful Happy Holidays!

About

A Christmas-themed project that features flowing LEDs, four buzzers playing Christmas tunes, and a Pygame-based animation; all done on the Raspberry Pi 4 Model B.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages