yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
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
Get started quickly
  • 03.P, PI, PD controller theory
  • 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
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
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)
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
Circuit design
  • 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
Mathematical model
  • Balance car mathematical model
4.4-channel motor drive module
Introduction and Debug
  • 1.Introduction to 4-channel motor drive board
  • 2.Control command
  • 3.Motor introduction and usage
  • 4.PC host
IIC communication
  • For Arduino
  • For ESP32
  • For Jetson NANO
  • For MSPM0G3507
  • For MSPM0G3519new
  • For PICO2
  • For RDK X5
  • For RPi5
  • For STM32
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

3.Motor introduction and usage

Motor introduction and usage

This course is used to explain the parameters of the motor, the recommended supply voltage, and the recommended wiring method for connecting the motor to the 4-channel motor driver board.

Motor introduction and usage1. 520 motor2. 310 motor3. DC TT Motor4. TT motor with encoder speed measurement5. L-type 520 motor

1. 520 motor

ParameterMD520Z19_12VMD520Z30_12VMD520Z56_12V
Rated voltage12V12V12V
Motor typePermanent magnet brushPermanent magnet brushPermanent magnet brush
Output shaft6mm diameter D-type eccentric shaft6mm diameter D-type eccentric shaft6mm diameter D-type eccentric shaft
Stall torque3.1kg·cm4.8kg·cm8.3kg·cm
Rated torque2.2kg·cm3.3kg·cm6.5kg·cm
Speed before deceleration11000rpm11000rpm12000rpm
Speed after deceleration550±10rpm333±10rpm205±10rpm
Rated power≤4W≤4W≤4W
Stall current3A3A4A
Rated current0.3A0.3A0.3A
Gear set reduction ratio1:191:301:56
Encoder typeAB phase incremental Hall encoderAB phase incremental Hall encoderAB phase incremental Hall encoder
Encoder supply voltage3.3-5V3.3-5V3.3-5V
Magnetic loop number11 line11 line11 line
Interface typePH2.0 6PinPH2.0 6PinPH2.0 6Pin
FunctionWith built-in pull-up shaping, the MCU can directly read the signal pulseWith built-in pull-up shaping, the MCU can directly read the signal pulseWith built-in pull-up shaping, the MCU can directly read the signal pulse
Single motor weight150g±1g150g±1g150g±1g

Recommended power supply: 12V.

There are three types of 520 motors, and their rated voltage is 12V. When we drive the 520 motor, we can connect a voltage between 11 and 16V, and it is recommended to use a 12V voltage supply**.

If you want to distinguish the model of the 520 motor you bought, you can directly look at the label printed on the 520 motor. There is a text printed on it called RPM, and the number in front of RPM corresponds to the speed after deceleration number in the parameter table.

For example, the label of the 520 motor in my hand says 333RPM, so you should pay attention to the parameters in the MD520Z30_12V column. In particular, the two parameters of reduction ratio and number of magnetic ring lines may be modified when using a 4-channel motor driver board.

Recommended wiring:

The 520 motor you purchased will come with two types of cables. Here we recommend that you choose the black PH2.0-6PIN double-ended cable, one end connected to the motor, and the other end directly connected to the PH2.0-6PIN encoder motor interface on the four-way motor driver board. We can find that the A on the motor corresponds to the B phase of the four-way motor driver board.

So when configuring the motor type on the four-way motor driver board, you should choose $mtype:1#, the model of the 520 motor.

520 motor wiring instructions:

If you use PH2.0-6PIN to Dupont line connection, you can connect according to the picture below. With this connection, the motor phase A will be connected to the four-way motor driver board phase A, and phase B will be connected to phase B.

However, when configuring the motor type, you should select $mtype:2#, the model of the 310 motor.

 

 

2. 310 motor

ParameterValue/description
Motor nameMD310Z20_7.4V
Stall current≤1.4A
Motor rated voltage7.4V
Rated current≤0.65A
Motor typePermanent magnet brush
Gear set reduction ratio1:20
Output shaft3mm diameter D-type eccentric shaft
Encoder typeAB phase incremental Hall encoder
Stall torque≥1.0kg·cm
Encoder supply voltage3.3-5V
Rated torque0.4kg·cm
Magnetic loop number13 line
Speed before deceleration9000rpm
Interface typePH2.0 6Pin
FunctionsWith built-in pull-up shaping, the MCU can directly read the signal pulse
Speed after deceleration450±10rpm
Rated power4.8W
Single motor weight70g

