

STM32F303-RIR4
STM32F303 Nucleo Baseboard for Aztrax RIR4 shield
- Size
- 114.3 × 106.7 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 47
- Nets
- 94
- Pads
- 224
- Tracks, vias
- 255, 52
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 3 Apr 2023
- Updated
- 9 Jul 2026
Overview
STM32F303-RIR4 is an open-source printed circuit board by RobertPHeller, from the RobertPHeller/STM32F303-RIR4 repository on GitHub, published under the BSD-2-Clause licence. It is a 2-layer board of 114.3 × 106.7 mm with 47 parts on 94 nets, routed with 255 tracks and 52 vias.
It is built around the SN65HVD1050D, TC4428COA and AP1509-50SG, with the LM358, G3VM-61VY4 and TBD62064AFG,EL among its other parts. Its parts include 12 connectors, 8 resistors, 8 ICs, 4 capacitors and 3 diodes. It belongs with the computers and single-board computers boards and the STM32 boards of this library.
Main components
6SN65HVD1050D
SOIC-8-40℃~+125℃ 10mA 1Mbps 4.5V~5.5V 75mA CAN Transceiver SOIC-8 CAN Transceivers ROHSTexas InstrumentsCAN TransceiversTC4428COA
SOIC-8-150mil0℃~+70℃ 1.5A 1.5A 19ns 19ns 2 2.4V 4.5V~18V 400uA 800mV MOSFET SOIC-8-150mil Gate Drivers ROHSMicrochip TechnologyGate DriversAP1509-50SG
SOP-8-40℃~+85℃ 1 150kHz 150uA 2A 4.5V~22V 5V Buck Buck Built-in Fixed No SOP-8 DC-DC Converters ROHSDiodes IncorporatedDC-DC ConvertersLM358
SOP-8-18V~18V 0℃~+70℃ 1.2MHz 10nA 2 24mA 3V~36V 500uA 50nA 5mV 80dB Built-in compensation SOP-8 Operational Amplifier ROHSMSKSEMIOperational AmplifierG3VM-61VY4
SOP-4-40℃~+85℃ 1.27V 150mΩ 2mA 3.75kV 3ms 400us 60V 700mA SOP-4 Solid State Relays (MOS Output) ROHSOmronSolid State Relays (MOS Output)TBD62064AFG,EL
HSOP-16-EP-6.4mm-40℃~+85℃ 0.2mA 1uA 1uA 2V 30V Four channels HSOP-16-EP-6.4mm Darlington Transistor Arrays ROHSToshibaPower Distribution Switches
README
README.mdSTM32F303-RIR4
STM32F303 Nucleo Baseboard for Aztrax RIR4 shield
This baseboard has Morpho sockets for a STM32F303 board (NUCLEO-F303K8), with one or two Azatrax RIR4 shields stacked on top. There is firmware that implements grade crossing logic:
- LowRes12Tracks: low resolution mode, two sensors per track (1 or 2 tracks,
one shield, unidirectional)

- StandardRes1Track: standard resolution mode, four sensors per track (1
track, one shield, bi-directional)

- StandardRes2Tracks: standard resolution mode, four sensors per track (2
tracks, two shields, bi-directional)

