Published on

I installed LED lighting to my 3D printer


Having to turn on the main room light can be too much, especially at night. It might disturb other people who live in the same room with me too. From that, I got the idea of installing some lighting for my 3D printer.

I'm using an Artillery Hornet FDM 3D printer. It is my first 3D machine and I loved it.

The idea

Initially, I thought to just solder some LEDs that I had lying around on a donut board. But, the light intensity of those LEDs is not so bright. I also need to calculate the required amount of resistance and place them on the board. Requires some work. One day, I scrolled through Shopee and found this cheap SMD LED board. I think it may fit perfectly with this project. It also comes with the micro usb port, enabling easy testing and prototyping.

LED board from shopee

Designing the LED holder

When the LED has been delivered, I tested it and I measured its dimension to design a holder for it. This holder will be fitted into the aluminium profile of the printer. Using Fusion 360 to make the design, and after a few iterations, I came up with this:

Sent it to my printer to print. This is the result, very satisfying.

LED holder printed

You can print/modify the holder yourself. Please find the files here.

Then, slide the LED board to its casing

LED with its holder

Power supply

At the beginning, I was planning to use the printer's power supply module, so that the light will automatically turned on when I turned on the printer. To access the module, it has no other way than to access from the bottom. Seeing this as time-consuming can probably be hard to maintain in the future, I decided to use a separate power supply - powerbank I had lying around.

Hornet from below

There is a USB type B port at the side of the printer for data transmission purposes, so I'm not so sure if I can get 5V supply from there, plus I did not have much of its cable. In the end, I planned to just use one powerbank I have lying around. The wiring should be straightforward; USB to LED.


First, I took off the top gantry of the printer. It is held by 4 screws and can be removed using the allen key. Luckily, it isn't attached to any stepper motor etc. It is just there by itself, so removing is a piece of cake. The holder also needs to be removed.

Top gantry assembly

Both LED boards will connect with parallel configuration. The LED board has 2 pad with positive and negative, so the wires can be soldered into it. Strip some jumper wires, expose the copper wire as needed only, not too long. Solder the wires to the LED board.

In case it is still unclear, diagram below should be helpful. (Note: You can replace the USB with other 5V sources. Eg: Arduino 5V output)


Find some USB connector you had, perhaps from old phone charger etc. Strip the wires. For data cable USB2.0, usually there will be 4 wires. We only need the power so find wire with red (positive supply) and black (ground). Because the wire is short in my case, I connected with another wire that is soldered to the LED board. But if your cable is long enough, you can just solder it directly to the LED board.


Do not solder the wire when the LED board attached to its plastic case, the case may deforms under high temperature.

The picture below is the combined wire. I use heat shrink to cover the wire to prevent short circuit (precaution).

Combine wire

Now, route the wire neatly inside the aluminium profile. Then, screw the handle in place, be careful not to screw the wires underneath. Connect the USB to power to see if the light turned on. After that, we can proceed to remount the gantry back to the printer.

Install led on aluminium profile

After some soldering

LED after soldering

Route the USB cable at the back of the vertical gantry. Be sure not to disturb the movement of the z-axis gantry movements. Optionally, use some cable ties to reduce the tension of the wires and to keep it clean.

Picture below is the z-axis at its maximum (250mm), there are some safe spaces to route the wires.

picture z

Final results

Artillery Hornet Result 1
Artillery Hornet Result 2
Artillery Hornet Result 3
Artillery Hornet Result 4

You can also watch my cringe YouTube shorts here.

Further improvements

For now, the problem is I need to manually turn on/off the light. What I want is for the light to automatically turn itself off when the printer is finish printing.

I have few ideas running in my mind right now:

Access Marlin to get printing status

Artillery Hornet USB port

Marlin is the firmware that runs on the 3D printer. It is an open source and (I think) can be accessed via a USB port, just like an Arduino. I mean I've done car interfacing before, so to interface with the printer it shouldn't be that hard, or is it?

Well, for now I couldn't find anything online, so I have to dig down by myself to see whether it is possible or not.

Timer off light

This one is straightforward. Just hook up some microcontroller, add buttons to adjust the countdown timer, relay etc. The timer can be set based on the slicer's estimated printing time.

Concluding remarks

Anyway, thanks for reading. I hope you find this project interesting. Put your comments below if you have any. I'm just going to finish up the article(s) that has been in my drafts for eternity now_.