(详情提供中英文描述)
中文描述:
一 模块描述
1 双L9110S芯片的电机驱动
2 模块供电电压:2.5-12V
3 适合的电机范围:电机工作电压2.5v-12V之间,大工作电流0.8A,目前市面上的智能小车电压和电流都在此范围内
4 可以同时驱动2个直流电机,或者1个4线2相式步进电机。
5 PCB板尺寸:2.8cm*2.1cm 超小体积,适合组装
6 设有固定安装孔,直径:3mm
二 模块接口说明
【6P黑色弯排针说明】
1 VCC 外接2.5V-12V电压
2 GND 外接GND
3 IA1 外接单片机IO口
4 IB1 外接单片机IO口
5 IA2 外接单片机IO口
6 IB2 外接单片机IO口
【4P绿端子说明】
1 OA1 OB1 接直流电机2个引脚,无方向
2 OA2 OB2 接直流电机2个引脚,无方向
三 模块使用说明
接通VCC,GND 模块电源指示灯亮
IA1输入高电平,IA1输入低电平,【OA1 OB1】电机正转;
IA1输入低电平,IA1输入高电平,【OA1 OB1】电机反转;
IA2输入高电平,IA2输入低电平,【OA2 OB2】电机正转;
IA2输入低电平,IA2输入高电平,【OA2 OB2】电机反转;
参考代码:
int a1=17;
英文描述:
Description:
On board two the L9110S motor control chip
the module can simultaneously drive two DC motors or a 4-wire 2-phase stepper motor
the module input voltage :2.5-12V
the 800mA continuous current output capability per channel
1. Low static work current
2. Power supply voltage: DC2.5-12V
3. Each channel has 800mA continuous current output
4. Low saturation pressure drop
5. TTL/CMOS output level compatible, can be connected directly to the CPU
6. Output built-in clamping diode, apply to the perceptual load
7. Control and drive integrate in IC
8. Have pin high pressure protection function
9. Working temperature: 0-80 °
10.Size:29.2(mm)x23(mm)
51 test code:
#include
sbit MOTOR_A_1 = P0 ^ 0;
sbit MOTOR_A_2 = P0 ^ 1;
sbit MOTOR_B_1 = P0 ^ 2;
sbit MOTOR_B_2 = P0 ^ 3;
void delay(unsigned long cnt)
{
while(cnt--);
}
void forward(void)
{
MOTOR_A_1 = 1;
MOTOR_A_2 = 0;
MOTOR_B_1 = 1;
MOTOR_B_2 = 0;
}
void backward(void)
{
MOTOR_A_1 = 0;
MOTOR_A_2 = 1;
MOTOR_B_1 = 0;
MOTOR_B_2 = 1;
}
void main(void)
{
EX0 = 1;
EX1 = 1;
EA = 1;
while(1)
{
forward();
delay(30000);
backward();
delay(30000);
}
}
图片展示: