HU-M15 双路电机驱动模块
(购买确认收货后联系客服获取源码程序包)
HU-M15 双路电机驱动模块
Dual Motor Drive Module
Ⅰ.产品简介 Product Introduction
HU-M15双路电机驱动模块基于TB6612FNG驱动IC设计,可实现两路电机的调速驱动,能够驱动大部分微型直流电机,适合广泛应用在各种领域。控制逻辑与L298N类似,同时模块搭载5V、3.3V供电拓展接口、驱动使能开关、电机正反转指示灯,该模块相对于传统的L298N电机驱动模块有着效率高、体积小、发热少等优点,无论是DIY制作,还是产品开发,都是非常理想的选择。
HU-M15 dual-channel motor drive module is based on the TB6612FNG drive IC design, which can realize the speed-regulated drive of two-channel motors, can drive most of the micro DC motors, and is suitable for a wide range of applications in various fields. The control logic is similar to that of L298N. At the same time, the module is equipped with 5V, 3.3V power supply expansion interface, drive enable switch, and motor forward and reverse indicator. Compared with the traditional L298N motor drive module, this module has the advantages of high efficiency, small size, and less heat generation. , Whether it is DIY production or product dev elopment, it is a very ideal choice.
Ⅱ.产品参数 Product Parameter
工作输入电压Working input voltage |
+6~12V |
工作输出电流Working output current |
单通道最高持续输出1.2A; The maximum continuous output of a single channel is 1.2A |
启动峰值电流Starting peak current |
2A/3.2A(连续脉冲/单脉冲); 2A/3.2A (continuous pulse/single pulse) |
驱动电机路数Number of drive motor |
2通道; 2 channels |
接口方式Interface method |
XH2.54端子/2.54mm间距排针 XH2.54 terminal/2.54mm pitch pin header |
模块外尺寸External dimensions of the module |
45×43(mm) |
模块定位孔尺寸(M3定位孔中心距离) Module positioning hole size (M3 positioning hole center distance) |
39×37(mm) |
模块接口介绍 Module interface introduction |
||
序号 |
标识Label |
功能描述 / Function description |
1 |
PWMA |
电机A的速度控制引脚/ Speed control pin of motor A |
2 |
PWMB |
电机B的速度控制引脚/ Speed control pin of motor B |
3 |
A1、A2 |
电机A控制信号输入/ Motor A control signal input |
4 |
B1、B2 |
电机B控制信号输入/ Motor B control signal input |
5 |
PW |
驱动电源输入/ Drive power input |
6 |
SW_EN |
驱动使能开关/ Drive enable switch |
7 |
LED_EN |
使能开关指示灯/ Enable switch indicator |
8 |
V_IN |
输入电源拓展输出/ Expanded output of input power |
9 |
+5V |
5V输出/ 5V output |
10 |
+3.3V |
3.3V输出/ 3.3V output |
11 |
AO1、AO2 |
电机A输出/ Motor A output |
12 |
BO1、BO2 |
电机B输出/ Motor B output |
Ⅲ.使用说明 Instructions
电机驱动真值表Motor drive truth table |
||||||||
A1/B1 |
0 |
1 |
1 |
0 |
||||
A2/B2 |
0 |
1 |
0 |
1 |
||||
PWMA/PWMB |
0 |
1/Pwm |
0 |
1/Pwm |
0 |
1/Pwm |
0 |
1/Pwm |
电机状态 Motor state |
停止 Stop |
停止 Stop |
停止 Stop |
制动 brake |
停止 Stop |
正转 Forward |
停止 Stop |
反转 Reverse |
程序范例Program example
注:PWMA/PWMB引脚在Arduino上需要使用带“~”的PWM接口
Note: PWMA/PWMB pins need to use the PWM
一、功能Function
1、提供2路电机驱动,每路电机可正转和反转和PWM调速。It provides 2-way motor drive, each of which can be forward and reverse and PWM speed regulation.
2、提供2路扩展接口,可接入2路红外循迹模块、2路红外避障模、超声波避障模块;需要注意的是红外循迹模块、红外避障模、超声波避障模块不能同时接入。It provides two expansion interfaces, which can be connected to 2 infrared tracking modules, 2 infrared obstacle avoidance modules and ultrasonic obstacle avoidance modules. It should be noted that infrared tracking modules, infrared obstacle avoidance modules and ultrasonic obstacle avoidance modules cannot be accessed at the same time.
3、接入2路红外循迹模块,实现小车循迹功能,提供Arduino源码。Connect to the 2-way infrared road tracking module to realize the car road tracking function and provide the Arduino source code.
4、接入2路红外避障模或超声波避障模块,实现小车避障功能,提供Arduino源码。Connect to 2-way infrared obstacle avoidance model or ultrasonic obstacle avoidance module to realize the car obstacle avoidance function and provide Arduino source code.
5、提供Arduino学习资料,红外循迹模块、红外避障模、超声波避障模块资料
提供例程。Provide Arduino learning materials, infrared tracking modules, infrared obstacle avoidance modules, and ultrasonic obstacle avoidance modules provide routines.
二、特性Characteristic
1、使用进口电机驱动芯片,持续驱动电流高达1.2A,峰值电流可达3.2A。Using the imported motor drive chip, the continuous driving current is up to 1.2 amps, and the peak current can reach 3.2 amps.
2、供电电压6~12V,可使用2颗大容量18650电池,续航更持久。The power supply voltage is 6~12 volts, and two large-capacity 18650 batteries can be used for a longer battery life.
3、可做前进、后退、左转、右转等动作。It can move forward, backward, turn left and right.
三、使用说明Instructions for use
注意:电机正负极接线会因为小车上电机的安装方向、结构等不同而不同,如果发现电机方向不对时,请调整电机正负极接线。Note: The positive and negative connection lines of the motor will be different due to the installation direction, structure, etc. If you find that the motor rotates in the wrong direction, please adjust the positive and negative connection lines of the motor.
1、循迹功能(默认寻黑线)Tracking function of road recognition (default identification: black line)
(1)、接线Conductor connection
(2)、载入循迹实验程序即可。It is enough to load the experimental procedure of road identification.
2、红外避障模块Infrared obstacle avoidance module
(1)、接线Conductor connection
(2)、载入红外避障实验程序即可。Just load the program of the infrared obstacle avoidance experiment.
3、超声波避障Ultrasound obstacle avoidance
(1)、接线Conductor connection
(2)、载入超声波避障实验程序即可Load the experimental program of ultrasonic obstacle avoidance.