Logic output voltage too low

I’m doing on a L298n project but I meet some trouble. When I attach the uno with the USB port it works fine ,but it won’t work when the uno is power by 9v battery,the motor became discontinuous and sometimes disequilibrium

Always show us a good schematic of your proposed circuit.
Show us good images of your ‘actual’ wiring.
Give links to components.

Sorry I just added it

Show the power supply connections.


Show good images of the actual wiring.

Hi, @hubertchen1234

One of these?
image

They cannot supply the current you need.

What is the spec/data of the motor?
Please post a link to spec/data/image of the motor.

Do you have a DMM? Digital MultiMeter.

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

Yes I’m using the 9v battery and I have a Dmm,but The Arduino logic outputs are for L298N( H-Bridge motor driver ,Input Voltage: 3.2V~40Vdc)
Not directly the motor
:smiley:

Your problem is common when not supplying enough power. Use a larger battery or a wall wart to power you system. Once you do that I expect it will work as expected.

Measure the battery voltage when your project is working.

Are you using a L298 module/breakout board?
Have you go the Arduino gnd connected to the 298 gnd?

What model Arduino are you using?

Tom.. :grinning: :+1: :coffee: :australia:

This is the actual wiring

Ps: If it’s not clear enough I can retake one

Hi,
What is connected to D0 the Rx pin via the red wire?

That pin is used , along with D1, when programming and it is recommended not to use D0 and D1 in your project.
This is why you need to label your pins when drawing a schematic.

Have you measured your 9V battery when your project is running?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

If you wire 9V batteries in parallel, you get more current.
If you run the battery(s) through a Buck Converter, you get more current. But with a 7805 you lose power by lower V at the same A.

Hi,
How have you got this jumper configured?

Tom.. :grinning: :+1: :coffee: :australia:

Hi,
I think this is how your circuit is from the images.
I have moved the IR output to D2.

Tom... :grinning: :+1: :coffee: :australia:

I’m not using that jumper,it’s just a extra 5v output

And thanks for the circuit diagram

Why all the external batteries for the IR sensor and the HCSR04?

Have you measured the 5V pin to see what the voltage is with the 9v battery vs the USB connection? All you allowing for any difference with the analog reading from the IR sensor?

Cause if I don’t add external batteries the Arduino are over it’s max current

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