Skip to the content
4 layers56 × 38 mmPenguinBotV3, the printed circuit board in 3D

PenguinBot V3.0 — 桌面轮足机器人 | ESP32-S3 定制PCB | ICM-42688-P SPI | TOF防跌落 | 离线唤醒词 | 自动充电坞 | BLE App | ¥589 BOM

Size
56 × 38 mm
Copper layers
4
Thickness
1.6 mm
Parts
78
Nets
49
Pads
0
Tracks, vias
93, 14
Pours
5
Routed
Yes
KiCad
KiCad 8 (file 20240108)
Created
15 May 2026
Updated
15 May 2026

Overview

PenguinBotV3 is an open-source printed circuit board by zhangshua1, from the zhangshua1/PenguinBotV3 repository on GitHub. It is a 4-layer board of 56 × 38 mm with 78 parts on 49 nets, routed with 93 tracks and 14 vias.

It is built around the ESP32-S3-WROOM-1-N16R8, PCA9685PW and AMS1117-3.3, with the ICM-42688-P, 1N4148WS and SS34 among its other parts. Its parts include 22 resistors, 15 capacitors, 15 connectors, 7 ICs and 5 diodes. It belongs with the ESP32 boards of this library.

Main components

7

README

README.md

PenguinBot V3.0 — 桌面轮足机器人

双轮自平衡 + 企鹅形态 | ESP32-S3 定制 PCB | ICM-42688-P | TOF 防跌落 | 离线唤醒词 | 自动充电坞 | BLE App | ¥589 BOM

V3.0 新增特性

特性V2.0V3.0
PCB6 块独立模块 + 杜邦线1 块定制 PCB (56×38mm 4L)
IMUMPU6050 I2CICM-42688-P SPI (零漂 0.1°/hr)
防跌落无VL53L4CD TOF ×2 桌面边缘检测
交互无触摸电容触摸 "摸头杀"
唤醒词无ESP-SR 离线 "嘿企鹅"
充电USB 手动弹簧触点 + IR 引导自动充电坞
摄像头无OV2640 200W 拍照
通信WiFi 仅WiFi + BLE GATT 手机 App
AppWebUI 仅React Native 跨平台 App
成本¥486¥589

快速开始

bash
# 1. 安装 PlatformIO
pip install platformio

# 2. 编译固件
cd firmware
pio run

# 3. 烧录
pio run -t upload

# 4. 上传 WebUI 到 SPIFFS
pio run -t uploadfs

# 5. 连接 PenguinBot WiFi AP
# SSID: PenguinBot-XXXX  密码: penguin123
# 浏览器打开 http://192.168.4.1

V3.0 项目结构

text
PenguinBotV3/
├── firmware/                    # ESP32-S3 固件 (PlatformIO)
│   ├── platformio.ini
│   ├── src/
│   │   ├── main.cpp             # 入口 + 8 FreeRTOS 任务
│   │   ├── config.h             # V3 GPIO 重映射 + 全系统配置
│   │   ├── balance/             # 平衡控制 (ICM-42688-P SPI + 级联PID + TOF边缘)
│   │   ├── motor/               # TB6612 驱动 + AS5600 编码器 + 里程计
│   │   ├── servo/               # PCA9685 驱动 + 关键帧动画引擎
│   │   ├── display/             # ST7789 TFT 驱动 + 表情精灵 + V3 图标
│   │   ├── comm/                # WiFi AP + WebSocket + JSON + BLE GATT
│   │   ├── sensors/             # [NEW] TOF ×2 / Touch / IR 传感器
│   │   ├── audio/               # INMP441 麦克风 + ESP-SR 离线唤醒词
│   │   ├── ai/                  # AI 对话服务 + LLM 接口
│   │   ├── charging/            # [NEW] 充电坞状态机 + IR 引导
│   │   ├── vision/              # [NEW] OV2640 摄像头 + 视觉任务
│   │   ├── system/              # 电池监测 + 环形日志
│   │   └── ui/                  # SPIFFS WebUI + V3 新增 API
│   └── data/                    # V3 WebUI 静态资源
│       ├── index.html           # 7 标签页 (仪表盘/PID/舵机/移动/AI/拍照/系统)
│       ├── style.css            # TOF 仪表 / Dock 面板 / 摄像头 / BLE 样式
│       └── app.js               # JPEG 分片接收 / TOF 仪表 / Dock UI / 触摸事件
├── mechanical/                  # OpenSCAD 3D 模型 (V3 紧凑设计)
│   ├── config.scad              # V3 尺寸参数 + PCB + TOF + 摄像头 + 充电坞

