brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Shining a Light on the Plasma Lamp: A Raspberry Pi Pico LED Project πŸ’‘

I’ve always liked how light sets the mood of a room. This project is my attempt at smooth LED animations that change with the hour.

I wanted ambient lighting that feels organic and shifts with the time of day.

What is the Plasma Lamp?

The Plasma Lamp is a Python-based controller for LED strips (like the WS2812B). It uses mathematical functions to generate “plasma-like” flows of color, so the light never sits static or jumps between colors.

The script tracks the time and adjusts the intensity, speed and color palette of the LEDs to the rhythm of the day: softer, warmer tones in the evening and livelier patterns during the day.

What it does

  • Smooth animations: sine waves and noise-like functions make the light “breathe”.
  • Time awareness: the animations change with the hour.
  • Light on resources: it runs on the RP2040 chip of the Raspberry Pi Pico.
  • Customizable palettes: change the code to match your own interior.


The project is open source and written in MicroPython, and it is on my GitHub. You can build your own or just read the code to see how the animations are calculated.

GitHub repository: jordibrouwer/plasma-lamp

Link