Arduino Nano and L298n Motor Drivers Not working

Okay. What do you observe with this wiring and the code from Post #16?

The code variables match with the arduino pins

How does it perform when powered?

When I run the script, the motor doesn't spin

Your wiring is incorrect (probably) or your power supply is bad (insufficient). Do not use a recharge-powerbank meant for a phone.

Post a clear photograph of your project.

Sorry, I age you the wrong picture with different wiring here is the correct ones



Picture 3 looks like a phone charger. What is the current it can supply? The rasin I ask: motors and your notir driver need two or more amps. A phone charger might allow 1 amp.

These are the plug ins:

Okay. 3 amps. That is good.

Your wires are not correct.

im using the out 2 which supplies 36W and can be 5v 3a or 9v 3a or 12v3a

Only when your wiring is good, will this work.

What is the motor? A fan? How many amps does it need?

but i don't understand what is wrong with my wiring when i do the code it matches with the arduino pin

5v 0.10amp fan motor

Remove all the wires and re-install them.

so i still keep the wiring the same? sorry im not understanding "re-install" the wires

If your power supply is good and your code is good, your motor is broken or your wiring is bad.

There is no confusion. You must ensure you did your work correctly

i just tried a different motor with it and it still doesn't work, ive tried other tutorials and their code and wiring and i've still not been able to get the motor to spin

Wiring. What is your motor?

dc brushless motor