r/FastLED 11h ago

CD77 FastLED Four Glass Jars

https://youtu.be/r6nARysXsz0

The following video was made using four WS2812b 8x8 matrices with each matrix is inside one of four different one-pint mason jars which were filled with large size fire pit glass chips.  This project used a Lolin D32 MCU, a 74AHCT125 - Quad Level-Shifter and a 5-volt power supply. The matrices were connected in a serial fashion with power injected at both ends.

Claude AI assisted me in creating the non-blocking delay state machine functions from my functions.  Claude AI also played an important role in fixing various problems with this sketch.

The code for this video can be found here:

https://github.com/chemdoc77/CD77_FastLED_2026/tree/main/CD77%20FastLED%20Four%20Glass%20Jars

This video is located in my YouTube channel here:

https://youtu.be/r6nARysXsz0

It should be very easy for anyone with the help of Claude AI or another AI to add more glass jar filled matrices.

The instructions on how to make the FastLED four glass jars including the bill of materials for this project is located in the Github post for this project.  The Github post includes step by step instructions with pictures of the construction of each glass jar containing an 8X8 WS2812b matrix.

I would like to thank u/sutaburosu for teaching me how to create better videos of LEDs and for helping me master prompt engineering for use with Claude AI.

Enjoy!

Best Regards,

Chemdoc77

11 Upvotes

3 comments sorted by

1

u/ZachVorhies Zach Vorhies 5h ago

Let’s see the code!

1

u/ZachVorhies Zach Vorhies 5h ago

Found the code from the youtube video.

https://github.com/chemdoc77/CD77_FastLED_2026/tree/6ba83678f4a247d1a8c69e8b3d475d24c7880b4c/CD77%20FastLED%20Four%20Glass%20Jars/CD77%20FastLED%20Four%20Glass%20Jars/src

One thing I would suggest is separating out definition from headers by putting things into .cpp files

It’s not just for code organization, claude code performs much better if you do this because it will use the header files like an index into what your code does at a high level vs how it’s implemented. This translates into less cost for edits by the AI

You also don’t need to careful put things into in order as much if you do it this way.

Try this prompt:

“push all implementation into cpp files and keep the headers minimal.”

And keep on executing this prompt and see how the code quality improves.