- Stock: In Stock
- Brand: xcluma
- Model: BE-000388
- Weight: 7.00g
- MPN: BE-000388
DESCRIPTION:
onboard 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)
Example:
#include<reg51.h>
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);
}
}