Skip to the content
2 layers95.9 × 42.8 mmKicadDesign, the printed circuit board in 3D

Este proyecto presenta un carrito autónomo seguidor de línea basado en un microcontrolador STM32 y un sistema de control por lógica difusa (Fuzzy Logic).

Size
95.9 × 42.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
46
Pads
77
Tracks, vias
140, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
18 Dec 2025
Updated
10 Oct 2026

Overview

KicadDesign is an open-source printed circuit board by DasReyxr, from the DasReyxr/STM32F-CAR repository on GitHub. It is a 2-layer board of 95.9 × 42.8 mm with 14 parts on 46 nets, routed with 140 tracks and 0 vias.

Its parts include 9 connectors, 2 capacitors, 2 resistors and 1 IC.

README

readme.md

Carrito Seguidor de Línea con Lógica Difusa

Este proyecto presenta un carrito autónomo seguidor de línea basado en un microcontrolador STM32 y un sistema de control por lógica difusa (Fuzzy Logic). El objetivo es detectar la posición de la línea y ajustar la velocidad de los motores para mantener el seguimiento de manera estable y eficiente.

✨ Características principales

  • Seguimiento automático de línea mediante sensores infrarrojos.
  • Control adaptativo mediante lógica difusa.
  • Implementación sobre plataforma STM32.
  • Diseño orientado a demostración, pruebas y desarrollo académico.

🧠 ¿Cómo funciona?

El sistema lee la señal de los sensores, identifica si el carrito está ligeramente a la izquierda, a la derecha o sobre la línea, y genera una respuesta para corregir el movimiento de los motores, manteniéndose sobre la trayectoria.

🛠️ Diseño del sistema

El sistema sigue una secuencia clara de procesamiento:

  1. Adquisición de datos: se toman las lecturas de los dos sensores.
  2. Difuminación de entradas: los valores obtenidos se difuminan para representar el grado de pertenencia a las variables difusas.
  3. Reglas de Mamdani: se aplican las reglas difusas para evaluar la acción de control.
  4. Defuzzificación por centroide: se obtiene un valor numérico que indica la corrección necesaria.
  5. Actuación sobre los motores: el resultado se envía al puente H para controlar el movimiento del carrito.
mermaid
flowchart LR
    A[Sensor izquierdo] --> B[Lecturas de entrada]
    C[Sensor derecho] --> B
    B --> D[Difusificación]
    D --> E[Reglas de Mamdani]
    E --> F[Centroide]
    F --> G[Control de motores]
    G --> H[Motor izquierdo]
    G --> I[Motor derecho]

Componentes principales

  • Microcontrolador: BlackPill STM32F411CEU
  • Sensores: QTR-8A
  • Puente H: TB6612FNG
  • Control: lógica difusa basada en reglas de Mamdani
  • Actuadores: motores DC
  • Fuente de alimentación: batería o fuente adecuada para el sistema

📷 Imagen del prototipo

A continuación se muestra una vista del prototipo desarrollado para el carrito seguidor de línea:

Prototipo del carrito seguidor de línea

🎥 Demo

Aquí puedes ver una demostración del funcionamiento del carrito:

https://github.com/user-attachments/assets/0d9d8957-ae0a-4fae-b08e-12143651e8d6

👥 Equipo

Parts

14
QtyValueFootprintReferences
2Conn_01x20_SocketConnector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_VerticalJ6, J7
1100uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC3.3V1
1100uFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC9V1
11500Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3.3V_1
11KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3.3V_2
19VConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ9
1A MOTORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ11
1B MOTORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ12
1LM317_TO-220Package_TO_SOT_THT:TO-220-3_VerticalU3.3V1
1Puente HConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ8
1Puente_H2Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ10
1SENSORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1SENSOR_SOURCEConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ13

Similar boards

  • 2 layers116.8 × 30 mmType d, the printed circuit board in 3D

    Type d

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    14 parts3kApache-2.0
  • 2 layers32 × 22 mmDiff driver, the printed circuit board in 3D

    Diff driver

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    14 parts990GPL-3.0
  • 2 layers34 × 45 mm2032Charger, the printed circuit board in 3D

    2032Charger

    hackclub/OnBoard

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

    14 parts915
  • 2 layers34 × 109.9 mmTdisplay s3, the printed circuit board in 3D

    Tdisplay s3

    landonr/homeThing

    Wifi Smart Home Remotes that run on ESPHome

    14 parts551GPL-3.0
  • 2 layers45.3 × 42.7 mmMainPcb, the printed circuit board in 3D

    MainPcb

    adamb314/ServoProject

    Getting the most out of your hobby servo

    14 parts545
  • 2 layers42.5 × 28.8 mmC5VRX JACK DIY, the printed circuit board in 3D

    C5VRX JACK DIY

    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

    14 parts515GPL-3.0
  • 2 layers62 × 24 mmMai button, the printed circuit board in 3D

    Mai button

    whowechina/mai_pico

    Pico controller for Maimai

    14 parts475

Questions

How big is the KicadDesign PCB?

It measures 95.9 × 42.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the KicadDesign use?

14 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 KicadDesign KiCad files?

From the DasReyxr/STM32F-CAR repository on GitHub, at the commit this page was made from: the board is design/KicadDesign/Design/Design.kicad_pcb and its schematic design/KicadDesign/Design/Design.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the KicadDesign design in my own project?

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