Introduction: Step-down LED Driver (Up to 36V Input With Sleep Feature)

This LED driver is very similar to the Simple Buck LED Driver but was modified to handle a higher input voltage. A benefit of a larger input voltage is that you can power more LEDs in series with each driver. This driver has PWM dimming and sleep feature which can prolong battery life when not in use.

Step 1: Materials

Step 2: LED Driver Circuit

W1 connects to the battery's positive terminal. By directly connecting it to the battery, there's slightly less resistance than if a transistor was used.

W2 connects to ground

W3 enables the LED driver. To turn it on, the connection needs a voltage equal to that of the supply voltage. This connection is needed because the surge current from charging the capacitors through W1 may be too high for the AO3401. When turned on, about 10 mA flows through this connection. If turned off, there's almost no current flowing through the LED driver.

W4 is PWM dimming input. A high causes the LEDs to turn off. Make sure that you invert the PWM out of the microncontroller

W5 connects to the LED string's anode (+)

W6 connects to the LED string's cathode (-)

Warning: Do not reverse polarize the connections for W1 and W3. I destroyed Q2, Q3, and Q4 by doing so and had to replace them.

Step 3: Sample Circuit With Microcontroller

Step 4: Calculate Resistors for Voltage Rating

This step is necessary only if your power supply's voltage is higher than Q4's absolute maximum rating for Vgs which may be 20V. If it's lower, R14 can be 0 ohm. If it's higher, a voltage divider formed by R13 and R14 would be needed. The maximum voltage can be 36V if R13 and R14 are properly selected.

In the test circuit, R13 and R14 were each 10k. A 12V source was used. An oscilloscope's screen shots were provided. You can see that the output's high and low voltages were 12V and 6V. If the voltage divider wasn't used, the high and low voltages would be 12V and 0V. A 24V power supply can damage a MOSFET.

The values of R13 and R14 should be selected so that when Q4 turns on, Vgs falls within its safe range. Make sure that Vgs is above its threshold voltage so that it the transistor will turn on. If they're equal in value, the rated input voltage is doubled. You can also experiment by replacing R13 with a Zener diode.

Steps for determining the value of R13,

Select a desired value of R14 .

Select the desired Vgs voltage.

Select the voltage of the power supply.

Calculate the gate voltage (Vg).


Where Vsupply is the input voltage for the LED driver, and Vgs(desired) is the desired voltage between Q4's source and gate pins.

Calculate R13.


Example 1

R14=4.7k, Vgs(desired)=16V, Vsupply=24V



Example 2

R14=5.6k, Vgs(desired)=7.2V, Vsupply=14.4V



Step 5: Calculate the Current Sense Resistor's Value


Where Vfeedback is the voltage measured at pin 2 of the LM393, and ILED is the LED's drive current. Rsense is the resistance of R1 through R4.

Example 1

Rsense=0.35V/700mA=0.5 ohm

Example 2

Rsense=0.35V/1500mA=0.23 ohm

You can set the resistance by soldering them in parallel. For example, four 1 ohm resistors in parallel would have a total resistance of 0.25 ohms.


nqtronix made it! (author)2016-11-07

Thumbs up for using only widely available, low cost parts in your design. This is the way open source projects are meant to be!

AnjosT made it! (author)2016-10-09

Very cool your project, but I would like to ask a question:

I want to use this driver for an LED 50W or 100W would work or what would have to change to make it work properly ????
I await a friend noble return.
hanlin_y made it! (author)hanlin_y2016-10-09

I can't find a P-channel MOSFET in SOT23 package that handles over 40V so I modified the circuit board traces so that Q4 would be in TO-220. You can use IRF540N.

hanlin_y made it! (author)hanlin_y2016-10-09

Sorry I didn't upload it before.

driver with th mosfet.pdf
AnjosT made it! (author)AnjosT2016-10-10

In fact, I want to feed with 12Volts and get 36 volts at the output to serve as a driver for LED 50Watts chip, but keep a low amperage, and increase a fuse to protect the circuit and the actual LED chip 50Watts

hanlin_y made it! (author)hanlin_y2016-10-10

There's a boost converter Instructable but you'll need to modify its circuit and code to become constant current instead of constant voltage.

hanlin_y made it! (author)hanlin_y2016-10-10

You'll need a step-up converter which needs to handle an input current of around 4.2A. This converter can only step down.

hanlin_y made it! (author)hanlin_y2016-10-09

What are their forward voltages and currents?
If the 100W LED has a Vg of 34V and an If of 3500 mA, and the power supply is 36V with a rating of 4A, it should work on paper. I haven't tried 36V before.

It's possible that you need to use a higher rating for Q4 and D3. L1 should handle at least 4A, D3 should handle at least 4A and 40V, C1, C4, and C5 should handle at least 50V, and Q4's Vds should handle at least 40V.

JunezRiyaz made it! (author)2016-10-06

Great work..

hanlin_y made it! (author)hanlin_y2016-10-06


About This Instructable




Bio: Autistic person who's interests include in utility cycling, recreational cycling, cycling safety, electronics, gardening, Arduino, and LEDs.
More by hanlin_y:Microcontroller Based DC-DC ConvertersATTiny84 Based 3A Step-Down LED Driver12V SLA Powered 15W LED Lamp
Add instructable to: