FAQ

Here's what you need to know to make this gadget work:Pins:Vcc | Vcc (compatible with 3.3v or 5v power)PWM1 | PWM2 (PWM input for motors 1 and 2)INA1 | INA2 (motors 1 and 2 control...

userHead JaneYu 2020-09-27 22:50:21 33 Views9 Replies

Here's what you need to know to make this gadget work:

Pins:
Vcc | Vcc (compatible with 3.3v or 5v power)
PWM1 | PWM2 (PWM input for motors 1 and 2)
INA1 | INA2 (motors 1 and 2 control logic input A)
INB1 | INB2 (motors 1 and 2 control logic input B)
GND | GND

Run logic:
INAx low, INBx low - motor stopped
INAx low, INBx high - motor forward
INAx high, INBx low - motor reverse

State LED:
Steady light: normal operation; fast flashing; power supply overvoltage, output is off;
slow flashing: power supply undervoltage, output is off; double flashing: drive overheating, output is off;

Sample code:

/*
This sample code is for testing the 2 stepper motors
The rotation velocity can be adjusted by the code switch
Microcontroller: Arduino UNO
*/
int PWM1 = 2;
int INA1 = 3;
int INB1 = 4;
int PWM2 = 5;
int INA2 = 6;
int INB2 = 7;
void setup()
{
pinMode(PWM1, OUTPUT);
pinMode(INA1, OUTPUT);
pinMode(INB1, OUTPUT);
pinMode(PWM2, OUTPUT);
pinMode(INA2, OUTPUT);
pinMode(INB2, OUTPUT);
}
void loop()
{
digitalWrite(INA1, LOW);
digitalWrite(INA2, LOW);
digitalWrite(INB1, HIGH);
digitalWrite(INB2, HIGH);
analogWrite(PWM1, 255); //PWM Speed regulation
analogWrite(PWM2, 255); //PWM Speed regulation
delay(1000);
digitalWrite(INA1, LOW);
digitalWrite(INB1, HIGH); //Motor 1 forward
digitalWrite(INA2, HIGH);
digitalWrite(INB2, LOW); //Motor 2 reverse
analogWrite(PWM1, 255); //PWM Speed regulation
analogWrite(PWM2, 255); //PWM Speed regulation
delay(1000);
digitalWrite(INA1, LOW);
digitalWrite(INB1, LOW); //Motor 1 stopped
digitalWrite(INA2, LOW);
digitalWrite(INB2, LOW); //Motor 2 stopped
analogWrite(PWM1, 255);
analogWrite(PWM2, 255);
delay(1000);
}

2023-12-12 22:42:19

Any chance I could get the a BOM (bill of material) for the board?

userHeadPic JaneYu
2023-07-01 04:29:22

i can use this board for the wheels? https://www.dfrobot.com/pro...

userHeadPic JaneYu
2023-06-14 14:57:11

Do you have a .step file of this product

userHeadPic JaneYu
2023-04-25 12:57:01

This driver could only accept the 6.5~37V DC.
So if you use the 40V battery, this could damage to the driver.

userHeadPic JaneYu
2022-03-28 13:39:31

Believe I Have a similar issue.
Our 12V motors respond as if the board is using the PWM pin as on/off, and are only being supplied the voltage from the logic voltage pins.
Our directional controls work, so our pins are correct.
But when pwm pins are set at 0-127, the motors are completely off. At 128-255 they run at 5V if the logic is on a 5V pin on arduino, or 3.3V if on the 3.3V pin.
Not only do they not respond to the pwm signal for speed control, they don’t appear to have access to the actual 12V supply we are giving it at all, but using the voltage on the logic pins?

userHeadPic JaneYu
2021-12-30 07:45:36

anyone have the pinout of this shield?

userHeadPic JaneYu
JaneYu wrote:

Pins:
Vcc | Vcc (compatible with 3.3v or 5v power)
PWM1 | PWM2 (PWM input for motors 1 and 2)
INA1 | INA2 (motors 1 and 2 control logic input A)
INB1 | INB2 (motors 1 and 2 control logic input B)
GND | GND

2022-02-18 16:25:14
1 Replies
2021-10-21 04:25:22

What is the maximum PWM frequency?

userHeadPic JaneYu