Skip to the content
PCBKitNew board
2 layers54 × 76 mmPendulo invertido Juan, the printed circuit board in 3D

Pendulo invertido Juan

R2DeezNuts/Pendulo-Invertido

Control PID sobre ESP32, filtrado de sensores, telemetría e interfaz web para ajustar parámetros.

Size
54 × 76 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
45
Pads
83
Tracks, vias
87, 1
Pours
39
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
24 Jun 2025
Updated
31 Oct 2026

Overview

Pendulo invertido Juan is an open-source printed circuit board by R2DeezNuts, from the R2DeezNuts/Pendulo-Invertido repository on GitHub. It is a 2-layer board of 54 × 76 mm with 17 parts on 45 nets, routed with 87 tracks and 1 via.

It is built around the ROB-14450 and XT30PW-F. Its parts include 4 capacitors, 2 ICs, 1 transistor and 1 connector. It belongs with the robots and motor control boards and the ESP32 boards of this library.

Main components

2

README

README.md

Péndulo invertido: control PID e interfaz web

Sistema de control PID para estabilizar un péndulo invertido con un ESP32. Incluye una interfaz web para ajustar los parámetros, telemetría y rutinas de calibración.

Características

  • Control PID a 100 Hz.
  • Ajuste remoto de Kp, Ki, Kd, setpoint y offset.
  • Calibración del ángulo cero.
  • Desactivación automática cuando detecta una caída.
  • Telemetría del estado del sistema.
  • Anti-windup para limitar la acumulación del término integral.

Hardware

  • Microcontrolador: ESP32
  • Sensor inercial: MPU6050 (acelerómetro y giroscopio)
  • Actuadores: dos motores DC con puente H

Conexiones GPIO

MPU6050 (I2C)
SeñalGPIO
SDA21
SCL22
Motores (puente H)

| Motor | Señal | GPIO | |------:|:-----:| | A | PWMA | 26 | | A | AIN1 | 2 | | A | AIN2 | 0 | | B | PWMB | 25 | | B | BIN1 | 16 | | B | BIN2 | 17 |

Puesta en marcha

  1. Conéctate a la red WiFi RobotAP (contraseña: 12345678).
  2. Abre http://192.168.4.1 en el navegador.
  3. Con el robot en posición vertical, calibra el ángulo cero antes de activar los motores.
  4. Ajusta los parámetros PID desde la interfaz y activa el control.

Péndulo invertido en funcionamiento

Parámetros ajustables

ParámetroDescripción
Kp, Ki, KdConstantes del controlador PID
SetpointÁngulo objetivo, en grados
OffsetAjuste fino para la calibración

Protección y arquitectura

La protección desactiva el control cuando el ángulo supera los 30° durante más de un segundo. El control se ejecuta en una tarea de FreeRTOS a 100 Hz; el servidor web permite consultar el estado y cambiar los parámetros; y un filtro complementario combina el acelerómetro y el giroscopio para estimar el ángulo.

Uso recomendado

Coloca el robot en vertical, calibra el sensor y empieza con valores PID conservadores. Activa los motores mientras observas la telemetría y ajusta el setpoint y el offset de forma gradual.

Si entra en modo de protección, revisa la calibración, el sentido de giro, la saturación del control y las vibraciones o el ruido del MPU6050.

Detalle del péndulo invertido

Parts

17
QtyValueFootprintReferences
4MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M2H0, H1, H2, H3
4TestPointTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP1, TP2, TP3, TP4
2C 10ufCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC3, C4
1C 0,1 ufCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC1
1C 0,33 ufCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC2
1ESP32-DEVKITC-32D0_Huellas:MODULE_ESP32-DEVKITC-32DU1
1GY-5210_Huellas:GY-521ACC1
1LM7805CT_NOPB0_Huellas:TO254P1054X470X1955-3Q2
1ROB-144500_Huellas:MODULE_ROB-14450U2
1XT30PW-F0_Huellas:AMASS_XT30PW-FJ1

Questions

How big is the Pendulo invertido Juan PCB?

It measures 54 × 76 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pendulo invertido Juan use?

17 parts, built around the ROB-14450 and XT30PW-F. 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 Pendulo invertido Juan KiCad files?

From the R2DeezNuts/Pendulo-Invertido repository on GitHub, at the commit this page was made from: the board is PCB/pendulo_invertido_Juan.kicad_pcb and its schematic PCB/pendulo_invertido_Juan.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pendulo invertido Juan design in my own project?

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

Similar boards

  • 6 layers235.1 × 213.7 mmQuiver PT3 Main PCB rounded, the printed circuit board in 3D

    Quiver PT3 Main PCB rounded

    Arrow-air/project-quiver

    Project Quiver documentation, designs, and project artifacts.

    164 parts617CERN-OHL-S-2.0
  • 4 layers55.3 × 29 mmDrone current sensor board, the printed circuit board in 3D

    Drone current sensor board

    Kelvin-Ziqi-Zhao/drone-current-sensor-board

    High current sensor board for battery+capacitor power supply system

    66 parts7
  • 2 layers45 × 30 mmTFSBEC01, the printed circuit board in 3D

    TFSBEC01

    ThunderFly-aerospace/TFSBEC01

    High efficient switching power supply for UAV actuators.

    39 parts5GPL-3.0
  • 2 layers208 × 198.1 mmLayer1, the printed circuit board in 3D

    Layer1

    8076ducc/robocup-2024

    ducc.'s RCJ Soccer 2024 Team Repository

    227 parts4
  • 4 layers13.4 × 4.5 mmLre avio daq2, the printed circuit board in 3D

    Lre avio daq2

    IITB-Rocket-Team-Avionics/Ember

    Experimental Flight Computer with potential mitigations of previous issues faced by FLYTE and a testbed for new systems.

    172 parts4MIT
  • 2 layers40 × 21.1 mmMicroscope LED, the printed circuit board in 3D

    Microscope LED

    CGrassin/microscope_led_light_circuit

    A dimming LED circuit designed for optical microscopes.

    20 parts2CC-BY-4.0
  • 2 layers100 × 55 mmWellD, the printed circuit board in 3D

    WellD

    kinggh0stee/WellD

    ESP32-C6 Zigbee well monitor — reads a 4–20 mA pressure transducer and DS18B20, reports water level, temperature, and battery to Zigbee2MQTT with OTA update support

    122 parts2MIT