硬件架构 (V3)

text
ESP32-S3 定制PCB (56×38mm 4层板)
    ├── SPI3 → ICM-42688-P (1kHz IMU, 互补滤波 α=0.99)
    ├── SPI2 → ST7789 2.0" TFT (240×320)
    ├── I2C0 → PCA9685舵机 + VL53L4CD×2 TOF (0x54/0x55)
    ├── 8-bit Parallel → OV2640 摄像头 (GPIO 分时复用)
    ├── GPIO → TB6612FNG → N20 ×2 (编码器电机)
    ├── I2S → MAX98357 → Speaker + INMP441 麦克风
    ├── Touch13 (GPIO14) → 电容触摸 "摸头杀"
    ├── IR (GPIO17 TX / GPIO18 RX) → 充电坞引导
    ├── ADC → 电池电压 + 充电触点电压检测
    ├── WiFi AP / STA → WebSocket → WebUI
    └── BLE (NimBLE) → GATT 4通道 → 手机App

FreeRTOS 8 任务

任务频率核心栈功能
balance200HzCore 14096级联PID + TOF边缘急停
servo50Hz—4096舵机 + TOF + Touch 传感器
comm20Hz—12288WebSocket + BLE 遥测 + 唤醒词推理
display30Hz—8192TFT 表情 + 状态图标
conversation50Hz—8192AI 对话状态机
dock10Hz—4096充电坞状态机 + IR 解码
vision5Hz—16384摄像头拍照 + 视觉任务
monitor1Hz—2048电池监控 + 低电自动回充

BOM

类别V2 金额V3 金额
电子元器件¥281.5¥384.5
紧固件¥10¥9
3D 打印耗材¥195¥195
合计¥486¥589

详见: PenguinBot-V3-Design.md

Parts

78
QtyValueFootprintReferences
810kResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7, R8
6100kResistor_SMD:R_0603_1608MetricR9, R10, R11, R12, R13, R14
4100RResistor_SMD:R_0603_1608MetricR17, R18, R19, R20
4100nFCapacitor_SMD:C_0603_1608MetricC6, C7, C8, C9
410uFCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4
4—MountingHole:MountingHole_2.2mm_M2MH, MH, MH, MH
210RResistor_SMD:R_0603_1608MetricR21, R22
21kResistor_SMD:R_0603_1608MetricR15, R16
21uFCapacitor_SMD:C_0402_1005MetricC14, C15
222pFCapacitor_SMD:C_0402_1005MetricC10, C11
24.7uFCapacitor_SMD:C_0603_1608MetricC12, C13
110uFCapacitor_SMD:C_0603_1608MetricC5
11N4148WSDiode_SMD:D_SOD-323D2
12A PTCResistor_SMD:R_1812F1
132.768kHzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmX2
14.7uH 3.3VInductor_SMD:L_CD54_5.2x5.8mmL2
14.7uH 5VInductor_SMD:L_CD54_5.2x5.8mmL1
140MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmX1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U6
1BOOTButton_SMD_SW:SW_Push_1P1T_PTS645SW1
1Battery 2SConnector_JST:JST_XH_B2B-XH-AJ2
1DEBUGTestPoint:TestPoint_Pad_D1.0mmTP3
1Dock Contact LConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ13
1Dock Contact RConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ14
1ENC LeftConnector_JST:JST_XH_B3B-XH-AJ7
1ENC RightConnector_JST:JST_XH_B3B-XH-AJ8
1ESP32-S3-WROOM-1-N16R8RF_Module:ESP32-S3-WROOM-1U1
1GNDTestPoint:TestPoint_Pad_D1.0mmTP2
1Green PWRLED_SMD:LED_0603_1608MetricLED2
1ICM-42688-PSensor_Motion:ICM-42688-P_LGA-14_2.5x3mmU4
1INMP441 MicConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ4
1MAX98357 SpkConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ5
1Motor LConnector_JST:JST_XH_B2B-XH-AJ9
1Motor RConnector_JST:JST_XH_B2B-XH-AJ10
1OV2640 CameraConnector_FFC-FPC:Hirose_FH12-24S-0.5SHJ15
1PCA9685PWPackage_SO:TSSOP-28_4.4x9.7mm_P0.65mmU3
1POWERButton_Switch_THT:SW_SPDT_MSK-12C02SW2
1PWRTestPoint:TestPoint_Pad_D1.0mmTP1
1Red CHGLED_SMD:LED_0603_1608MetricLED3
1SS34Diode_SMD:D_SMAD1
1ST7789 TFTConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ3
1SY8089 3.3VPackage_TO_SOT_SMD:SOT-23-5U5B
1SY8089 5VPackage_TO_SOT_SMD:SOT-23-5U5A
1TB6612FNGPackage_SO:SSOP-24_5.3x8.2mm_P0.65mmU2
1TOF LeftConnector_JST:JST_XH_B4B-XH-AJ11
1TOF RightConnector_JST:JST_XH_B4B-XH-AJ12
1USB-CConnector_USB:USB_C_Receptacle_GCT_USB4105J1
1VS1838B IRConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1WS2812BLED_SMD:LED_WS2812B-3535LED1

