Skip to the content
PCBKitNew board
2 layers114.3 × 106.7 mmSTM32F303-RIR4, the printed circuit board in 3D

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

6

README

README.md

STM32F303-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:

  1. LowRes12Tracks: low resolution mode, two sensors per track (1 or 2 tracks, one shield, unidirectional) Low resolution mode, two sensors per track (1 or
2 tracks, one shield,
unidirectional)
  2. StandardRes1Track: standard resolution mode, four sensors per track (1 track, one shield, bi-directional) Standard resolution mode, four sensors
per track (1 track, one shield,
bi-directional)
  3. StandardRes2Tracks: standard resolution mode, four sensors per track (2 tracks, two shields, bi-directional) 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
QtyValueFootprintReferences
45K to 20KResistors_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR103, R104, R105, R106
4Mounting_HoleMounting_Holes:MountingHole_3.2mm_M3MK101, MK102, MK103, MK104
2330Resistors_SMD:R_0603R107, R108
2390Resistors_SMD:R_0603R101, R102
2G3VM-61VY4Housings_SOIC:SO-4_4.4x4.3mm_Pitch2.54mmU106, U107
2LCCConnectors:RJ45_8J101, J102
2TC4428Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mmU104, U105
1DWSLogoBCU:DWSLogoBCU
1- 12V +Terminal_Blocks:TerminalBlock_Pheonix_PT-3.5mm_2polJ105
1.1 ufCapacitors_SMD:C_0603C101
110ufCapacitor_SMD:C_1206_3216MetricC201
1220uf 20% 10VCapacitor_SMD:CP_Elec_6.3x7.7C203
122uf 6.3VCapacitor_SMD:C_1206_3216MetricC202
147uhinductors:SDR1307A470KL201
1AP1509-50Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU201
1B1 C B2Terminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_3polJ110
1CN10stm32Morpho:ST_MorfoHeaderJ1
1CN7stm32Morpho:ST_MorfoHeaderJ0
1LCCLCC_LOGO:LCC_LOGO_9x9G***
1LM358Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mmU102
1MA MB NA NBTerminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_4polJ104
1RXLEDs:LED_0603D101
1S4 S3 S2 S1 SCTerminal_Blocks:TerminalBlock_Pheonix_MPT-2.54mm_5polJ103
1SK23TRDiode_SMD:D_SMBD201
1SN65HVD1050Housings_SOIC:SOIC-8_3.9x4.9mm_Pitch1.27mmU101
1Servo 1Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ109
1Servo 2Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ108
1Servo 3Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ107
1Servo 4Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ106
1TBD62064AFGMyHSOP:HSOP16-P-300-1.00U103
1TXLEDs:LED_0603D102

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

  • 4 layers77 × 83 mmGeoMCU, the printed circuit board in 3D

    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 mmLPC176x MultiFunction, the printed circuit board in 3D

    LPC176x MultiFunction

    RobertPHeller/RPi-RRCircuits

    A collection of circuit designs for various MCUs, not just Raspberry Pis relating to Model Railroading

    236 parts24
  • 2 layers161.1 × 85 mmTurnoutBoss, the printed circuit board in 3D

    TurnoutBoss

    JimKueneman/TurnoutBoss

    This repository contains all the design files, manuals, firmware, production information for the LCC TurnoutBoss Node

    198 parts1
  • 2 layers82 × 42 mmCct controller, the printed circuit board in 3D

    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 mmParkbrake, the printed circuit board in 3D

    Parkbrake

    mumme74/CarTransporter

    Electronics systems for a car transporter

    356 parts7