Skip to the content
2 layers70 × 50 mmLineFollow, the printed circuit board in 3D

A custom PCB-based Arduino Nano line follower robot designed for fast, reliable, and accurate autonomous line tracking.

Size
70 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
37
Pads
84
Tracks, vias
174, 2
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Aug 2026
Updated
13 Oct 2026

Overview

LineFollow is an open-source printed circuit board by neilgibsonpinto-art, from the neilgibsonpinto-art/Arduino-Nano-Line-Follower-PCB repository on GitHub, published under the MIT licence. It is a 2-layer board of 70 × 50 mm with 15 parts on 37 nets, routed with 174 tracks and 2 vias.

It is built around the ROB-14450. Its parts include 4 connectors, 3 ICs, 2 capacitors, 2 diodes and 1 switch. It belongs with the robots and motor control boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Arduino Nano PID Line Follower PCB

KiCad Arduino Hardware License: MIT Status

A custom, competition-ready autonomous line follower robot mainboard powered by the Arduino Nano and Toshiba TB6612FNG dual motor driver. Designed for high-speed robotics competitions, STEM educational kits, and embedded systems learning.

The board features a modular 8-channel analog IR sensor interface, hardware push buttons for calibration and run initiation, power management with reverse polarity protection, and high-current traces for micro metal gearmotors.


📸 Board Previews

PCB Layout (Top & Bottom)

PCB Top Layer   PCB Bottom Layer

Schematic Diagram

Circuit Schematic
(Click to open or download the high-resolution Schematic PDF)


⚡ Key Specifications

ParameterSpecificationDetails
MicrocontrollerArduino Nano (ATmega328P)16 MHz, 32 KB Flash, 2 KB SRAM
Motor DriverTB6612FNG Dual H-Bridge Module1.2A continuous / 3.2A peak per channel
Sensor Interface10-Pin JST-XH HeaderSupports 8 analog IR sensors (A0–A7) + 5V/GND
Operating Voltage7.4V – 8.4V (2S LiPo Pack)Reverse-polarity protected with SS34 Schottky diode
Logic RegulationLM7805 TO-220 Linear RegulatorWith aluminum heatsink bracket
Drive Architecture2-Wheel Differential Drive2 × 2-Pin JST motor connectors (L1/L2, R1/R2)
User Controls2 × Tactile Push ButtonsDedicated START and CALIBRATION inputs
Status Feedback5mm Through-Hole LEDUser-programmable indicator on D12
Power SwitchSPDT Miniature Slide SwitchDirect mechanical battery disconnect
Board Dimensions70.0 mm × 50.0 mmStandard 1.6 mm FR-4, 4 × M3 corner mounting holes

🗺️ Pinout & Hardware Mapping

Arduino Nano Pin Assignments

Arduino Nano PinNet NameConnected ToFunction / Description
D2P1START_1 ButtonRun / Trigger initiation button (Active LOW)
D3calibCALIBRATION_1 ButtonSensor calibration routine trigger (Active LOW)
D4STBYTB6612FNG Pin 13 (STBY)Motor driver standby enable (Active HIGH)
D5PWMATB6612FNG Pin 16 (PWMA)Left motor PWM speed control (Timer0)
D6PWMBTB6612FNG Pin 10 (PWMB)Right motor PWM speed control (Timer0)
D7AIN2TB6612FNG Pin 15 (AI2)Left motor direction input 2
D8AIN1TB6612FNG Pin 14 (AI1)Left motor direction input 1
D9BIN1TB6612FNG Pin 12 (BI1)Right motor direction input 1
D10BIN2TB6612FNG Pin 11 (BI2)Right motor direction input 2
D12ledStatus LED (D2)User diagnostic indicator
A0 – A7A0 – A7Sensor Header J1 (Pins 2–9)8-Channel Analog IR sensor readings
5V+5VLM7805 Output / VCC RailSystem logic supply
GNDGNDCommon Ground PlaneStar ground return

📦 Bill of Materials (BOM)

