Skip to content

Interface NeoPixels (aka Addressable LED Strip) with Bambu Lab Printers

Notifications You must be signed in to change notification settings

judge2005/BambuLights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interface NeoPixels (aka Addressable LED Strip) with Bambu Lab Printers

I use the BLV AMS Riser with my Bambu Labs X1C that has a facility for adding additional lighting, but I also like the idea of the BLLED project that adds lighting that reacts to the state of the printer. I can't use BLLED with the riser because the LEDs are too big, but I have a lot of experience developing hardware and software that uses ESP32 and addressable LEDs so I developed this project to do the same thing, but for 5V WS2812B LED strips.

Lights in action

Software

This project uses PlatformIO IDE. It is easy to build and upload to the hardware if you have PlatformIO installed. Just check out the repo and open it in PlatformIO. There are two artifacts:

  • firmware.bin - the firmware!
  • littlefs.bin - the GUI

When the software first runs it will create an access point that you can use to connect it to your local network. The SSID for the access point will be some hex numbers followed by bambulights, for example 5FC874bambulights.

Installing

Instead of building the software, you can install a release. Go the latest release and follow the instructions.

Hardware

The hardware is pretty simple. The LEDs take less than 0.7A total, so most ESP32 dev kits will be able to provide the 5V power for the LEDs.

Lights

I used some high-density WS2812B LED strips available on AliExpress. They are 5mm flexible LED strips with 160 LEDs/m. They have an adhesive backing so I just left the backing on so I could slide them in to the channels in the riser. I cut them to 210mm, which is 33 LEDs.

You will need to solder 28AWG hookup wire to the terminals on the strips, preferably white, red and green to match the wiring used in the original connector. This gauge allows you to thread three wires through the channel in the riser rather than just two.

Wire the two strips in parallel.

I also bought these JST connectors from AliExpress so I could easily connect/disconnect the electronics. The wire colors match the original connector wire colors.

Electronics

I used a ESP32 Pico D4 devkit that I happened to have lying around. The signal from these is 3.3V so I added a CD40109B level shifter. Again I happened to have one lying around, but pretty much any level shifter would do.

This is how it is wired up:

Fritzing diagram

This is the whole thing in a box I printed for it:

Open box

And attached to the back of the printer:

Mounted box

GUI

There is a web GUI that allows you to configure the printer details and the colors and behaviors of the LEDs. This is available at http://bambulights.local/ (assuming your PC/phone understands the .local suffix). When you make a change in the GUI it will be immediately reflected in the device.

There are three screens. The first allows you to set the connection details for the printer and to change the hostname of the device itself:

Open box

The second allows you to set the colors and effects for the different printer states, and also to force the LEDs to be off, on (white) or reactive to the state of the printer:

Open box

The last screen is for data nerds, it shows some stats about the device itself:

Open box