Skip to the content
2 layers110 × 100 mmSTM32-LFR, the printed circuit board in 3D

I designed a LFR from scratch including the PCBs for main board and a custom sensor array.

Size
110 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
51
Pads
116
Tracks, vias
319, 38
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
20 Jun 2026
Updated
20 Jun 2026

Overview

STM32-LFR is an open-source printed circuit board by bsce26023, from the bsce26023/STM32-LFR repository on GitHub. It is a 2-layer board of 110 × 100 mm with 18 parts on 51 nets, routed with 319 tracks and 38 vias.

Its parts include 4 connectors and 1 switch. It belongs with the STM32 boards of this library.

README

README.md

Autonomous Line Following Robot

I designed a LFR from scratch including the PCBs for main board and a custom sensor array.

Top_viewCorner_View_1Corner_View_2

Components

I've decided the components based on affordability, speed, availability and ease of use. Starting with the micro controller I've selected STM 32 BlackPill and for motors I've selected 3000rpm 6v N20 motors with encoders for fast speed to drive these motors I've chosen TB6612FNG motor driver because it has low voltage drop and also it is way lighter than L298N. I've decided to use a 2S Li-Po battery which is about 7.4v which can power the motors with ease and to power STM32 I'd use a step down buck converter to convert these 7.4v into 5v so we don't damage the STM32 to charge the battery I'd use a 2S charger and for the sensors I've designed a custom sensor array.

PCB and Connections

To talk about the connections, I'd Start with the Power connections. The battery provides 7.4v which goes to VMOT pin of motor driver and buck converter. the buck converter then outputs 5v which goes to VSYS on Pico. Now we have 3 voltages. i.e. 7.4v, 5v and 3.3v. now the 3.3v goes to VCC and STBY pin of TB6612FNG and VCC pin on Sensor Array. Now lets talk about the Data and Logic Signals. The GPIO pins from 0 to 18 will be connected to sensor array and GPIO pins 19,20, 21, 22, 26, 27 will be connected to PWMA, AIN1, AIN2, PWMB, BIN1 and BIN2 respectively. At the end the AO1, AO2 and BO1, BO2 will be connected to left and right motors respectively. [Schematics]

3D AssemblyTracks
3DTracks

Custom Built Sensor Array

I designed the schematics for the sensor array, it is the working principle is inspired from the QTR-16RC sensor array.

SchematicsTracks
schemeticsTracks

[3D]

Bill of Materials (BOM)

NamePurposeQuantityTotal Cost (USD)LinkDistributor
PCBPCB217https://cart.jlcpcb.com/shopcart/cart/JLCPCB
Mounting BracketsMounting motors13https://a.aliexpress.com/_c41oltrBAliExpress
N20 WheelsWheels for Motors410https://a.aliexpress.com/_c3mDdjNxAli Express
Caster WheelsCaster wheels24https://a.aliexpress.com/_c2yFCmMdAliExpress
Slide SwitchPower Switch12https://a.aliexpress.com/_c3g6KmzXAliExpress
TB6612FNGMotor Driver14https://a.aliexpress.com/_c3bzgEgzAliExpress
N20 MotorsMotors with Encoders425https://a.aliexpress.com/_c39RykznAliExpress
CapacitorCapacitance13https://a.aliexpress.com/_c3Ig4r1XAliexpress
ResistorsResistance25https://a.aliexpress.com/_c3G1MsVLAliexpress
Limit switchBump sensor12.5https://a.aliexpress.com/_c3uz2IsvAliexpress
Ultrasonic sensorMeasures distance16https://a.aliexpress.com/_c35Zat1RAliexpress
TCRT5000Sensor17https://a.aliexpress.com/_c3RbgmiNAliexpress
Header pinsSoldering on pcb24https://a.aliexpress.com/_c4B0APx7Aliexpress
Mp1584Buck converter14.5https://a.aliexpress.com/_c4qnSguhAliexpress
Charging moduleFor charging battery12https://a.aliexpress.com/_c3Dtj3BLAliexpress
STM32Microcontroller16https://a.aliexpress.com/_c3GJD5FFAliexpress
Customs--60-AliExpress
Shipping--19-JLCPCB

Parts

18
QtyValueFootprintReferences
4Conn_01x02Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalBuck_IN-1, Buck_IN+1, Buck_OUT-1, Buck_OUT+1
4Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalMotor1, Motor2, Motor3, Motor4
2Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalTB6612FNG_L1, TB6612FNG_R1
2Conn_01x20Connector_PinSocket_2.54mm:PinSocket_1x20_P2.54mm_VerticalJ3, J4
1Charger_OutConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ2
1Conn_01x01Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalVIN1
1Conn_01x01Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalGND1
1Conn_01x02Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalBattery1
1Conn_01x16Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalJ1
1SW_SPDTButton_Switch_THT:SW_Slide_SP3T_Straight_CK_OS103012MU1QP1SW1

More from bsce26023/STM32-LFR

1
  • 2 layers125 × 77.6 mmSensor Array, the printed circuit board in 3D

    Sensor Array

    bsce26023/STM32-LFR

    I designed a LFR from scratch including the PCBs for main board and a custom sensor array.

    45 parts

Similar boards

  • 2 layers27.9 × 16.5 mmPowerSSO-24 breakout, the printed circuit board in 3D

    PowerSSO-24 breakout

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    18 parts1.2k
  • 2 layers42.7 × 13.7 mmStm32-mini12864, the printed circuit board in 3D

    Stm32-mini12864

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    18 parts1.1kGPL-3.0
  • 2 layers41.2 × 46.6 mmThumb cluster left, the printed circuit board in 3D

    Thumb cluster left

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    18 parts993
  • 2 layers44 × 51.3 mm4272MAVcoder R4, the printed circuit board in 3D

    4272MAVcoder R4

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    18 parts915
  • 2 layers28.3 × 14.3 mmTap Photosensor PCB, the printed circuit board in 3D

    Tap Photosensor PCB

    VoronDesign/Voron-Tap

    Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:

    18 parts716GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 stepper driver, the printed circuit board in 3D

    L0 stepper driver

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    18 parts546MIT
  • 2 layersMooltipass, the printed circuit board in 3D

    Mooltipass

    limpkin/mooltipass

    Github repository dedicated to the mooltipass project

    18 parts531
  • 2 layers42.5 × 28.8 mmC5VRX JACK DIY V2, the printed circuit board in 3D

    C5VRX JACK DIY V2

    Twotoz/C5VRX

    Ultra-minimal, zero-CPU 5.8 GHz analog FPV video receiver using ESP32-C5 Wi-Fi 6 PHY MODEM_DIAG, BitScrambler WBFM demodulation & resistor DAC CVBS

    18 parts515GPL-3.0

Questions

How big is the STM32-LFR PCB?

It measures 110 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the STM32-LFR use?

18 parts. 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 STM32-LFR KiCad files?

From the bsce26023/STM32-LFR repository on GitHub, at the commit this page was made from: the board is Main Board/PCB.kicad_pcb and its schematic Custom Sensor Array/Sensor Array.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32-LFR design in my own project?

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