Skip to the content
2 layers94 × 62 mmB2500 cluster pwm dimmer, the printed circuit board in 3D

B2500 cluster pwm dimmer

TheTinkeringSquid/RheostatPWM

PCB to convert an analogue signal from a rheostat into a PWM signal for LEDs

Size
94 × 62 mm
Copper layers
2
Thickness
1.6 mm
Parts
38
Nets
20
Pads
88
Tracks, vias
305, 10
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
14 Jun 2026
Updated
10 Oct 2026

Overview

B2500 cluster pwm dimmer is an open-source printed circuit board by TheTinkeringSquid, from the TheTinkeringSquid/RheostatPWM repository on GitHub. It is a 2-layer board of 94 × 62 mm with 38 parts on 20 nets, routed with 305 tracks and 10 vias.

It is built around the BAT54S, FQP27P06 and P6KE24CA. Its parts include 11 resistors, 6 diodes, 5 capacitors, 2 ICs and 2 transistors. It belongs with the RP2040 boards of this library.

Main components

3

README

README.md

Dodge B2500 Instrument Cluster LED PWM Dimmer

Small RP2040-based PWM dimmer board for a 1996 Dodge B2500 instrument cluster LED conversion. It reads the factory headlight rheostat as an analog input and drives the cluster illumination feed with a protected high-side 12 V PWM output.

Cluster illumination only. This board is not for exterior lighting, brake lights, turn signals, airbags, engine controls, or any safety-critical circuit.

PCB top view


How it works

text
factory full 12 V illumination/headlamp-switched feed  -> J1 VIN_RAW
factory dimmer/rheostat analog output                  -> J1 DIM_IN  (sense only)
board high-side 12 V PWM output                        -> J1 PWM_OUT -> cluster LED +
cluster/chassis ground                                 -> J1 GND

The factory rheostat no longer powers the cluster lamps. It is read as a low-current analog control signal through a high-impedance divider into the XIAO RP2040 ADC. Firmware maps that voltage through a gamma curve to a high-side PWM output (P-channel MOSFET Q1 driven by N-MOSFET Q2), so the lamp grounds stay factory.

Connector (J1)

PinNetDescription
1VIN_RAWFused full 12 V illumination/headlight-switched feed
2GNDChassis/cluster ground
3DIM_INFactory rheostat output, sense only
4PWM_OUTPWM +12 V output to cluster LED illumination feed
5IGN_SENSEOptional lights-on signal (future firmware; DNP parts)

Install concept

  1. Identify the factory cluster illumination/dimmer feed with a multimeter and wiring diagram.
  2. Cut or depin the cluster illumination feed so the rheostat no longer powers the LED bulbs directly.
  3. Connect the vehicle/rheostat side of that wire to DIM_IN.
  4. Connect the cluster/lamp side of that wire to PWM_OUT.
  5. Power the board from a fused full-bright illumination feed that is hot when park/headlights are on — not from the dimmed rheostat output.
  6. Ground the board to the cluster/chassis ground.

Do not power the microcontroller from DIM_IN; it may brown out when the rheostat is turned down.

If the factory dimmer turns out to be low-side, already-PWM, or multiplexed rather than a simple variable positive voltage, stop and revise the input circuit instead of forcing this design.


Repository layout

text
.
├── README.md
├── firmware/                     PlatformIO project (Seeed XIAO RP2040)
│   ├── platformio.ini
│   └── src/main.cpp
└── hardware/
    ├── kicad/
    │   ├── b2500_cluster_pwm_dimmer.kicad_pro / .kicad_sch / .kicad_pcb
    │   ├── b2500_cluster_pwm_dimmer_schematic.pdf
    │   ├── pcb_top.png
    │   └── symbols_and_footprints/b2500.pretty/   (XIAO + Pololu module footprints)
    ├── scripts/                  generators (re-create the design deterministically)
    │   ├── netlist.py            single source of truth for the netlist
    │   ├── gen_sch.py            -> kicad_sch
    │   ├── gen_pcb.py            -> kicad_pcb
    │   ├── gen_bom.py            -> BOM CSV
    │   └── export_fab.py         -> gerbers + drill + BOM (run after routing)
    ├── gerbers/                  fabrication output (generated after routing)
    ├── fabrication_notes.md
    └── b2500_cluster_pwm_dimmer_bom.csv

The KiCad schematic, board, and BOM are generated by the scripts in hardware/scripts/. They share netlist.py so the schematic and board can never drift apart. Regenerate with:

powershell
python hardware/scripts/gen_sch.py                       # schematic
& "C:/Program Files/KiCad/10.0/bin/python.exe" hardware/scripts/gen_pcb.py   # board (needs KiCad's Python)
python hardware/scripts/gen_bom.py                       # BOM CSV