The grade crossing logic generates events for activate and deactivate. These events need to be connected to outputs to do things like lower and raise gates, start/stop flashing lights, etc.
It is also possible to build the firmware to just expose the RIR4 directly, without grade crossing logic.
The baseboard adds additional I/O to help implement the grade crossing itself:
- 4 Blinking Signals: for the lights
- 2 Stall motors for gates or other things.
- 4 Servos for gates or other things.
- 2 Solid State Relays for other accessories (sound units, etc.)
Parts
47| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 5K to 20K | Resistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R103, R104, R105, R106 |
| 4 | Mounting_Hole | Mounting_Holes:MountingHole_3.2mm_M3 | MK101, MK102, MK103, MK104 |
| 2 | 330 | Resistors_SMD:R_0603 | R107, R108 |
| 2 | 390 | Resistors_SMD:R_0603 | R101, R102 |
| 2 | G3VM-61VY4 | Housings_SOIC:SO-4_4.4x4.3mm_Pitch2.54mm | U106, U107 |
| 2 | LCC | Connectors:RJ45_8 | J101, J102 |
| 2 | TC4428 | Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mm | U104, U105 |
| 1 | DWSLogoBCU:DWSLogoBCU | ||
| 1 | - 12V + | Terminal_Blocks:TerminalBlock_Pheonix_PT-3.5mm_2pol | J105 |
| 1 | .1 uf | Capacitors_SMD:C_0603 | C101 |
| 1 | 10uf | Capacitor_SMD:C_1206_3216Metric | C201 |
| 1 | 220uf 20% 10V | Capacitor_SMD:CP_Elec_6.3x7.7 | C203 |
| 1 | 22uf 6.3V | Capacitor_SMD:C_1206_3216Metric | C202 |
| 1 | 47uh | inductors:SDR1307A470K | L201 |
| 1 | AP1509-50 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U201 |
| 1 | B1 C B2 | Terminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_3pol | J110 |
| 1 | CN10 | stm32Morpho:ST_MorfoHeader | J1 |
| 1 | CN7 | stm32Morpho:ST_MorfoHeader | J0 |
| 1 | LCC | LCC_LOGO:LCC_LOGO_9x9 | G*** |
| 1 | LM358 | Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mm | U102 |
| 1 | MA MB NA NB | Terminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_4pol | J104 |
| 1 | RX | LEDs:LED_0603 | D101 |
| 1 | S4 S3 S2 S1 SC | Terminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_5pol | J103 |
| 1 | SK23TR | Diode_SMD:D_SMB | D201 |
| 1 | SN65HVD1050 | Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mm | U101 |
| 1 | Servo 1 | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J109 |
| 1 | Servo 2 | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J108 |
| 1 | Servo 3 | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J107 |
| 1 | Servo 4 | Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mm | J106 |
| 1 | TBD62064AFG | MyHSOP:HSOP16-P-300-1.00 | U103 |
| 1 | TX | LEDs:LED_0603 | D102 |
The 42 most common of 47 parts.
Questions
How big is the STM32F303-RIR4 PCB?
It measures 114.3 × 106.7 mm and has 2 copper layers, 1.6 mm thick.
What parts does the STM32F303-RIR4 use?
47 parts, built around the SN65HVD1050D, TC4428COA, AP1509-50SG and LM358. 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 STM32F303-RIR4 KiCad files?
From the RobertPHeller/STM32F303-RIR4 repository on GitHub, at the commit this page was made from: the board is STM32F303-RIR4.kicad_pcb and its schematic 5V_Power_Supply.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the STM32F303-RIR4 design in my own project?
Its repository publishes it under the BSD-2-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
Similar boards
- 2 layers68.6 × 53.3 mm

- 4 layers77 × 83 mm

GeoMCU
NohPei/GeoMCU
Integrated Geophone Boards with programmable gain and an onboard MCU. Can be used over WiFi or wired with an external ADC.
80 parts2CERN-OHL-P-2.0 - 2 layers156.2 × 168.9 mm

LPC176x MultiFunction
RobertPHeller/RPi-RRCircuits
A collection of circuit designs for various MCUs, not just Raspberry Pis relating to Model Railroading
236 parts24 - 4 layers100 × 100 mm

- 2 layers161.1 × 85 mm

TurnoutBoss
JimKueneman/TurnoutBoss
This repository contains all the design files, manuals, firmware, production information for the LCC TurnoutBoss Node
198 parts1 - 2 layers82 × 42 mm

Cct controller
controlol/led-driver-constant-current-esphome
KiCad design for a constant current driver with Mean Well dimmable LED driver and ESPHome firmware
42 parts - 2 layers101.6 × 114.3 mm

- 6 layers40 × 40 mm

Integrated FOC Stepper Driver
chpaxson/Echo-Telepresence
UC Berkeley ME 135/235 Spring 2025 Term Project
77 parts2