DC motors are not receiving power

Hello! I am making an obstacle avoidance robot and it is my very first robot. I use an Arduino UNO, breadboard, h-bridge L298N, 2 DC motors, and an ultrasonic sensor. When I plug my batteries, Arduino and h-bridge receive power as their lights are up; however, DC motors do not. Because when I plug batteries directly into motors, they work. If anyone could explain me what is the issue, I would be really glad.
Here is the link that used for my project. Project hub



Thanks in advance!

It appears the ENA and ENB jumpers are not installed. :thinking:

The schematics don't show that there is any connection with ENA and ENB. And I took jumper caps before for another project. Would not having jumper caps affect it?

You either need to add them back or you can connect them to PWM pins to control the motor speeds.

And I think a 9v pp3 spoke alarm battery will struggle to supply 2 motors and an ultrasonic sensor for very long!

Thank you so much! I added them back and it worked.

Would you suggest using a powerbank for example?

Motors can take a lot of current as they start and small batteries have very limited capacity to support that. I think you are supplying the driver board from 9v? Most power banks only give 5v I think for charging phones but if you can find a 9v one it would do. Or buy the kind of rechargeable battery packs made for radio control models. 7.2v and 9.6v are available I think.

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