LED Driver is an open-source printed circuit board by rohan21032003, from the rohan21032003/24V-Constant-Current-LED-Driver repository on GitHub. It is a 2-layer board with 17 parts on 8 nets, routed with 109 tracks and 0 vias.
It is built around the PT4115, LM393 and BZT52C4V7, with the SS14 among its other parts. Its parts include 6 resistors, 4 capacitors, 2 ICs, 2 diodes and 2 connectors.
A compact 24V constant-current LED driver designed around the PT4115 switching LED driver IC, with an LM393-based automatic dimming control stage.
The project is designed as a practical, low-cost hardware solution for driving an LED load at approximately 3.5 W, while providing automatic switching between normal and dimming modes without requiring an external microcontroller.
Project status: Prototype / Development
The PCB and circuit are currently being developed and require final bench validation before production use.
Features
24V DC input
Constant-current LED driving
PT4115-based switching regulator
Approximately 3.5 W target LED output
LM393-based automatic dimming control
No external microcontroller required for the dimming decision
Schottky freewheeling diode
68 µH power inductor
Current-sense resistor for LED current regulation
Input filtering capacitors
Zener-based voltage protection for the control section
Through-hole input/output connectors
SMD power and control components
Designed for a single-layer PCB
KiCad 9 project
1. Project Overview
The purpose of this project is to develop a dedicated constant-current LED driver capable of operating from a 24V DC supply.
Unlike a simple resistor-based LED circuit, the PT4115 regulates the LED current through a switching converter. This allows the LED current to remain substantially more controlled as the LED's forward voltage changes.
The second part of the circuit uses an LM393 comparator to detect a predefined voltage condition and provide a control signal to the PT4115 DIM input.
The PT4115 monitors the voltage across the current-sense resistor connected to its CSN pin.
The sense resistor determines the regulated LED current.
Conceptually:
text
LED current
│
▼
Current-sense resistor
│
▼
Voltage developed across Rs
│
▼
PT4115 CSN
│
▼
Switching duty cycle adjusted
│
▼
LED current regulated
This makes the circuit a constant-current LED driver rather than a simple voltage source.
3. Dimming Control
The project uses an LM393 comparator to provide automatic dimming control.
The comparator monitors the selected voltage signal and compares it against a reference threshold.
When the monitored voltage crosses the defined threshold, the comparator changes its output state.
That output is connected to the DIM input of the PT4115.
The intended behavior is:
text
Voltage monitored
│
▼
┌─────────┐
Reference ───► │ LM393 │
└────┬────┘
│
▼
DIM
│
▼
PT4115
│
LED brightness
This approach eliminates the need for a dedicated microcontroller for the basic dimming-mode decision.
4. Main Components
Reference
Component
Purpose
U1
PT4115
Constant-current LED driver
U2
LM393
Voltage comparator / dimming control
D1
SS14
Schottky freewheeling diode
D2
BZT52C4V7
4.7V Zener protection/reference
L1
68 µH
Switching inductor
Rs
Current-sense resistor
Sets LED current
C1
100 µF
Bulk input filtering
C2/C4
100 nF
High-frequency decoupling
C3
1 µF
Additional supply filtering
R2
4.7 kΩ
Zener/reference network
R3
10 kΩ
Comparator network
R4
470 kΩ
Comparator feedback/reference network
R5
68 kΩ
Voltage divider
R6
10 kΩ
Voltage divider
J1
2-pin connector
24V power input
J2
2-pin connector
LED output
Component values may be revised during final validation.
5. PCB Design
The PCB is being designed in KiCad 10.
Board constraints
Single-layer copper design
F.Cu used for routing
Ground implemented using copper where appropriate
SMD resistors and small-signal components
SMD power components where practical
Through-hole bulk capacitor where required
Through-hole inductor selected for mechanical and thermal considerations
1210 footprint for the current-sense resistor
0805 footprints for the smaller resistors/capacitors
Compact placement while maintaining adequate spacing around heat-generating components
6. PCB Placement Philosophy
The placement is based on keeping high-current and high-frequency switching paths as short as possible.
The general arrangement is:
text
24V INPUT
│
▼
INPUT CAPACITORS
│
▼
PT4115 ─── D1 ─── L1 ─── LED OUTPUT
│
│
Current Sense
│
▼
GND
LM393
│
▼
DIM
The PT4115, Schottky diode, inductor and current-sense components are kept relatively close together because these components form the primary switching/current-regulation section.
The comparator section is kept separated from the high-current switching path as much as practical to reduce the possibility of switching noise affecting the threshold detection.
7. Protection and Reliability
The design includes basic protection and filtering components while keeping the circuit relatively simple.
Zener protection
A BZT52C4V7 is used in the comparator/reference section.
The selected device provides a convenient 4.7V Zener reference/protection element and has a readily available KiCad footprint.
The Zener is not intended to replace proper input protection for all possible supply transients.
Schottky diode
The SS14 is used as the freewheeling diode in the PT4115 switching stage.
A Schottky diode is preferred because of its relatively low forward voltage and fast switching behavior.
This helps reduce conduction losses in the switching path.
8. Thermal Considerations
The PT4115 and other components in the switching path can generate heat during operation.
For this reason:
The PT4115 should have sufficient copper around its thermal pads/pins according to the package requirements.
High-current traces should be kept short.
The switching components should be positioned close together.
The current-sense resistor should not be unnecessarily placed next to heat-generating components.
Sensitive comparator components should be kept away from the main switching node.
The PCB should provide adequate copper area for heat spreading.
Thermal performance will be verified during prototype testing.
9. Design Target
The current design target is approximately:
Parameter
Target
Input voltage
24 V DC
LED output power
~3.5 W
LED driver
PT4115
Dimming controller
LM393
Inductor
68 µH
Switching diode
SS14
Zener
BZT52C4V7
Small SMD resistors
0805
Current-sense resistor
1210
PCB
Single layer
Design software
KiCad 9
The exact LED current depends on the final current-sense resistor and the actual PT4115 sense threshold.
Decoder tool for analyzing OpenTherm protocol communication between a BM remote control and a Wolf CWL ventilation/heat-recovery unit. Built to reverse-engineer the protocol for building a custom ESP32-based controller.
A USB 2.0 (480 Mbit/s) passthrough board that can electrically "unplug" a USB connection under software control — used for Hardware-in-the-Loop (HIL) testing.
Decoder für Modelleisenbahn Signale mit Multiplex-Technologie
400 parts
Questions
What parts does the LED Driver use?
17 parts, built around the PT4115, LM393, BZT52C4V7 and SS14. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the LED Driver KiCad files?
From the rohan21032003/24V-Constant-Current-LED-Driver repository on GitHub, at the commit this page was made from: the board is LED_Driver.kicad_pcb and its schematic LED_Driver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the LED Driver design in my own project?
Its repository states no licence, so its author keeps all rights: ask rohan21032003 before reusing the design.