Firmware

Built with PlatformIO for the Seeed Studio XIAO RP2040 (Arduino / Earle Philhower RP2040 core).

bash
cd firmware
pio run            # build
pio run -t upload  # flash (board in UF2 bootloader, or via USB)
pio device monitor # 115200 baud serial debug

Key calibration constants live at the top of firmware/src/main.cpp (ADC_OFF_THRESHOLD, ADC_MIN_INPUT, ADC_MAX_INPUT, DUTY_MIN, GAMMA, PWM_FREQ_HZ, plus REVERSE_DIMMER_DIRECTION). Tune them on the bench against the real dimmer using the serial output. PWM defaults to 976 Hz (in the 500 Hz–2 kHz target band).


PCB

The board is fully routed and DRC-clean (0 violations, 0 unconnected) — 2 layers, 94 × 62 mm, ground pour on both. hardware/scripts/gen_pcb.py places every part, pours ground, and routes all nets with a built-in collision-aware router (Manhattan + maze fallback): high-current nets (VIN_RAW, PWM_OUT, VIN_PROT) at 1.5 mm, signals at 0.4 mm. The gerbers and drill files in hardware/gerbers/ are ready to send to a fabricator.

You don't need to touch KiCad to get the board made. If you want to inspect or tweak it:

  1. Open hardware/kicad/b2500_cluster_pwm_dimmer.kicad_pro in KiCad 10.

  2. Make changes, run DRC, then regenerate fabrication output:

    powershell
    python hardware/scripts/export_fab.py

    This runs DRC, writes gerbers + Excellon drill to hardware/gerbers/, and regenerates the BOM. (Re-running gen_pcb.py regenerates the whole board from scratch and will discard manual KiCad edits.)

Ordering the board

Zip the contents of hardware/gerbers/ and upload to any PCB fab (JLCPCB, PCBWay, OSH Park, Aisler, etc.): 2-layer, 1.6 mm, 1 oz copper (2 oz is a nice upgrade for the power path), HASL or ENIG. See hardware/fabrication_notes.md for the full spec, assembly notes, and the bench/in-vehicle test procedures.


Deviations from the original brief

  • Board size is ~94 × 62 mm, not the 50 × 35 mm target. The through-hole part set (5-pos 5.08 mm terminal block, TO-220, two modules, radial cap, seven test points, button) does not fit smaller while staying hand-solderable. A compact SMD-MOSFET / smaller-connector variant is a sensible future revision.
  • Q1 gate pull-up R6 is 10 k (brief said 47 k) and a DNP R10/C5 RC snubber footprint sits across PWM_OUT — both for a cleaner, better-defined high-side switching edge with less ringing/EMI. Fit the snubber only if the bench scope shows ringing.
  • The buck regulator (U2) mounts off-board, wired to a labeled 3-pin header (VIN/GND/VOUT). A footprint audit against the Pololu module showed its on-board land is easy to get wrong (6 pins incl. an offset PG, two GNDs); a wired connection is order-proof and far safer to assemble by hand.
  • Two M3 mounting holes (per the BOM, M1–M2), placed diagonally — the terminal block fills the left edge, so a top-left hole was not possible.
  • The board is routed by a purpose-built script router, not by hand in KiCad. It is DRC-clean and electrically complete, but the trace paths are Manhattan/maze-style rather than artistically dressed; feel free to prettify in the GUI if you re-spin.
  • The XIAO USB-C port is not on a board edge; for in-place reflashing, prefer the UF2 bootloader or relocate U1 to an edge in a future revision.

Safety

  • Always fuse VIN_RAW (inline blade fuse in the harness — F1 is not on the board). Size it to the measured LED cluster current.
  • Do not route the cluster output back through the factory rheostat.
  • Do not connect USB while the board is vehicle-powered unless JP1 is open / the D3 isolation diode is fitted, to avoid 5 V backfeed.
  • This is not OEM-grade load-dump protection. The TVS + wide-input regulator reduce risk but do not eliminate it.
  • Carry a bypass jumper during early testing so the cluster lamps can be restored if the board fails.

Parts

