STMicroelectronics STM32F405RG
Smart Urban Electric Commuter Scooter
Overview
Design a mid-range smart electric scooter for urban commuting featuring speed control, BMS, GPS tracking, regenerative braking, smart lighting, and Bluetooth connectivity.
System architecture
- BMS_PACK → POWER_REGPowerHigh voltage DC link supplying the power regulator and motor inverter
- POWER_REG → MCU_MAINPowerSupplies regulated 3.3V power to the main MCU
- MCU_MAIN → MOTOR_INVERTERPWMComplementary PWM signals for 3-phase half-bridge gate drivers
- MCU_MAIN → IOT_MODULEUARTSerial communication for telemetry, GPS data, and Bluetooth control commands
- MCU_MAIN → IMU_SENSORI2CI2C bus for motion and anti-theft vibration detection
- MCU_MAIN → DISPLAY_DASHUARTDashboard telemetry output and analog/digital throttle input reading
- BMS_PACK → MCU_MAINUARTBattery telemetry and safety status reporting over CAN bus
Bill of materials
| Part number | Type | Component | Manufacturer | Package | Qty | Datasheet | Match |
|---|---|---|---|---|---|---|---|
| MIKROE-3540 | MCU | STMicroelectronics STM32F405RG Handles FOC motor control, sensor reading, safety loops, and coordinates vehicle subsystems | Mikroe | — | 1 | Matched | |
11 alternatives consideredAI verified | |||||||
| ESP32-WROOM-32E(M113EH3200PS3Q0) | MODULE | ESP32-WROOM-32E & Cellular LTE-M/NB-IoT (Quectel BG95) Provides Bluetooth for phone connectivity and Cellular IoT for GPS anti-theft tracking and cloud telemetry | Espressif Systems | SMD-38P | 1 | Matched | |
28 alternatives consideredAI verified | |||||||
| BQ76952PFBR | POWER | Li-Ion Battery Pack with Open-Source BMS Provides primary energy storage with cell monitoring, balancing, and CAN telemetry | Texas Instruments | TQFP-48 | 1 | Matched | |
10 alternatives consideredAI verified | |||||||
| IRFB7730PBF | ACTUATOR | 3-Phase Inverter Stage (TI UCC27211A Gate Driver & Infineon IRFB7730 MOSFETs) Drives the brushless DC motor for propulsion and executes regenerative braking | Infineon | TO-220AB | 1 | Matched | |
11 alternatives consideredAI verified | |||||||
| MPU-6050 | SENSOR | TDK InvenSense MPU6050 Provides motion tracking for anti-theft geofencing and vehicle attitude detection | TDK InvenSense | 24-pin QFN | 1 | Matched | |
18 alternatives consideredAI verified | |||||||
| LTC3639EMSE#TRPBF | POWER | Step-Down Buck Regulator (TI LM5164) Steps down 36V battery voltage to 5V and 3.3V for MCU, sensors, and IoT modules | Analog Devices, Inc. | 16-TFSOP (0.118", 3.00mm Width), 12 Leads, Exposed | 1 | Matched | |
7 alternatives consideredAI verified | |||||||
| CH340G | DISPLAY | UART LED Dashboard & Throttle Module Displays speed and battery status while reading user throttle inputs | WCH | SOP-16 | 1 | Matched | |
7 alternatives consideredAI verified | |||||||
Build guide
Procurement & Preparation
- Source and inspect the core microcontrollers and IoT subsystems including STMicroelectronics STM32F405RG (MIKROE-3540) and ESP32-WROOM-32E modules for any visual defects or bent pins.
- Procure power distribution and switching components including TI LM5164 (LTC3639EMSE#TRPBF), TI UCC27211A Gate Drivers, and Infineon IRFB7730 MOSFETs (IRFB7730PBF) for the 3-phase inverter stage.
- Inspect the Li-Ion Battery Pack equipped with the BQ76952PFBR BMS, TDK InvenSense MPU6050 motion tracking sensor, and UART LED Dashboard with CH340G interface.
Hardware Assembly & Wiring
- Mount the Step-Down Buck Regulator (TI LM5164) and wire the power input from the BMS_PACK (BAT_PLUS, GND) to step down the 36V battery voltage to stable 5V and 3.3V rails for the MCU.
- Connect the STM32F405RG main microcontroller to the 3-Phase Inverter Stage using PWM control signals (PWM_UH, PWM_UL, PWM_VH, PWM_VL, PWM_WH, PWM_WL) to drive the brushless DC motor.
- Wire the communication peripherals: connect the ESP32 & Cellular IoT module via UART (TX, RX, GND), the MPU6050 sensor via I2C (SDA, SCL, VCC, GND), and the BMS pack via CAN bus (CAN_H, CAN_L, GND) to the MCU main board.
- Connect the UART LED Dashboard & Throttle Module to the MCU main board using TX, RX, THROTTLE_ADC, and GND lines for real-time speed, battery display, and throttle input acquisition.
Firmware Setup
- Flash the Field-Oriented Control (FOC) motor control firmware, sensor reading routines, and safety loops onto the STMicroelectronics STM32F405RG core.
- Configure and flash the ESP32-WROOM-32E and Quectel BG95 cellular module firmware to establish Bluetooth smartphone pairing, cloud telemetry, and GPS anti-theft geofencing tracking.
- Upload configuration parameters to the Open-Source BMS (BQ76952PFBR) for precise cell monitoring, voltage balancing thresholds, and overcurrent protection safety limits.
Testing & Calibration
- Perform bench power-up testing using a regulated DC power supply to verify the 5V and 3.3V outputs from the TI LM5164 step-down buck regulator.
- Calibrate the TDK InvenSense MPU6050 attitude sensor and test anti-theft geofencing responses against simulated movement.
- Perform no-load motor spin tests using the UART throttle module and 3-phase inverter stage, tuning the FOC PID loops for smooth acceleration and regenerative braking performance.
- Conduct end-to-end integration testing by connecting the mobile app via Bluetooth, verifying real-time telemetry over Cellular IoT, and checking dashboard speed and battery status readouts.
Document
smart electric scooter
Design a mid-range smart electric scooter for urban commuting featuring speed control, BMS, GPS tracking, regenerative braking, smart lighting, and Bluetooth connectivity.
Design Overview
| Item | Details |
|---|---|
| Product Type | smart electric scooter |
| Key Functions | speed control, battery management, GPS anti-theft tracking, regenerative braking, smart lighting, Bluetooth phone connectivity |
| Power Source | Li-Ion Battery |
| Connectivity | Bluetooth, Cellular IoT (LTE-M/NB-IoT) |
| Size | 12-20 kg standard commuter balance with folding mechanism |
| Environment | outdoor |
| Difficulty | Advanced |
| Est. Time | 6-8 hours |
System Architecture
Power Topology: The power architecture uses a 36V Li-Ion battery pack as the main energy source, directly feeding the high-power 3-phase MOSFET inverter stage for motor drive and regenerative braking. A high-voltage step-down buck regulator (TI LM5164) converts the 36V battery voltage down to a stable 5V and 3.3V distribution bus to power the STM32F405RG MCU, IoT cellular/Bluetooth modules, sensors, and the display dashboard.
Module List
| Module ID | Type | Name | Function | Voltage |
|---|---|---|---|---|
| MCU_MAIN | MCU | STMicroelectronics STM32F405RG | Handles FOC motor control, sensor reading, safety loops, and coordinates vehicle subsystems | 3.3V |
| IOT_MODULE | MODULE | ESP32-WROOM-32E & Cellular LTE-M/NB-IoT (Quectel BG95) | Provides Bluetooth for phone connectivity and Cellular IoT for GPS anti-theft tracking and cloud telemetry | 3.3V |
| BMS_PACK | POWER | Li-Ion Battery Pack with Open-Source BMS | Provides primary energy storage with cell monitoring, balancing, and CAN telemetry | 36V |
| MOTOR_INVERTER | ACTUATOR | 3-Phase Inverter Stage (TI UCC27211A Gate Driver & Infineon IRFB7730 MOSFETs) | Drives the brushless DC motor for propulsion and executes regenerative braking | 36V |
| IMU_SENSOR | SENSOR | TDK InvenSense MPU6050 | Provides motion tracking for anti-theft geofencing and vehicle attitude detection | 3.3V |
| POWER_REG | POWER | Step-Down Buck Regulator (TI LM5164) | Steps down 36V battery voltage to 5V and 3.3V for MCU, sensors, and IoT modules | 36V_to_3.3V |
| DISPLAY_DASH | DISPLAY | UART LED Dashboard & Throttle Module | Displays speed and battery status while reading user throttle inputs | 3.3V |
Key Components
7/7 modules matched to real parts. See the BOM tab for the full component table.
STMicroelectronics STM32F405RG (MIKROE-3540)
None of the provided candidates are a match for the raw STMicroelectronics STM32F405RG microcontroller chip; the list co
Li-Ion Battery Pack with Open-Source BMS (BQ76952PFBR)
BQ76952PFBR directly matches the BQ76952 component mentioned in the module description for a Li-Ion Battery Pack with Op
Step-Down Buck Regulator (TI LM5164) (LTC3639EMSE#TRPBF)
LTC3639EMSE#TRPBF is a high-voltage step-down DC/DC regulator comparable in function to the LM5164 for stepping down 36V
Build Summary
- Difficulty: Advanced
- Estimated time: 6-8 hours
- Tools required: Antistatic Mat, Digital Microscope, ESD Wrist Strap, Digital Multimeter, Soldering Iron, Precision Soldering Iron
See the Build tab for the full step-by-step assembly guide.
Generated by YuanQi AI Design System · Query: I want to design a smart electric scooter that can support speed control, battery management, GPS anti-theft tracking, regenerative braking, smart lighting, and connect to a phone via Bluetooth.