Hello, I have a problem about L298N. RED LED on L298N is show but 2dc motors connected to the motor driver don't seem move : (
I've already attached the images (how everything connected) to my post or you can click here to see >https://imgur.com/a/c2Xm8<
my connect on board: enA = 10 in1= 9 in2=8 enB=5 in3=6 in4=7
and this is my code : // Motor A int enA = 10; int in1 = 9; int in2 = 8; // Motor B int enB = 5; int in3 = 6; int in4 = 7;
void setup() { Serial.begin(9600);
pinMode(enA,OUTPUT);
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(enB,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT); }
void loop() { // Motor A analogWrite(enA, 255);
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH); // Motor B analogWrite(enB, 255); digitalWrite(in3, LOW); digitalWrite(in4, HIGH); }
Is the power to the motor is too low? THANK YOU : )