When using l298n to build a car "OUT" pins do not have any voltage

When using the l298n to create a car the "OUT" pins on the l298n are not receiving any voltage. Using a multimeter I checked this and voltage is at VCC and GND, and all of the "IN" pins on l298n however to make the motors move the "OUT" pins are connected to the motors. However it is not getting any voltage which is not allowing the circuit to work.

The tutorial I am using is:

https://create.arduino.cc/projecthub/ryanchan/how-to-use-the-l298n-motor-driver-b124c5

and I used

and I also tried the same thing with a battery connected to VCC and GND of l298n. I also replaced the board. Any help?

You seem to have connected the 5V pin from your Uno to the 12V pin on the l298 board?

Normally you would supply 12V from a power supply to the l298 board and then you can optionally supply 5V from the 5V connector of the board to the 5V pin of the Arduino.

Ive tried with and without a battery none of them work

Tell us what battery you used and show us how everything was connected.

0-3



Uploading: 0-1.jpeg...

Wow! Lots of wires. Where are they all going? Please update your wiring diagram. A schematic would be best, but at least with your wiring diagram we could see what was connected to what.

I see 4 motors. L298 can only drive 2. How are the other 2 motors wired?

Are those rechargeable AA cells?

Yes sorry, the wiring is a bit of a mess but the pins are:

arduino 5V = l298n 5V
arduino GND = l298n GND
arduino pin 2 = IN1
arduino pin 3 = IN2
arduino pin 4 = IN3
arduino pin 5 = IN4
battery 9V = VCC
battery GND = L298n GND

The other motors are connected by 2 motors connected to one OUT pin
and yes they are rechargeable

Sorry these batteries are not rechargeable, but I u want I can use rechargeable ones

I don't see that anywhere?

4x AA rechargeable will be around 4.8~5V. Not enough for the 7805 regulator on the l298 board to output 5V, maybe only 3~3.5V. That won't be enough to run an Uno reliably.

By the way, why are you using an Uno? I don't see any kind of "shield" in your pictures. A shield is a PCB with the same form factor as Uno and fits on top of the Uno. If you are not using a shield, an Uno is not very convenient at all, especially if you want to use breadboards,!

I would always recommend to use rechargeables wherever possible, for the health of our planet.

4x AA non-rechargeables would be around 6V, still not enough for the 7805 regulator to make 5V. But you might get 4.5V from it, which would probably power the Uno ok.

Using the multimeter it is around 7V and the l298N is connected to the battery
Screen Shot 2022-03-06 at 20.28.21

Additionally right now I just want the car to work so I do not need a shield

Maybe when your batteries are fresh, but for most of their all-to-short lives they will be around 1.5V each, 6V in total.

I am hoping to see your updated wiring diagram.

But you plan to add a shield later, ok. What shield?

I am still curious about your 9V power source. How is that connected? Is it a PP3 size battery? Those are of little use for projects involving motors.

Ok so you suggest getting a stronger battery should solve it?

Cannot see the Enable jumpers installed on you driver board.

They either need to be installed or you need to control EnA and EnB from the Arduino (PWM pins).

image


FYI
Note, to prevent confusion, do not use the 5v motor driver terminal to power anything.

Yes thank you it works now

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.