I am unable to control 2 DC motors in the same time with a L9110. If I enable the pinMode(B1A, OUTPUT) and pinMode(B1B, OUTPUT) lines, the motors does not work. Works only if I enable only Motor A or Motor B, separately. Also tried pins 2,3 - 10,11, 8,9 - 10,11.
If all 4 pinMode lines are enabled, I can not control even one.
const int A1A = 3;
const int A1B = 2;
const int B1A = 8;
const int B1B = 9;
void setup() {
// put your setup code here, to run once:
pinMode(A1A, OUTPUT);
pinMode(A1B, OUTPUT);
// pinMode(B1A, OUTPUT);
// pinMode(B1B, OUTPUT);
}
void loop() {
// Motor A
digitalWrite(A1A, HIGH);
digitalWrite(A1B, LOW);
delay(2000);
digitalWrite(A1A, LOW);
digitalWrite(A1B, HIGH);
delay(1000);
digitalWrite(A1A, LOW);
digitalWrite(A1B, LOW);
// Motor B
// digitalWrite(B1A, HIGH);
// digitalWrite(B1B, LOW);
//
// delay(2000);
// digitalWrite(B1A, LOW);
// digitalWrite(B1B, HIGH);
//
// delay(1000);
//
// digitalWrite(B1A, LOW);
// digitalWrite(B1B, LOW);
//
// delay(1000);
}
Attached you find the diagram. Originally posted I did not add the black wire marked with red "X". If I add it, the 2 motors work, but the motor driver gets overheated, and the red led on it gets lower and lower, and then stops the led and motors, too.
The Arduino is powered from USB 2.0 and the power source is a 2 x 18650,3.7v,2.2ah, in series.
Can't find any stall/running current specs for those motors.
You can measure the motor resistance with a DMM, and work if out yourself.
It's most likely about 2-3ohm, so a stall of ~2Amp with battery/wiring/driver losses.
The (<800mA) L9110 is likely as bad (worse) as the L293D.
Leo..
The L9110, the L293D and the L298N are all lossy/weak/ancient BJT-based devices (not modern mosfet), but they are cheap, so everybody is using them. The L298 being the most powerful one.
No experience with the motors you're using, so can't recommend a driver.
Did you measure motor resistance with a DMM?
Leo..
Note that the typical loss of an L9110 is almost 2volt@750mA.
You might only have about 2volt left on the motor with one LiPo cell, but three times that with two cells.
Leo..