38
QtyValueFootprintReferences
2100RR_0805_2012Metric_Pad1.20x1.40mm_HandSolderR7, R8
1100R (DNP)R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10
1100kR_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9
1100k (DNP)R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
1100k 1%R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3
1100nFC_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
1100nF 50VC_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2
110kR_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6
110nF 100V (DNP)C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
110uFC_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4
11N5242B 12VD_DO-35_SOD27_P7.62mm_HorizontalD5
11N5819D_DO-41_SOD81_P10.16mm_HorizontalD3
11N5822D_DO-201AD_P15.24mm_HorizontalD1
11kR_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
122k (DNP)R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
122k 1%R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4
12N7000TO-92_Inline_WideQ2
13.3kR_0805_2012Metric_Pad1.20x1.40mm_HandSolderR11
147uF 50VCP_Radial_D6.3mm_P2.50mmC1
15V_LINKPinHeader_1x02_P2.54mm_VerticalJP1
1BAT54SSOT-23D4
1CALSW_PUSH_6mmSW1
1FQP27P06TO-220-3_VerticalQ1
1Green LED (PWR)LED_D3.0mmD6
1P6KE24CAD_DO-15_P10.16mm_HorizontalD2
1Phoenix MKDS-1,5-5-5.08TerminalBlock_Phoenix_MKDS-1,5-5-5.08_1x05_P5.08mm_HorizontalJ1
1Pololu D36V28F5 (off-board, wired)PinHeader_1x03_P2.54mm_VerticalU2
1TP_3V3TestPoint_THTPad_D1.5mm_Drill0.7mmTP3
1TP_5VTestPoint_THTPad_D1.5mm_Drill0.7mmTP2
1TP_DIM_ADCTestPoint_THTPad_D1.5mm_Drill0.7mmTP4
1TP_GNDTestPoint_THTPad_D1.5mm_Drill0.7mmTP7
1TP_PWM_GATETestPoint_THTPad_D1.5mm_Drill0.7mmTP5
1TP_PWM_OUTTestPoint_THTPad_D1.5mm_Drill0.7mmTP6
1TP_VINTestPoint_THTPad_D1.5mm_Drill0.7mmTP1
1XIAO RP2040XIAO_RP2040_THTU1

The 36 most common of 38 parts.

Similar boards

  • 2 layers112 × 64 mmWorkcross ReverseCam, the printed circuit board in 3D

    Workcross ReverseCam

    db8fs/Workcross-ReverseCam

    ESP32-based pcb for providing ESD-safe power supply for a wireless Reverse Camera for an AODES Workcross UTV.

    71 partsGPL-3.0
  • 2 layers120 × 120 mmCoruja, the printed circuit board in 3D

    Coruja

    paulovitorbal/coruja_gps

    Detector de radares GPS embarcado em Raspberry Pi Pico 2 W — requisitos, esquemático, formato de dados e revisão técnica. Projeto pessoal de estudo.

    25 parts
  • 2 layers116.2 × 80.9 mmL0destar, the printed circuit board in 3D

    L0destar

    m4rkw/l0destar

    l0destar open-source tracker project

    76 parts43
  • 2 layers205.4 × 99.9 mmImp, the printed circuit board in 3D

    Imp

    nmatic00/max1491-4wire-ohmmeter

    My first KiCAD project. 4 Wire Kelvin Ohmmeter based on MAX1491 ADC.

    91 partsMIT
  • 2 layers30 × 64 mmRadio Bottom, the printed circuit board in 3D

    Radio Bottom

    mattronix/battery-board

    KiCad hardware project for the battery-to-radio interface of an AN/PRC‑152(A) reproduction radio. It contains two small PCBs that mate through spring‑loaded pogo‑pin contacts, plus a shared custom KiCad footprint…

    12 parts8CERN-OHL-W-2.0
  • 2 layers70 × 50 mmLed light project, the printed circuit board in 3D

    Led light project

    mattwach/portable_led_lamp

    Contains firmware, schematics and 3D models for a LED lamp that can accept a wide range of voltages.

    20 parts7GPL-3.0
  • 2 layers65 × 56 mmXDoor, the printed circuit board in 3D

    XDoor

    xHain-hackspace/xDoorPiHat

    Schematics and Boardfiles for PiHat that opens and closes the xDoor

    36 parts3

Questions

How big is the B2500 cluster pwm dimmer PCB?

It measures 94 × 62 mm and has 2 copper layers, 1.6 mm thick.

What parts does the B2500 cluster pwm dimmer use?

38 parts, built around the BAT54S, FQP27P06 and P6KE24CA. 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 B2500 cluster pwm dimmer KiCad files?

From the TheTinkeringSquid/RheostatPWM repository on GitHub, at the commit this page was made from: the board is hardware/kicad/b2500_cluster_pwm_dimmer.kicad_pcb and its schematic hardware/kicad/b2500_cluster_pwm_dimmer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the B2500 cluster pwm dimmer design in my own project?

Its repository states no licence, so its author keeps all rights: ask TheTinkeringSquid before reusing the design.