Espressif ESP32-S3
智能家居扫地机器人驱动系统
Overview
A compact smart home robot vacuum cleaner drive system powered by a 8-14V lithium battery with multi-motor FOC control and wireless connectivity.
System architecture
- POWER_MANAGEMENT → APP_MCUPowerProvides regulated 3.3V power to ESP32-S3
- POWER_MANAGEMENT → REALTIME_MCUPowerProvides regulated 3.3V power to STM32G473
- POWER_MANAGEMENT → LIDAR_SENSORPowerProvides 5V power to LiDAR
- POWER_MANAGEMENT → WHEEL_DRIVE_MOTORSPowerVBAT power rail for wheel motors
- POWER_MANAGEMENT → VACUUM_FAN_MOTORPowerVBAT power rail for vacuum fan motor
- POWER_MANAGEMENT → MAIN_BRUSH_MOTORPowerVBAT power rail for main brush motor
- POWER_MANAGEMENT → SIDE_BRUSH_MOTORPowerVBAT power rail for side brush motor
- APP_MCU → REALTIME_MCUUARTHigh-speed serial communication between app/Wi-Fi processor and real-time MCU
- REALTIME_MCU → IMU_SENSORSPIPolls 6-axis IMU data for odometry and balance
- REALTIME_MCU → LIDAR_SENSORUARTReceives point cloud data and controls LiDAR motor speed
- REALTIME_MCU → CLIFF_SENSORSADCReads analog reflection voltages from cliff sensors
- REALTIME_MCU → WHEEL_DRIVE_MOTORSPWMControls wheel speed/direction and reads quadrature encoders
- REALTIME_MCU → VACUUM_FAN_MOTORPWMPWM control and back-EMF sensing for sensorless BLDC vacuum fan
- REALTIME_MCU → MAIN_BRUSH_MOTORPWMFOC gate control signals and phase current feedback
- REALTIME_MCU → SIDE_BRUSH_MOTORPWMPWM speed and direction control for side brush DC motor
Bill of materials
| Part number | Type | Component | Manufacturer | Package | Qty | Datasheet | Match |
|---|---|---|---|---|---|---|---|
| BQ25713RSNR | POWER | TI TPS62840 / MP2314 + BQ25713 Battery Management Manages 8~14V lithium battery charging, provides regulated 5V and 3.3V rails for system electronics | Texas Instruments | 32-pin WQFN | 1 | Matched | |
11 alternatives consideredAI verified | |||||||
| ESP32-S3-WROOM-1-N8R8 | MCU | Espressif ESP32-S3 Handles Wi-Fi/BLE app communication, local MQTT/HTTP servers, and high-level command forwarding | Espressif Systems | 41-SMD Module | 1 | Matched | |
16 alternatives consideredAI verified | |||||||
| STM32G473VCT6 | MCU | STMicroelectronics STM32G473VCT6 Executes multi-axis FOC for main/side brushes, sensorless BLDC control for vacuum fan, and safety-critical I/O loops | STMicroelectronics | LQFP-100 | 1 | Matched | |
5 alternatives consideredAI verified | |||||||
| ICM-42688-P | SENSOR | TDK InvenSense ICM-42688-P Provides gyroscope and accelerometer data for dead reckoning, orientation tracking, and tilt detection | TDK InvenSense | 14-Pin LGA | 1 | Matched | |
15 alternatives consideredAI verified | |||||||
| 110991065 | SENSOR | LDROBOT LD19 2D LiDAR Provides 360-degree environmental mapping and obstacle detection data | Seeed Studio | — | 1 | Matched | |
8 alternatives consideredAI verified | |||||||
| TCRT5000 | SENSOR | Vishay TCRT5000 IR Reflective Sensor Detects stairs and drop-offs to prevent the robot from falling | Vishay Semiconductor Opto Division | PCB Mount | 4 | Matched | |
14 alternatives consideredAI verified | |||||||
| DRV8833 | ACTUATOR | Stepper/DC Drive Motors with Quadrature Encoders + DRV8833 Drives left and right wheels for autonomous movement and odometry tracking | Texas Instruments | HTSSOP (16), WQFN (16), TSSOP (16) | 2 | Matched | |
16 alternatives consideredAI verified | |||||||
| BLDC-GEVK | ACTUATOR | Sensorless BLDC Vacuum Fan Motor + Monolithic Power Systems MP6535 Generates suction power using high-speed sensorless BLDC drive | Catalyst Semiconductor, Inc. | — | 1 | Matched | |
4 alternatives consideredAI verified | |||||||
| FT8132Q | ACTUATOR | BLDC Main/Roller Brush Motor + TI DRV8316 Performs FOC control on the main roller brush for floor cleaning | Fortior Technology (Shenzhen) Co., Ltd. | QFN24 | 1 | Matched | |
4 alternatives consideredAI verified | |||||||
| APEK4950ELJ-01-T-DK | ACTUATOR | DC Side Brush Motor + Allegro A4950 Sweeps debris from corners and edges toward the main suction path | Allegro MicroSystems | — | 1 | Matched | |
4 alternatives consideredAI verified | |||||||
Build guide
采购与准备
- 清点BOM表中的核心IC与驱动芯片,包括BQ25713RSNR电池管理芯片、ESP32-S3-WROOM-1-N8R8模组、STM32G473VCT6主控MCU、ICM-42688-P惯导传感器以及各类电机驱动芯片(DRV8833、MP6535、FT8132Q、APEK4950ELJ-01-T-DK)。
- 准备超薄扫地机器人多层PCB主板裸板,检查PCB阻焊层、丝印标识以及电源层与地层的短路情况,确认无划痕和铜皮断裂。
- 准备外围传感器及执行机构配件,包括LDROBOT LD19 2D激光雷达、4颗Vishay TCRT5000红外反射式防跌落传感器、带正交编码器的驱动步进/直流电机、无感BLDC风机、主刷电机和边刷电机。
硬件组装与接线
- 使用锡膏印刷机和钢网在PCB电源管理区域涂抹锡膏,贴装TI TPS62840/MP2314外围电路及BQ25713RSNR电池管理芯片,通过回流焊炉完成焊接,为系统提供稳定的3.3V和5V电源轨。
- 手工或机器贴装Espressif ESP32-S3-WROOM-1-N8R8应用MCU与STMicroelectronics STM32G473VCT6实时控制MCU,并焊接TDK ICM-42688-P惯导传感器。
- 焊接电机驱动芯片组,包括用于左右轮驱动的2片DRV8833、用于无感BLDC风机的MP6535、用于主刷FOC控制的FT8132Q以及用于边刷的APEK4950ELJ-01-T-DK,并连接12V锂电池供电输入。
- 按照接口定义进行物理接线:连接POWER_MANAGEMENT到APP_MCU与REALTIME_MCU的3.3V/GND电源;连接APP_MCU与REALTIME_MCU之间的UART串口线(TX, RX, GND);通过SPI总线连接REALTIME_MCU与ICM-42688-P;连接LD19激光雷达的UART与PWM信号线;焊接4路TCRT5000红外防跌落传感器至REALTIME_MCU的ADC引脚。
- 完成执行机构与驱动板的对接:将左右轮驱动电机及正交编码器(PWM1, PWM2, ENC_A, ENC_B)接入DRV8833输出端;将无感BLDC风机电机接入MP6535(含PWM_GATE与BEMF_SENSE无感反电动势采样);将主刷电机接入FT8132Q(含三相PWM及电流采样);将边刷电机接入APEK4950。
固件烧录与配置
- 通过USB-to-UART下载器将FreeRTOS系统及Wi-Fi/BLE应用固件烧录至Espressif ESP32-S3-WROOM-1-N8R8中,配置本地MQTT/HTTP服务器及App通信协议。
- 通过ST-Link或SWD调试接口,将基于STM32G473VCT6的实时控制固件烧录进MCU。固件包含多轴电机FOC算法、无感BLDC控制逻辑、IMU数据滤波及安全急停I/O循环。
- 配置双MCU之间的通信协议(UART波特率设为921600或更高),验证ESP32-S3高层命令能否准确转发至STM32G473实时内核,并测试雷达串口(LD19)及IMU(SPI)的数据上报频率。
测试与调试
- 进行电源与充电系统测试:连接DC 8~14V锂电池,通过BQ25713芯片监测充电状态,使用万用表测量板载5V和3.3V稳压输出是否达标,检查过流与短路保护功能。
- 进行传感器标定与功能测试:将机器人置于悬崖模拟台架上,测试4路Vishay TCRT5000红外反射传感器的ADC模拟输入值,设定正确的跌落阈值;运行IMU(ICM-42688-P)零偏校准程序;启动LDROBOT LD19激光雷达,验证360度建图和障碍物检测数据流。
- 进行多电机FOC及无感BLDC驱动联合调试:通过PWM控制左右轮驱动电机进行正反转和PID闭环速度控制,利用正交编码器(ENC_A/ENC_B)校准里程计;测试MP6535驱动的无感BLDC风机吸力档位及反电动势(BEMF)采样;测试FT8132Q对主刷电机的FOC闭环电流及转速控制;测试A4950边刷的启停与转向。
- 系统集成路试:将整套驱动系统装入超薄扫地机器人机身,通过手机App通过Wi-Fi/BLE下发清扫指令,进行全屋自主导航、避障、沿边清扫及自动回充综合联调。
Document
智能家居扫地机器人驱动系统 (Smart home robot vacuum cleaner drive system)
基于DC 8~14V锂电池供电、支持多电机FOC与无感BLDC控制及无线通信的超薄紧凑型扫地机器人驱动系统。
设计概览
| 项目 | 内容 |
|---|---|
| 产品类型 | 智能家居扫地机器人驱动系统 |
| 核心功能 | 自主移动与路径规划, 避障与清扫, 吸尘风机电机无感BLDC驱动, 主刷/滚刷电机FOC控制, 边刷电机驱动, Wi-Fi/BLE手机APP通信 |
| 供电方式 | DC 8~14V 锂电池 |
| 连接方式 | WiFi, Bluetooth |
| 尺寸约束 | 机身高度 < 75mm |
| 使用环境 | indoor |
| 制作难度 | Advanced |
| 预计时间 | 12-16 小时 |
系统架构
供电拓扑: DC 8~14V lithium battery powers the system directly. A multi-channel DC-DC buck converter network steps down the voltage to 5V for peripherals (LiDAR) and 3.3V for MCUs and sensors. High-power motor drivers (wheel, vacuum fan, main brush, side brush) connect directly to the battery VBAT rail.
模块清单
| 模块 ID | 类型 | 名称 | 功能 | 电压 |
|---|---|---|---|---|
| POWER_MANAGEMENT | POWER | TI TPS62840 / MP2314 + BQ25713 Battery Management | Manages 8~14V lithium battery charging, provides regulated 5V and 3.3V rails for system electronics | 8-14V |
| APP_MCU | MCU | Espressif ESP32-S3 | Handles Wi-Fi/BLE app communication, local MQTT/HTTP servers, and high-level command forwarding | 3.3V |
| REALTIME_MCU | MCU | STMicroelectronics STM32G473VCT6 | Executes multi-axis FOC for main/side brushes, sensorless BLDC control for vacuum fan, and safety-critical I/O loops | 3.3V |
| IMU_SENSOR | SENSOR | TDK InvenSense ICM-42688-P | Provides gyroscope and accelerometer data for dead reckoning, orientation tracking, and tilt detection | 3.3V |
| LIDAR_SENSOR | SENSOR | LDROBOT LD19 2D LiDAR | Provides 360-degree environmental mapping and obstacle detection data | 5V |
| CLIFF_SENSORS | SENSOR | Vishay TCRT5000 IR Reflective Sensor | Detects stairs and drop-offs to prevent the robot from falling | 3.3V |
| WHEEL_DRIVE_MOTORS | ACTUATOR | Stepper/DC Drive Motors with Quadrature Encoders + DRV8833 | Drives left and right wheels for autonomous movement and odometry tracking | 12V |
| VACUUM_FAN_MOTOR | ACTUATOR | Sensorless BLDC Vacuum Fan Motor + Monolithic Power Systems MP6535 | Generates suction power using high-speed sensorless BLDC drive | 12V |
| MAIN_BRUSH_MOTOR | ACTUATOR | BLDC Main/Roller Brush Motor + TI DRV8316 | Performs FOC control on the main roller brush for floor cleaning | 12V |
| SIDE_BRUSH_MOTOR | ACTUATOR | DC Side Brush Motor + Allegro A4950 | Sweeps debris from corners and edges toward the main suction path | 12V |
关键器件
10/10 个模块已匹配到真实器件。完整 BOM 表见「BOM」标签页。
电源管理与电池充电模块 (BQ25713RSNR)
BQ25713RSNR is the exact matching part number for the BQ25713 battery management IC mentioned in the module description.
主控Wi-Fi/BLE与应用处理器 (ESP32-S3-WROOM-1-N8R8)
ESP32-S3-WROOM-1-N8R8 is a high-performance wireless module optimized for AIoT, voice recognition, and general wireless
实时电机控制与传感器MCU (STM32G473VCT6)
Candidate 1 directly matches the requested STMicroelectronics STM32G473VCT6 microcontroller.
制作概要
- 制作难度: Advanced
- 预计时间: 12-16 小时
- 所需工具: 防静电手环与工作台, 全自动锡膏印刷机与回流焊炉, 热风枪与恒温电烙铁, 立体显微镜与高倍放大镜, 数字万用表及示波器(带电流探头), ST-Link V3烧录器及USB转串口模块
完整制作步骤见「Build Guide」标签页。
Generated by YuanQi AI Design System · Query: 设计一款智能家居扫地机器人驱动系统,需在 DC 8~14V 锂电池供电下实现自主移动、路径规划、避障和清扫。需驱动三个独立电机:吸尘风机电机(21W,BLDC)、主刷/滚刷电机(约 10W,BLDC )、边刷电机(堵转电流 ≤ 1.6A ),支持 FOC 及无感 BLDC 开环控制,并通过 Wi‑Fi/BLE 与手机 APP 通信。