Ref DesQtyComponent ValuePackage / FootprintProcurement Link
U11Arduino Nano V3.0 (CH340/FTDI)Socket / Module FootprintRobu.in Link
U21TB6612FNG Motor Driver ModuleSparkFun ROB-14450 CompatibleRobu.in Link
U31LM7805 Linear Regulator (5V, 1.5A)TO-220-3 VerticalRobu.in Link
D11SS34 Schottky Barrier Diode (3A, 40V)SMD DO-214AC (SMA)Robu.in Link
D21Red LED (5mm DIP)LED_D5.0mm Through-HoleRobu.in Link
C1, C2210 µF 25V Electrolytic CapacitorRadial D5.0mm, P2.00mmRobu.in Link
SW11SPDT Miniature Slide SwitchSW_MINI-SPDTRobu.in Link
START1, CALIBRATION126x6 mm Tactile Push ButtonSW_PUSH_6mm Through-HoleRobu.in Link
J1110-Pin JST-XH Straight Male HeaderJST_B10B-XH-A 2.5mm PitchRobu.in Link
J212-Pin Screw Terminal Block (5.0mm)XY306A-5.0 2P BlueRobu.in Link
J3, J422-Pin JST-XH/PH Motor ConnectorsS2B-PH-K-S / JST 2-Pin 2.54mmRobu.in Link
Heatsink1Aluminum TO-220 HeatsinkTO220-718 with ScrewRobu.in Link

🧠 PID Line Following Algorithm

The robot uses a Weighted Average Centroid algorithm to calculate the position of the line relative to the center of the 8-sensor array:

$$\text{Error} = \frac{\sum_{i=0}^{7} \text{SensorValue}_i \times \text{Weight}i}{\sum{i=0}^{7} \text{SensorValue}_i}$$

Where $\text{Weight} = {-3500, -2500, -1500, -500, 500, 1500, 2500, 3500}$.

PID Steering Correction

$$\text{Correction} = (K_p \times \text{Error}) + \left(K_i \times \sum \text{Error}\right) + (K_d \times \Delta\text{Error})$$

  • Left Motor Speed: $V_{\text{left}} = V_{\text{base}} + \text{Correction}$
  • Right Motor Speed: $V_{\text{right}} = V_{\text{base}} - \text{Correction}$

If the line is momentarily lost (all sensors off track), the algorithm retains the last known error sign to continue turning back onto the track.

The complete code is located in Firmware/LineFollower/LineFollower.ino.


🛠️ Hardware Design & Assembly Notes

[!IMPORTANT] Rev 1.0 Bring-Up Instructions:

  1. Arduino Nano 5V Power Pin: In Rev 1.0, the 5V regulated output is wired to Nano Pin 30 (VIN). For optimal operation and to bypass the Nano's onboard regulator dropout, bridge Nano Pin 27 (5V) to the board's +5V rail.
  2. LED Series Resistor: When assembling Rev 1.0, place a 330 Ω resistor in series with LED D2 to protect GPIO pin D12 from overcurrent.
  3. Input Voltage Recommendation: The LM7805 has a ~2.0V dropout voltage. When running on a 2S LiPo (7.4V nominal), consider using an LM2940CT-5.0 low-dropout regulator (0.5V dropout, pin-compatible TO-220) for full discharge headroom down to 6.0V.
  4. Decoupling Capacitors: In addition to the electrolytic capacitors, solder a 100 nF ceramic capacitor across the motor driver VM-GND to absorb high-frequency PWM switching transients.

🏭 Manufacturing & Fabrication Files

The board is designed for standard low-cost PCB fabrication (JLCPCB, PCBWay, etc.):

  • Layers: 2-Layer Board
  • Dimensions: 70.0 mm × 50.0 mm
  • PCB Thickness: 1.6 mm
  • Copper Weight: 1 oz (35 µm)
  • Surface Finish: HASL (or Lead-free HASL / ENIG)
  • Minimum Trace / Space: 0.25 mm / 0.25 mm (Power traces 1.0 mm)
  • Gerber Archive: Ready-to-order Gerber ZIP is available at Gerber/lineFollow_Gerbers.zip.

📂 Repository Structure