Similar boards

  • 2 layers148.6 × 192.2 mmBadge, the printed circuit board in 3D

    Badge

    NuttyShell/NuttyBadge

    NuttyBadge: A NuttyShell crafted multi-tool. Opensourced Hardawre and Software

    169 parts31GPL-3.0
  • 4 layers66.4 × 66.4 mmRera, the printed circuit board in 3D

    Rera

    fdiwth/tvc-drone

    This repository contains the documentation, hardware designs, and source code for a Thrust Vector Control (TVC) drone.

    140 parts34GPL-3.0
  • 4 layers128 × 84 mmDronemagnav2, the printed circuit board in 3D

    Dronemagnav2

    ajisrawi/DroneMagNav2.0

    DroneMagNav 2.0 - survey-fluxgate magnetic-anomaly navigation board for drones (IGRF-14 + EMAG2v3 continued to flight altitude)

    222 parts
  • 4 layersPantiltslide integrated, the printed circuit board in 3D

    Pantiltslide integrated

    AMOVFC/PanTilt

    Three projects live in this folder. They share NewLibrary.kicadsym, TMC2209.pretty and the same philosophy: nothing on the board needs precision placement, every active part is a module in a socket.

    86 parts
  • 4 layers82.1 × 80.2 mmSeguidor de linhas 4camada2-2026-1, the printed circuit board in 3D

    Seguidor de linhas 4camada2-2026-1

    wvianna/mcp-kicad-vscode

    Workspace que combina um servidor MCP para automação de design de PCB com KiCad e o projeto de hardware (placa de circuito impresso) desenvolvido com ele.

    97 parts
  • 2 layers76 × 95.8 mmSupervisor, the printed circuit board in 3D

    Supervisor

    kaminaris/GigaESC

    97 parts47
  • 4 layers57.3 × 70.3 mmUAV PAYLOAD CONTROLLER, the printed circuit board in 3D

    UAV PAYLOAD CONTROLLER

    VGManasa/PCB-DESIGNS

    A collection of PCB designs created using KiCad, including power supply, embedded, and electronics learning projects.

    174 parts
  • 2 layers100 × 77 mmCarte Mere PAMI 2025, the printed circuit board in 3D

    Carte Mere PAMI 2025

    goldobot/ELEC

    fichier source des cartes électroniques

    116 parts1

Questions

How big is the PenguinBotV3 PCB?

It measures 56 × 38 mm and has 4 copper layers, 1.6 mm thick.

What parts does the PenguinBotV3 use?

78 parts, built around the ESP32-S3-WROOM-1-N16R8, PCA9685PW, AMS1117-3.3 and ICM-42688-P. 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 PenguinBotV3 KiCad files?

From the zhangshua1/PenguinBotV3 repository on GitHub, at the commit this page was made from: the board is pcb/penguinbot_v3.kicad_pcb and its schematic pcb/penguinbot_v3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PenguinBotV3 design in my own project?

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