
NIMRS-21Pin Decoder
CDFER/NIMRS-21Pin-Decoder
An open source 21-Pin DCC Decoder for model trains

A compact, all-SMD power supply board that delivers a regulated 5 V output from a wide input voltage range, with reverse-polarity protection via an ideal diode and a power-status LED indicator.
5VBuckBoost is an open-source printed circuit board by Will946, from the Will946/5V-Buck-Boost-Converter repository on GitHub, published under the MIT licence. It is a 2-layer board of 22 × 25.1 mm with 26 parts on 14 nets, routed with 115 tracks and 50 vias.
It is built around the TPS63070RNM. Its parts include 9 capacitors, 6 resistors, 4 connectors, 2 ICs and 1 diode.
A compact, all-SMD power supply board that delivers a regulated 5 V output from a wide input voltage range, with reverse-polarity protection via an ideal diode and a power-status LED indicator.

| Parameter | Value |
|---|---|
| Input voltage (VIN) | 3 V – 16 V |
| Output voltage (VOUT) | 5 V regulated (adjustable range 2.5 V – 9 V) |
| Switching IC | TI TPS63070 buck-boost |
| Reverse-polarity protection | TI LM66200 ideal-diode controller |
| Status indicator | Red 0603 power LED (D1) |
| PCB | ~25 × 23 mm, 3× M2 mounting holes |
The TPS63070 is a high-efficiency, single-inductor buck-boost converter capable of operating seamlessly whether VIN is above, below, or equal to VOUT. The output is set to 5 V via the resistor-divider feedback network on the FB pin (R1 10 kΩ / R2 68.1 kΩ) and the second divider (R4 365 kΩ) on FB2.
The PG (power-good) open-drain output signals when the output is in regulation — this is routed to the connector header and used to drive the power LED circuit.
The LM66200 acts as an active ideal diode controller. It drives an external MOSFET (the device itself contains the FET) to present a very low forward-voltage drop (~10 mV typical) in the normal forward direction while blocking current completely if the supply is accidentally connected backwards. Compared to a Schottky diode this eliminates the typical 300–500 mV drop and the associated heat, allowing the full input range to reach the converter without power loss.
A red 0603 LED is driven from the TPS63070 PG (power-good) signal through a current-limiting resistor R6 (1 kΩ). The LED lights up when the output is in regulation, giving a quick visual health-check. R3 (50 kΩ) provides the pull-up for the open-drain PG line.
| Reference | Pitch | Function |
|---|---|---|
| J1 | 2 mm, 1×2 | Output — 5 V + GND |
| J2 | 2 mm, 1×2 | Input — VIN + GND |
| J3 | 2 mm, 1×3 | Debug/control header (5Vout, Vin2, St) |
| J4 | 2 mm, 1×3 | Control header (Vin, PG, EN, PS) |
| Ref | Value / Part | Package |
|---|---|---|
| U1 | TPS63070RNMR | 15-pin WQFN (RNM) |
| U2 | LM66200DRLR | SOT-5×3 (DRL) |
| L1 | 1.5 µH — Coilcraft XFL4020 | 4×4 mm SMD |
| C1 | 0.1 µF, 25 V | 0603 |
| C2, C3, C9 | 10 µF, 25 V | 0805 |
| C4 | 0.1 µF, 25 V | 0603 |
| C5 | 10 µF, 25 V | 0805 |
| C6, C7, C8 | 22 µF, 16 V | 0805 |
| R1, R7 | 10 kΩ, 1%, 1/10 W | 0603 |
| R2 | 68.1 kΩ, 1%, 1/10 W | 0603 |
| R4 | 365 kΩ, 1%, 1/10 W | 0603 |
| R6 | 1 kΩ, 1%, 1/10 W | 0603 |
| R3 | 50 kΩ | 0603 |
| D1 | Red LED | 0603 |
| H5–H8 | M2 mounting holes | — |
| File | Description |
|---|---|
5VBuckBoost.kicad_sch | KiCad 9 Schematic |
5VBuckBoost.kicad_pcb | KiCad 9 PCB Layout |
5VBuckBoost.kicad_pro | KiCad 9 Project File |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C3, C5, C9 |
| 3 | 22uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C6, C7, C8 |
| 3 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H5, H7, H8 |
| 2 | 0.1uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C4 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R7 |
| 2 | Conn_01x02_Pin | Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_Vertical | J1, J2 |
| 2 | Conn_01x03_Pin | Connector_PinHeader_2.00mm:PinHeader_1x03_P2.00mm_Vertical | J3, J4 |
| 1 | 1.5uH | Inductor_SMD:L_Coilcraft_XxL4020 | L1 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6 |
| 1 | 365k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4 |
| 1 | 50k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R3 |
| 1 | 68.1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R2 |
| 1 | LM66200DRLR | LM66200DRLR:SOT-5X3_DRL_TEX-L | U2 |
| 1 | RED | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | TPS63070 | TPS63070RNMR:RNM0015A | U1 |

CDFER/NIMRS-21Pin-Decoder
An open source 21-Pin DCC Decoder for model trains




H3wastooshort/BikeUSBv2
Charge your Phone off of your Bike while adapting charging power to available power / riding speed.


takuhoTech/LagopusSystem-2024
Avionics for Human-Powered Aircraft (Japan International Birdman Rally 2024)

TobleMiner/catear-pcb
This repo contains the PCB for the Nekomimi project of @BenBE . It will be used to illuminate 3D printed catears.
It measures 22 × 25.1 mm and has 2 copper layers, 1.6 mm thick.
26 parts, built around the TPS63070RNM. 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.
From the Will946/5V-Buck-Boost-Converter repository on GitHub, at the commit this page was made from: the board is 5VBuckBoost_kicad/5VBuckBoost.kicad_pcb and its schematic 5VBuckBoost_kicad/5VBuckBoost.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).