Third party cookies may be stored when visiting this site. Please see the cookie information.

PenguinTutor YouTube Channel

Outdoor Raspberry Pi LED Matrix: Christmas Advent Calendar

Reopening my weatherproof LED matrix display to upgrade the OS, move from a C command-line tool to a Python & Flask web interface, and build layered pixel animations in Aseprite.

I'm revisiting my outdoor Raspberry Pi RGB LED Matrix display just in time for Christmas—upgrading the operating system, replacing the old command-line software, and creating an automated Advent Calendar countdown!

Christmas Advent Calendar Project Overview

This video looks at the through the hardware, software rewrite, and animation workflow for this year's festive Advent Calendar countdown.

Hardware Setup & Weatherproof Enclosure

Because this display lives mounted outdoors, upgrading the operating system meant opening up the weatherproof frame that I had previously sealed to keep moisture out.

Outdoor Raspberry Pi RGB LED Matrix display mounted in a black weatherproof frame on a brick wall The weatherproof outdoor frame mounted on the wall.

On my original build, I soldered the HUB75 matrix ribbon cable directly to the GPIO pins on the Raspberry Pi Zero. If you want to build a similar display without soldering, you can use an Adafruit RGB Matrix Bonnet instead. It requires a small configuration adjustment in the software for the pin mapping, but otherwise works in exactly the same way.

Software Upgrade: From C CLI to Python & Flask

Originally, I wrote the control software as a command-line program in C driven by plain text configuration files. That was done for performance reasons on an original Raspberry Pi Zero. While it ran reliably, editing configuration files over SSH wasn't particularly convenient for everyday updates.

Feature Previous Version (C) New Version (Python + Flask)
Interface Command line & text config files Browser-based Flask web server
Content Manual file updates over SSH Upload single images or multi-frame animations
Scheduling Manual / basic scripting Start immediately or schedule days in advance

Moving to a Python backend with a built-in Flask web server makes the display far easier to manage. I can upload individual images or a sequence of frames to play as a full animation, and either trigger them immediately or schedule them in advance—making it ideal for automatically revealing a new Advent Calendar graphic each day of December.

Designing Low-Resolution Animations in Aseprite

Previously, I created graphics using LibreOffice Impress, GIMP, or Blender. While all of those tools can export animations, they aren't particularly well suited to low-resolution, pixel-by-pixel artwork tailored to an LED matrix.

For this update, I switched to Aseprite, a dedicated pixel-art and sprite animation editor.

Note on Aseprite Licensing & Linux Installation Aseprite is not completely free software—the source code is available, but its licence does not allow redistribution of the code or pre-built binaries. However, it is reasonably priced. When I purchased my copy, it worked out cheaper via Steam and I installed it using Steam for Linux. Once purchased through Steam, you can also log in on the Aseprite website with your Steam account to download standalone versions directly.

Aseprite made building the Advent Calendar much faster:

  • Pixel-accurate canvas: Designed specifically around the exact resolution of the LED matrix.
  • Frame animation & tweening: Built-in timeline tools paired with the Easy Interpolation extension to generate smooth transitions without drawing every frame manually.
  • Multi-layer template: By separating the background, date number, colour scheme, and festive icon onto different layers, I kept a consistent visual style across the whole countdown while quickly generating each day's animation.

What's Next?

I have a few more plans for these RGB LED matrix displays, including a brand-new project I'm hoping to finish before the end of the year. Subscribe to the YouTube channel to catch that build when it goes live.

More Information

See the following link for more details about the project and hardware wiring.

Related projects

Also see:

Future projects

To see future updates please:
Subscribe to the PenguinTutor YouTube Channel

Previous Raspberry Pi Outdoor display and NeoPixels
Raspberry Pi Outdoor display and NeoPixels
Next Wearable Snowman badge
Wearable Snowman badge