Skip to the content
PCBKitNew board
2 layers125 × 77.6 mmSensor Array, the printed circuit board in 3D

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

Size
125 × 77.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
45
Nets
36
Pads
157
Tracks, vias
336, 34
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
20 Jun 2026
Updated
20 Jun 2026

Overview

Sensor Array is an open-source printed circuit board by bsce26023, from the bsce26023/STM32-LFR repository on GitHub. It is a 2-layer board of 125 × 77.6 mm with 45 parts on 36 nets, routed with 336 tracks and 34 vias.

It is built around the TCRT5000. Its parts include 20 resistors, 10 capacitors, 10 ICs, 2 connectors and 1 switch. It belongs with the sensors and measurement boards of this library.

Main components

1

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

45
QtyValueFootprintReferences
20RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R4, R5, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20 +4
102.2nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3, C4, C5, C6, C7, C8, C9, C10
10TCRT5000tcrt5000:tcrt5000U1, U2, U3, U4, U5, U6, U7, U8, U9, U10
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1Conn_01x16Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalJ3
1SW_SPDTButton_Switch_THT:SW_Slide_SPDT_Straight_CK_OS102011MS2QSW1

The 43 most common of 45 parts.

Questions

How big is the Sensor Array PCB?

It measures 125 × 77.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sensor Array use?

45 parts, built around the TCRT5000. 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 Sensor Array KiCad files?

From the bsce26023/STM32-LFR repository on GitHub, at the commit this page was made from: the board is Custom Sensor Array/Sensor Array.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 Sensor Array design in my own project?

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

More from bsce26023/STM32-LFR

1
  • 2 layers110 × 100 mmSTM32-LFR, the printed circuit board in 3D

    STM32-LFR

    bsce26023/STM32-LFR

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

    18 parts

Similar boards

  • 2 layers200 × 78.8 mmOpenridingcontroller rev2, the printed circuit board in 3D

    Openridingcontroller rev2

    Squalius-cephalus/OpenRidingController

    D.I.Y horse riding controller for the PC.

    30 parts13
  • 2 layers66.4 × 52.5 mmWatermeter v0.4, the printed circuit board in 3D

    Watermeter v0.4

    rbisschops/mySensors

    mySensors

    39 parts6
  • 2 layers135.8 × 56.1 mmPower board, the printed circuit board in 3D

    Power board

    xtarke/automated_buggy

    This shield connects microcontroller (MSP-EXP430FR2355) pins to the car's power board. Go to Power Board for more hardware information.

    87 parts5GPL-3.0
  • 2 layers160 × 42 mmESP kicad2, the printed circuit board in 3D

    ESP kicad2

    Amrlxyz/esp-lfr-buggy

    2nd Year Embedded Systems Project (ESP) - Line Following Robot Buggy

    28 parts4
  • 2 layers34.1 × 108.8 mmMeshmerize, the printed circuit board in 3D

    Meshmerize

    ChinmayLonkar/MAZEBLAZE

    Meshmerize BOT

    62 parts3
  • 2 layers103 × 80 mmEduRoMAA EduCIAA, the printed circuit board in 3D

    EduRoMAA EduCIAA

    ciiiutnfrc/eduromaa

    Versión educativa del robot móvil RoMAA (EduRoMAA)

    81 parts3GPL-3.0
  • 2 layers150 × 100 mmMaze kiCad, the printed circuit board in 3D

    Maze kiCad

    billtsol/Maze

    This project demonstrates how to use an Arduino board, IR sensors, and a motor driver shield to create a maze-solving robot.

    39 parts2
  • 2 layers134.4 × 99.6 mmLine sensor, the printed circuit board in 3D

    Line sensor

    Potato-eater/Legacy2026

    github repo for Robocup Junior Australia lightweight soccer team

    79 parts2