text
Arduino-Nano-Line-Follower-PCB/
│
├── Firmware/
│   └── LineFollower/
│       └── LineFollower.ino         # Arduino PID line follower firmware
│
├── Gerber/
│   ├── lineFollow_Gerbers.zip       # Complete fabrication archive (JLCPCB / PCBWay ready)
│   ├── lineFollow.drl               # Excellon drill file
│   ├── lineFollow-F_Cu.gtl          # Top copper layer
│   ├── lineFollow-B_Cu.gbl          # Bottom copper layer
│   ├── lineFollow-F_Silkscreen.gto  # Top silkscreen
│   └── ...                          # Solder masks, paste, edge cuts
│
├── Images/
│   ├── PCB_Top.svg                  # Vector render of top copper and silkscreen
│   ├── PCB_Bottom.svg               # Vector render of bottom copper and ground fill
│   └── Schematic.svg                # Vector circuit schematic diagram
│
├── Docs/
│   ├── Schematic.pdf                # Full printable A4 schematic sheet
│   └── BOM.csv                      # Bill of materials with part numbers & links
│
├── lineFollow.kicad_sch             # KiCad 10 schematic file

👨‍💻 Author

Neil Gibson Pinto
Electronics & Communication Engineering
Specialized in Embedded Systems, Robotics, and Custom Hardware Design.


📄 License

This hardware design and source code are released under the MIT License. Feel free to use, modify, and build upon this design for academic, competition, and commercial projects.

Parts

15
QtyValueFootprintReferences
210µFCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC1, C2
2S2B-PH-K-S_LF__SN_Connector:jst_2pinJ3, J4
2SW_PushButton_Switch_THT:SW_PUSH_6mmCALIBRATION_1, START_1
1ARDUINO_NANOARDUINO:MODULE_ARDUINO_NANOU1
1Conn_01x02Connector:screw_connJ2
1Conn_01x10_PinConnector:JST_B10B-XH-A_LF__SN_J1
1D_SchottkyDiode_SMD:D_SMAD1
1LEDLED_THT:LED_D5.0mmD2
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU3
1ROB-14450ARDUINO:MODULE_ROB-14450U2
1SW_SPDTSocket:SW_MINI-SPDT-SWSW1

The 14 most common of 15 parts.

Similar boards

  • 2 layers120 × 100 mmRoot, the printed circuit board in 3D

    Root

    GonzaCerv/noah-hardware

    This repo contains all the hardware description for the Noah project. Here lies 3D models, electronics PCB and Firmware software of the robot.

    127 parts28MIT
  • 2 layers102.6 × 82 mmFun, the printed circuit board in 3D

    Fun

    bonavirak/Line-Follower-Robot-Using-STM32F103C8T6-with-TCRT-5000

    Line Follower Robot powered by STM32F103C8T6 microcontroller, using TCRT5000 5-way sensors for line detection, HC-05 for Bluetooth communication, TB6612FNG motor driver, and N20 motors (1000 RPM).

    38 parts11MIT
  • 2 layers42 × 42 mmControllerBoardSingle v1, the printed circuit board in 3D

    ControllerBoardSingle v1

    0x23/BallJointEmbossingMachine

    A motorized linear embossing machine designed to precisely press ball joints. It was designed to automate the production of balljoint linkages for the Open-Micro-Manipulator.

    20 parts9MIT
  • 2 layers90 × 102 mmPL Toon, the printed circuit board in 3D

    PL Toon

    pl-toon/pl-toon-codes

    PL-TOON material

    39 parts7
  • 4 layers156.8 × 127 mmPayload PCB v3.1, the printed circuit board in 3D

    Payload PCB v3.1

    team-mountaineers-urc-2023/electronics

    Block diagrams, schematics, and PCB files related to the electronics subteam

    197 parts2BSD-3-Clause
  • 2 layers75.6 × 50.2 mmAutónomo, the printed circuit board in 3D

    Autónomo

    lionfer51/SkillBots

    Repositorio oficial de SkillBots (RAS-UNFV)

    20 parts1
  • 2 layers87.2 × 93.9 mmWRO RevA, the printed circuit board in 3D

    WRO RevA

    Nakashima26/WRO_FE_2026_FoxRobotics

    CETYS Mexicali WRO2026 FoxRobotics Team

    26 parts1MIT

Questions

How big is the LineFollow PCB?

It measures 70 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LineFollow use?

15 parts, built around the ROB-14450. 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 LineFollow KiCad files?

From the neilgibsonpinto-art/Arduino-Nano-Line-Follower-PCB repository on GitHub, at the commit this page was made from: the board is lineFollow.kicad_pcb and its schematic lineFollow.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LineFollow design in my own project?

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).