New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Cheap way to drive a 700 mA LED that I dim from a board slider

Cheap way to drive a 700 mA LED that I dim from a board slider

Solved 5 4

Building a dock work light for our loading bay: one 700 mA power LED on a heatsink, an ESP8266 that already reports temperature to Hermetry, and I want a slider on the bay’s board so the shift lead can dim it.

First try was 12 V through a resistor and a logic-level MOSFET on a PWM pin. Resistor got hot enough to smell and the brightness changed as the LED warmed up. What’s the cheap, sane way to drive 700 mA with dimming from an ESP pin?

♥ 2

Constant current driver. Resistors and power LEDs don’t mix.

♥ 2

Do you need dimming at all? If it’s just on and off, a relay is the cheapest thing there is.

♥ 0

Dimming, the night shift wants it lower. 0 to 100 on the slider.

♥ 1

I did a lot of lighting retrofits at the hotels before I touched any IoT, so this one I know.

Get a constant current buck module with a dim input. The cheap ones built around a PT4115 cost a couple of dollars, come in 700 mA versions (or set by a sense resistor), take 12 to 24 V and have a DIM pin. A Mean Well LDD-700H is the nicer branded one. Feed it 12 V, LED on the output, and your ESP8266 PWM pin straight into DIM. 3.3 V PWM is enough for both of those. Around 1 kHz PWM, no flicker you can see, the driver keeps the current flat as the LED heats up.

On the Hermetry side: add a command like light.set with a number parameter to the profile’s catalog as a Basic command, then a Slider control card that runs it. The slider sends once when you let go, not while dragging. For a light I switch off Ask before running, otherwise the shift lead gets a confirm box every time. Bind the current value to what the ESP reports back (I send light.level after each change), so the slider shows what the light is really doing. Control cards walks through it.

Accepted solution♥ 7

PT4115 module in, two bucks each, PWM at 1 kHz into DIM. No more hot resistor and the brightness stays put. Slider works with Ask before running off, level comes back as light.level. Thanks David.

♥ 0
Viewing 6 posts – 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Join the conversation

Sign in to ask and answer, like helpful posts and mark the reply that solved your problem. Every contribution earns points and levels.

Share