

CombinedLEDdriverMAX278
Smart Microscope LED Driver based on STM32G431
- Size
- 52 × 52 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 75
- Nets
- 62
- Pads
- 267
- Tracks, vias
- 416, 156
- Pours
- 172
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 13 Jul 2026
- Updated
- 14 Oct 2026
Overview
CombinedLEDdriverMAX278 is an open-source printed circuit board by williamlin108, from the williamlin108/Olympus-BH-2-LED-Module-G031xMAX20078 repository on GitHub, published under the Apache-2.0 licence. It is a 4-layer board of 52 × 52 mm with 75 parts on 62 nets, routed with 416 tracks and 156 vias.
It is built around the MAX20078ATE+T, SN74AC00D and TPS7E8233AQDBVRQ1, with the TVS2200DRV, D2F-01F and B340A-13-F-MS among its other parts. Its parts include 27 resistors, 18 capacitors, 6 ICs, 6 diodes and 3 connectors. It belongs with the STM32 boards of this library.
Main components
8MAX20078ATE+T
TQFN-16-EP(3x3)-40℃~+125℃ 1 10mA 1MHz 4.5V~65V Analog、PWM Buck DC-DC External Over Voltage Protection、Over Current Protection、Over-Temperature Protection (OTP) TQFN-16-EP(3x3) LED Drivers ROHSMaxim Integrated (Analog Devices)LED DriversSN74AC00D
SOIC-14-40℃~+85℃ 2 2.1V~3.85V 2.4V、3.7V、4.7V 24mA 24mA 2V~6V 2uA 4 500mV、500mV、500mV 74AC Series 7ns@5V,50pF 900mV~1.65V NAND Gate SOIC-14 Logic Gates ROHSTexas InstrumentsLogic GatesTPS7E8233AQDBVRQ1
SOT-23-5SOT-23-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSTexas InstrumentsUncategorisedTVS2200DRV
WSON-6-EP(2x2)-40℃~+125℃ 1.12kW@8/20us 105pF 22V 25.9V 28V 3.5nA 40A@8/20us IEC 61000-4-2、IEC 61000-4-5 TVS Unidirectional WSON-6-EP(2x2) ESD and Surge Protection (TVS/ESD) ROHSTexas InstrumentsESD And Surge Protection (TVS/ESD)D2F-01F
插件插件 Limit Switches ROHSOmronLimit SwitchesB340A-13-F-MS
SMA-65℃~+125℃ 1 Independent 1mA 3A 40V 700mV@2A SMA Schottky Diodes ROHSMSKSEMISchottky DiodesBSG0811ND
TISON8-4-EP(6x5)TISON8-4-EP(6x5) MOSFETs ROHSInfineon TechnologiesMOSFETsSI4101DY
SO-8-55℃~+150℃ 1 P-Channel 1V 2.9W 25.7A 30V 65nC@4.5V 6mΩ@10V 715pF 8.19nF SO-8 MOSFETs ROHSVishay IntertechnologyMOSFETs
README
README.mdUSB-C PD High-CRI LED Driver for Olympus BH-2 BHTU Microscopes
A compact, USB-C powered constant-current LED driver built around the Maxim MAX20078 synchronous buck controller and an STM32G031 microcontroller. It drives a high-CRI Nichia 519A emitter at up to 5 A, with user-configurable control, saved settings, safety limits, and heavy input protection.
Built specifically to replace and upgrade the discontinued halogen bulb assembly of Olympus BH2 lab microscopes. It drops into the original lamp housing and swaps the hot, short-lived halogen bulb for a cool, efficient, high-CRI LED, while adding USB-C power, presets, and precise brightness control.
Photos
| Driver board and LED module | Running on USB-C PD |
|---|---|
![]() | ![]() |
Features
- USB-C Power Delivery input: Infineon CYPD3177 (EZ-PD BCR) sink controller negotiates a higher PD voltage from any USB-C charger
- 5 A constant-current buck: MAX20078 synchronous buck LED controller with a BSG0811ND dual N-MOSFET power stage
- High-CRI output: tuned for the Nichia 519A for accurate color rendering
- Smart dimming: STM32 firmware handles smooth ramping, gamma-corrected brightness, off mode, and fault latching
- User extensible: open firmware so users can add their own macros, saved settings, and custom safety limits
- Hardware-debounced buttons: SR-latch debounce using SPDT switches and an SN74AC00 NAND gate
- Fault handling: the MAX20078 fault output is monitored and handled in firmware
- Protection: TVS clamping, fusing, EMI filtering, and gate/transient clamps
- Custom CNC Nichia 519 Holder Custom designed CNC 6061 Aluminum heatsink and male socket part that slides into the BHTU's rear illumination port with O-rings to prevent wear and ensure a tight friction fit.
System Overview
USB-C ──► Fuse ──► TVS2200 ──► BNX025 EMI filter ──► CYPD3177 PD sink ──► VBUS load switch ──► VIN
│
┌────────────────────────────────────────────────────────────────┤
▼ ▼
TPS7E82 LDO (3.3 V) MAX20078 buck ──► BSG0811ND ──► 4.7 µH ──► Nichia 519A
│ ▲ │ ▲ │
▼ │ │ └── CSP/CSN current sense (shunt) ◄───┘
STM32G031 ─────── DIM (PWM) ─────────────┘ │
▲ ◄─────────────────── FLT ──────────────┘
│
SW1/SW2 (SPDT) ──► SN74AC00 SR-latch debounceHardware
| Block | Part | Role |
|---|---|---|
| PD sink | Infineon CYPD3177-24LQ | Negotiates USB-C PD voltage; drives the VBUS load switch |
| Input protection | TI TVS2200DRV | Flat-clamp TVS on VBUS |
| EMI filter | Murata BNX025 | Input noise suppression |
| Fuse | F1 | Input overcurrent protection |
| LED controller | MAX20078ATE+T | Synchronous buck, constant-current LED regulation |
| Power stage | BSG0811ND dual N-MOSFET | High-side / low-side switches |
| Inductor | 4.7 µH | Buck output inductor |
| Current sense | 0.1 Ω shunt (Kelvin-routed CSP/CSN) | LED current feedback |
| MCU | STM32G031J6 | UI, settings, dimming, fault handling |
| LDO | TPS7E8233-Q1 | 3.3 V logic supply |
| Buttons | 2× Omron D2F-01F (SPDT) | User input |
| Debounce | SN74AC00 quad NAND | Cross-coupled SR latches |
| Emitter | Nichia 519A | High-CRI LED |
Protection
- Fuse on the USB-C VBUS input
- TVS2200 flat-clamp surge protection against hot-plug and ESD transients
- Murata BNX025 EMI filter on the input to keep switching noise off the cable
- Zener gate clamp (MMSZ4702) on the VBUS load switch
- Schottky diodes (B340A, B5819W) for bootstrap and transient paths
- Bulk and decoupling capacitance (22 µF ceramics) on input and output
- Dedicated current-sense net class for accurate, low-noise regulation
- Firmware limits on maximum current and shutdown on fault
Hardware Debounce
Each button is an SPDT switch wired to a cross-coupled NAND SR latch in the SN74AC00. The latch changes state on the first contact and ignores bounce, so the STM32 sees one clean edge on ENCA / ENCB per press without software debounce delays.
Connectors & Test Points
| Ref | Description |
|---|---|
| J1 | USB-C power input (PD) |
| J2 | LED output (LED+, LED−) |
| J3 | TC2030 SWD programming / debug |
| TP1 | VDC |
| TP2, TP4 | GND |
| TP3 | GPIO (debug) |
Firmware
Written in bare-metal C using the STM32 libraries (no RTOS). The STM32G031 provides:
- PWM dimming: TIM3 drives the MAX20078
DIMinput with 32,000 steps of resolution - Smooth ramp: hold up/down to sweep brightness over 3 s; level is computed from elapsed time so the sweep is exact
- Perceptual curve: square-law gamma so brightness changes look even across the range
- Off mode: hold down past minimum to turn fully off; press up to wake at minimum
- Minimum on-time floor: DIM pulses never drop below the width the current loop needs to settle
- Fault handling:
FLTfalling edge is confirmed by re-read, then latched; output is held at minimum (not released, which would let the DIM pull-up drive full brightness). Shutdown and wake-upFLTpulses are masked - Status LED: blinks while adjusting, solid on a latched fault (clears on power cycle)
- Software debounce on top of the hardware latches, to reject switching-noise glitches
Extending the Firmware
The firmware is meant to be customized. Users can add their own features, for example:
- Macros / presets: e.g. a double-press to jump to a saved brightness
- Saved settings: store the last level in flash and restore it on power-up
- Custom safety limits: cap the maximum duty for a given emitter or optics setup
| Pin | Function |
|---|---|
| PB0 | TIM3_CH3 PWM → MAX20078 DIM |
| PA12 | MAX20078 FLT (active low) |
| PA13 | Up button |
| PA15 | Down button |
| PB7 | Status LED (open drain) |
Repository Layout
PCBfiles/
CombinedLEDdriverMAX278.kicad_pro KiCad project
CombinedLEDdriverMAX278.kicad_sch Top-level schematic (buck, MCU, LDO)
usbc_input.kicad_sch USB-C PD sink, fuse, TVS, EMI filter
switches.kicad_sch Buttons and SR-latch debounce
Firmware/ STM32G031 bare-metal C firmware
images/ Photos used in this READMEGetting Started
- Flash the STM32 over SWD using a TC2030 cable.
- Connect the Nichia 519A to J2, observing polarity.
- Plug in a USB-C PD charger capable of the required power.
- Hold the up/down buttons to ramp brightness; hold down past minimum to turn off.
Heat sink the emitter properly before running at full current.
Parts
75| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R13, R19, R20, R22, R23, R25, R26 |
| 7 | 2.2uF | Capacitor_SMD:C_0603_1608Metric | C1, C3, C4, C8, C13, C15, C17 |
| 6 | 22uF | Capacitor_SMD:C_0805_2012Metric | C5, C6, C7, C10, C11, C14 |
| 5 | 1k | Resistor_SMD:R_0603_1608Metric | R2, R4, R6, R8, R18 |
| 4 | 5.1k | Resistor_SMD:R_0603_1608Metric | R3, R5, R21, R24 |
| 4 | MountingHole | MountingHole:MountingHole_2.7mm_M2.5 | H1, H2, H3, H4 |
| 3 | 0.22uF | Capacitor_SMD:C_0603_1608Metric | C2, C9, C16 |
| 2 | 30k | Resistor_SMD:R_0603_1608Metric | R14, R15 |
| 2 | 4.7 | Resistor_SMD:R_0603_1608Metric | R9, R10 |
| 2 | B5819W SL | Diode_SMD:D_SOD-123 | D3, D5 |
| 2 | D2F-01F | Footprint_Lib:D2F-01F | SW1, SW2 |
| 2 | LED | LED_SMD:LED_0805_2012Metric | D2, D6 |
| 1 | 0.1 | Footprint_Lib:R_0805_2012Metric | R12 |
| 1 | 0.1 | Resistor_SMD:R_0805_2012Metric | R11 |
| 1 | 100pF | Capacitor_SMD:C_0603_1608Metric | C12 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R27 |
| 1 | 12k | Resistor_SMD:R_0603_1608Metric | R17 |
| 1 | 1A | Fuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolder | F1 |
| 1 | 22uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C18 |
| 1 | 4.7uH | Inductor_SMD:L_Vishay_IHLP-4040 | L1 |
| 1 | 49.9k | Resistor_SMD:R_0603_1608Metric | R7 |
| 1 | 68k | Resistor_SMD:R_0603_1608Metric | R16 |
| 1 | B340A-13-F | Diode_SMD:D_SMA | D4 |
| 1 | BNX025 | Filter:Filter_Murata_BNX025 | FL1 |
| 1 | BSG0811ND | Footprint_Lib:Infineon_PG-TISON-8-4 | Q2 |
| 1 | CYPD3177 | Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.75x2.75mm | U2 |
| 1 | GND | TestPoint:TestPoint_Pad_D1.0mm | TP2 |
| 1 | GND | TestPoint:TestPoint_Keystone_5015_Micro_Mini | TP4 |
| 1 | GPIO | TestPoint:TestPoint_Pad_D1.0mm | TP3 |
| 1 | LED | Connector_Molex:Molex_SPOX_5267-02A_1x02_P2.50mm_Vertical | J2 |
| 1 | MAX20078ATE+T | Footprint_Lib:MAX20078_QFN | U3 |
| 1 | MMSZ4702T1G | Diode_SMD:D_SOD-123 | D1 |
| 1 | SN74AC00 | Package_SO:TSSOP-14_4.4x5mm_P0.65mm | U6 |
| 1 | STM32G031J6Mx | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | Si4101DY | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | Q1 |
| 1 | TC2030 | Connector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_Vertical | J3 |
| 1 | TPS7E8233AQDBVRQ1 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | TVS2200DRV | Package_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm | U1 |
| 1 | USB_C_Receptacle_PowerOnly_6P | Connector_USB:USB_C_Receptacle_GCT_USB4125-xx-x_6P_TopMnt_Horizontal | J1 |
| 1 | VDC | TestPoint:TestPoint_Pad_D1.0mm | TP1 |
Similar boards
- 2 layers34.2 × 31.3 mm

