Hi
help please i
i have l298n motor driver and tried a lot of things but the motors is not running
and this one of the program i used
const int in1 = 2;
const int in2 = 3;
const int in3 = 4;
const int in4=5;
const int ena=8;
const int enb=9;
int Speed = 200;
void setup() {
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT);
pinMode(ena,OUTPUT);
pinMode(enb,OUTPUT);
What motors? What are you powering the driver with? Most problems we see are with not enough power, typically a small 9V battery which is no use at all for driving motors.
i try but the same problem
i mesure the voltage in the output i found it 5v it is normal and when i connect a LED ,the LED is good but when i connect a motor the voltage became 0 v (in driver and in output of arduino) i dont know why ?
please help and thank you
i did take voltage measurements around the circuit
the shutdown to 0v happen when i connect motor even just one motor the same problem keep happen all the time
i tried relay module and i use 4 motors,everything seems ok all motors work fine but when i connect even 1 motor to driver or directly to arduino nothing happen i just got 0 v
Did you check the 12V jumper? That makes it possible to provide 5V onboard.
Or do you provide the 5V from an external source, for example your Arduino?
See https://hackerstore.nl/PDFs/Tutorial298.pdf