Home >>
Microcontroller L9110S Chip Stepper Step Motor Driver Board
Feature:
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);
}
}
- Low static work current
- Power supply voltage: DC2.5-12V
- Each channel has 800mA continuous current output
- Low saturation pressure drop
- TTL/CMOS output level compatible, can be connected directly to the CPU
- Output built-in clamping diode, apply to the perceptual load
- Control and drive integrate in IC
- Have pin high pressure protection function
- Working temperature: 0-80 °C
- Size:29.2(mm)x23(mm)
Package Included:
1 x H-bridge Stepper Motor Dual DC Motor Driver Controller Board HG7881 For51 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);
}
}
| Voltage | DC 2.5V to 12V |
| MPN | Does Not Apply |
| Country of Manufacture | CHINA |
| Material | Plastic & Electronic Parts |
| Net Weight | 7g |
| Package Content | 1 x Step Motor Driver Board |
| Brand | Uxcell |
| Main Color | Green, Blue |
| Hole Dia. | 3mm / 0.12" |
| Hole Distance | 1.8 x 1.5 cm / 0.7" x 0.6" (L*W) |
| Total Size | 3 x 2.3 x 1.4 cm / 1.2" x 0.9" x 0.6" (L*W*H) |