- 2 layers70 × 50 mm

JBC controller
microbug/soldering-station
DIY soldering station compatible with JBC C245 handle/tips
42 parts6MIT - 4 layers92 × 92 mm

- 6 layers133 × 92 mm

Motherboard
byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.
264 parts4.3kMIT - 4 layers79.5 × 64.5 mm

RP2350 Duel
OpenStickCommunity/Hardware
A collection of hardware designs by members of the OpenStickCommunity
45 parts338 - 13 layers38.5 × 38.5 mm

Xbox Charge
Redherring32/100W-Charging-PCB
100W USB C PD Lithium Ion charging PCB based on the TPS25750D and BQ25713
90 parts43 - 2 layers59 × 20 mm

- 2 layers72 × 26.7 mm

Questions
How big is the CombinedLEDdriverMAX278 PCB?
It measures 52 × 52 mm and has 4 copper layers, 1.6 mm thick.
What parts does the CombinedLEDdriverMAX278 use?
75 parts, built around the MAX20078ATE+T, SN74AC00D, TPS7E8233AQDBVRQ1 and TVS2200DRV. 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 CombinedLEDdriverMAX278 KiCad files?
From the williamlin108/Olympus-BH-2-LED-Module-G031xMAX20078 repository on GitHub, at the commit this page was made from: the board is PCBfiles/CombinedLEDdriverMAX278.kicad_pcb and its schematic PCBfiles/CombinedLEDdriverMAX278.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the CombinedLEDdriverMAX278 design in my own project?
Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

