Overview
A 50W COB LED work light that draws all its power over USB-C Power Delivery, including straight from my eBike powerpack, or any PD adapter capable of delivering 50W. Started on 2 June 2026 with the Arduino circuitry, the goal was less “I need a light” and more “how much can I learn building one”: PD triggering, buck-boost conversion, PWM dimming, embedded safety logic, and a fully custom 3D-printed enclosure.
It’s now finished. The final housing is printed and assembled, the display firmware has been rewritten around a proper multi-page interface, and the last feature to land was a settable power budget: you tell the light what your adapter can actually handle, and it keeps itself below that ceiling so the adapter never trips and shuts off mid-use.
The result is a light that not only dims and displays live stats, but actively protects itself, and the power supply feeding it, throttling output if the LED gets too hot or if the USB-C source can’t keep up with demand.
Key features
- 50W COB LED driven from a USB-C PD trigger board requesting 20V, stepped through a buck-boost converter to a regulated 15V with a 3.3A current limit, needed because the LED’s resistance drops as it heats up, so without a limit it would pull more and more current until it burned out
- Arduino Nano (chosen for its small form factor) controls brightness via a dedicated PWM regulator, adjustable through an onboard potentiometer
- Settable power budget: you dial in the maximum wattage your adapter can supply, and the light shows the current that ceiling demands before you save it. The LED is then held below that limit, so a weaker adapter never gets pulled into its own overcurrent shutdown
- Onboard display with multiple stat pages, cycled by the front button: live output percentage, input voltage, LED temperature, and calculated wattage against the configured maximum
- Input voltage monitoring via a voltage divider, so the light won’t power on below 12V and can detect voltage sag (when the USB-C adapter can’t supply what the LED is demanding), automatically throttling output to bring the voltage back to normal
- Thermal protection: a thermistor mounted directly under the LED die tracks temperature. Output is throttled as it approaches 50°C, and the LED fully shuts off into a cooldown mode above that threshold, only turning back on once it’s dropped below a configured temperature
- Active cooling: heatsink + thermal paste + 12V fan (with its own 12V converter, since nothing else in the system ran on 12V)
- Custom 3D-printed PETG housing (chosen for its heat resistance), split into two hinged halves (electronics base and LED head) so the beam angle can be adjusted and held at any tightness via the hinge, sitting on its own printed stand
- Housing design details: flush countersunk screw holes and heat-set threaded inserts for mounting the lid and internal components like the buck-boost converter
The power budget
The feature that took longest to get right isn’t visible in a photo of the light itself. A 50W LED will happily ask a 20W adapter for everything it has, and the adapter’s response is to protect itself and cut out. From the outside that just looks like the light dying.
So the light now carries a configurable ceiling. In the menu you set the maximum wattage the attached supply can handle; the display shows the current that setting would draw, so you can match it against what’s printed on the adapter, and saving it caps the LED there. Run it from a 40W source and you get the full range. Plug into something weaker, set the ceiling to match, and the light simply tops out lower instead of browning out.
Challenges
The biggest lessons came from buying the wrong parts before understanding the physics involved:
- First attempt used a fixed 12V buck converter with no current limiting. Turned out the LED needed 15V to hit its full potential, and more importantly, as COB LEDs heat up their resistance drops, so they pull increasing current at a fixed voltage. Without a current limiter, that’s a direct path to burning out the LED.
- For dimming, I originally used a motor PWM driver, which actually worked fine for the LED. But once I decided the Arduino should own dimming (to layer in the safety features), I tried to “hack” into the motor driver’s potentiometer input using optoresistors. It wasn’t reliable enough, so I switched to a dedicated PWM regulator that accepts a direct PWM signal from the Arduino.
- Getting the power output ramp curve right so the USB-C PD adapter doesn’t trip its own overcurrent protection when the LED suddenly demands a lot of current.
- Fitting everything into a housing that still had to hinge, vent and cool properly. The base had to swallow the buck-boost converter, the PWM board, the 12V converter and the Nano while leaving airflow intact.
What I learned
- USB-C PD triggers: how a trigger board requests a fixed 20V profile from a PD source, and why that says nothing about how much current the source can actually deliver, which is exactly the gap the power budget fills
- Buck-boost conversion and current limiting as protection against thermal runaway in high-power LEDs
- Safely reading higher voltages into a microcontroller using a voltage divider
- Building real-time protection logic: voltage-sag detection and thermal throttling/cutoff with cooldown hysteresis
- Designing an embedded UI that someone other than me could use: a boot screen, multiple stat pages on one button, and a settings flow that shows the consequence of a choice before you commit to it
- 3D design techniques for functional enclosures, including heat-set insert holes, flush countersunk screws, and adjustable hinge mechanisms
- Iterating on hardware choices quickly when a component doesn’t actually meet the electrical or thermal requirements of the project