yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
520 Motor📖
1.About motor
  • About motor
2.ROS robot control board drive
  • 2.1 Control motor
  • 2.2 Timer captures encoder data
  • 2.3 PID control robot car
  • 2.4 Kinematic Analysis-Mecanum wheel structure
  • 2.5 Kinematic Analysis-Ackerman structure
  • 2.6 Kinematic Analysis-4WD structure
3.STM32 Self-balancing car tutorials
Circuit design
  • 03.P, PI, PD controller theory
  • 01.Overall circuit design
  • 02.STM32 minimum system
  • 03.Serial port circuit design
  • 04.Power circuit design
  • 05.MPU6050 Circuit Design
  • 06.Motor drive circuit design
Environment construction and development
  • 01.MDK-ARM installation
  • 02.STM32CubeIDE installation
  • 03.Common driver installation
  • 04.Download the program
  • 05.MDK-ARM project usage
  • 06.Program simulation
Get started quickly
  • 01.Balancing car assembly
  • 02.Get started quicklyy
  • 03.Balance car interface description
  • 04.Common Problem Analysis
  • 05.Balance Car V2 Library Function Development Manual
Mathematical model
  • Balance car mathematical model
Robot car basic course
  • 01.Car parameter adjustment
  • 02.Ultrasonic obstacle avoidance
  • 03.Ultrasonic follow
  • 04.Bluetooth remote control
  • 05.Load balance
Robot car LQR control
  • Robot car LQR control
Robot car PID control course
  • 01.PID basic concept
  • 02.PID example analysis
  • 04.Position PID
  • 05.Incremental PID
  • 06.Cascade PID
  • 07.Balance principle of car
  • 08.Car upright control (PD)
  • 09.Car speed ​​control (PI)
  • 10.Car steering control (PD)
  • 11.Got angle and angular velocity (DMP algorithm)
  • 12.Got angle and angular velocity (Kalman filter algorithm)
  • 13.Got angle and angular velocity(Complementary filter algorithm)
4.4-channel motor drive module
IIC communication
  • For Arduino
  • For ESP32
  • For Jetson NANO
  • For MSPM0G3507
  • For MSPM0G3519new
  • For PICO2
  • For RDK X5
  • For RPi5
  • For STM32
Introduction and Debug
  • 1.Introduction to 4-channel motor drive board
  • 2.Control command
  • 3.Motor introduction and usage
  • 4.PC host
USART communication
  • For Arduino
  • For ESP32
  • For Jetson NANO
  • For MSPM0G3507
  • For MSPM0G3519new
  • For PICO2
  • For RDK X5
  • For RPi5
  • For STM32
5.2-channel motor drive module
For MSPM0G3507
  • 1.AT8236 drive tutorials
  • 2.TB6612 drive tutorials
For MSPM0G3519
  • 1.AT8236 drive tutorialsnew
  • 2.TB6612 drive tutorialsnew
Download
  • Model File
  • Annex_ROS_robot_board
  • Annex_STM32_balancing_car
  • Annex_4channel_motor_drive
  • Annex_2channel_motor_drive
Download ZIP

Welcome to 520 Motor repository

04.Power circuit design

Power circuit design

Power circuit designPower supply circuitVoltage detection

The balancing car is powered by a 12V lithium battery with an output voltage of 12V; we need to step down the 12V voltage input from the DC port to 5/3.3V for the development board.

Power supply circuit

Use the step-down chips MP2225 and AMS1117 to provide stable 5V and 3.3V power to the development board.

MP2225: supports a wide input operating voltage range of 4.5-18V → steps down the 12V voltage of the DC port to output a stable 5V voltage → supply voltage for some module interfaces;

AMS1117: further steps down the stable 5V voltage to 3.3V → for the main control chip.

image-20240829171507320

Voltage detection

Use ADC to collect voltage with a maximum range of 3.3V. To measure the battery pack voltage, the voltage after voltage division needs to be given to the ADC detection channel, and finally the actual battery pack voltage is calculated by the voltage division formula.

Referring to the hardware schematic diagram, we can see that: Current equality principle

()Icurrent=VBATR16=VMR16+R14⟹VBAT3.3=VM10+3.3⟹VM=VBAT∗(10+3.3)3.3
()Thatis,theactualvoltage=VM=VBAT∗(10+3.3)3.3
ADC input range is: VREF- ≤ VIN ≤ VREF+
Generally, VSSA and VREF- are grounded, VREF+ and VDDA are connected to 3V3, and the input voltage range of the ADC is: 0~3.3V

image-20240822173916968

Serial port circuit design
MPU6050 Circuit Design

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文