Recommended power supply: 7.4V. It can be connected to a voltage between 4.2~8.4V, recommended to use a voltage of 7.4V.

The two parameters reduction ratio and number of magnetic ring lines in the main parameter table are required. These two parameters may be modified when using a four-way motor driver board.

If you buy a 310 motor alone, you will receive a PH2.0-6PIN to DuPont cable. When connecting a 4-channel driver board, connect it to its IO socket.

310 motor wiring instructions:

When the A phase of the 310 motor is connected to the A phase of the 4-channel motor driver board, and the B phase is connected to the B phase, then when configuring the motor type, you should select $mtype:2#, the model of the 310 motor.

 

If you purchased the 310 motor in the chassis kit, it has a PH2.0-6PIN double-ended cable. You can connect the black end to the 310 motor and the white end to the PH2.0-6PIN encoder motor interface on the 4-channel motor driver board.

At this time, select $mtype:2# to configure the motor type, which is the model of the 310 motor.

 

3. DC TT Motor

ParameterValue/Description
ModelTT gear motor
Brush materialCarbon brush
Reduction ratio1:48
Rated voltage6V
Idle current200MA
Stall current1.5A
Torque0.8N.m
Speed before deceleration12000±10%rpm
Speed after deceleration245±10%rpm

Recommended power supply: 7.4V

This motor has no encoder, so you only need to modify motor type and reduction ratio in the four-way motor driver board. When configuring the motor type, select $mtype:4#, the TT motor model without encoder.

Recommended wiring: Connect the XH2.54-2PIN interface on the TT motor directly to the XH2.54-2PIN socket on the 4-channel motor driver board.

 

 

 

4. TT motor with encoder speed measurement

ParameterValue/Description
Model13-wire metal single-axis TT motor
Motor type130 Motor
Motor type/brush materialCopper brush
Reduction ratio1:45
Rated voltage6V
No-load current0.08A
Rated current0.3A
Stall current1.1A
Torque1.2N.m
Speed before deceleration16000±5%rpm
Speed after deceleration355±5%rpm
Encoder typeHall AB phase encoder
Encoder power supply3.3-5V
Encoder line number13 line
Maximum count per wheel revolution2340
FeaturesWith built-in pull-up shaping, the MCU can read directly

Recommended power supply: 7.4V. It can be connected to 5~13V, recommended to use 7.4V voltage power supply.

The two parameters reduction ratio and encoder line number in the main parameter table are required. These two parameters may be modified when using the 4-channel motor driver board.

Recommended wiring: Use the PH2.0-6PIN to DuPont line cable and connect it to the IO socket of the 4-channel motor driver board.

Wiring instructions for encoder speed measurement TT motor:

When the A phase of the encoder TT motor is connected to the A phase of the four-way motor driver board, and the B phase is connected to the B phase, then when configuring the motor type, you should select $mtype:3#, the model of the TT motor with encoder.

5. L-type 520 motor

ParameterValue/Description
ModelL-type 520 motor
Starting voltage6V
Rated voltage12V
Reduction ratio1:40
Magnetic loop number11线
No-load current≥450mA
No-load speed300r/min±5%
Rated torque4.4KG.CM
Rated speed150r/min
Stall torque10KG.CM
Stall current4A

Recommended power supply: 12V.

The two parameters reduction ratio and encoder line number in the main parameter table are required. These two parameters may be modified when using the 4-channel motor driver board.

Recommended wiring: The purchased L-type 520 motor will come with two types of wires. Here we recommend that you choose the black PH2.0-6PIN double-headed cable, one end is connected to the motor, and the other end is directly connected to the PH2.0-6PIN encoder motor interface on the 4-channel motor driver board.

This wiring is the most convenient, but it can be found that the A on the motor corresponds to the B phase of the 4-channel motor driver board. Therefore, when configuring the motor type on the 4-channel motor driver board, you should choose $mtype:1#, the model of the 520 motor.

L-type 520 motor wiring instructions:

If you use PH2.0-6PIN to Dupont line connection, you can connect according to the picture below. With this connection, the motor's A phase will be connected to the 4-channel motor driver board A phase, and B phase will be connected to B phase.

However, when configuring the motor type, you should select $mtype:2#, the model of the 310 motor.

Control command
PC host

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
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文