L298N speed up automatically

Hello,

I have a L298N Motor Drive Controller Board Module
which I operate with a step up converter from 5V to 24V.
I want to run a motor forwards for about 1 second and then backwards for 1 second.
The problem is that no matter whether I leave the bridge from the PMW pin in or connect PWM directly to the arduino nano, the motor always speeds up. At the beginning I have about 8V on the output and after about 1 minute it is already 24V.
I have already replaced the module, but unfortunately that did not help. Does anyone have any idea why this problem occurs?

Thanks in advance

You should give a complete wiring diagram including the type (link, photo) of the DC-DC converter, and type of the power supply.

I use a xl6009 converter and dr-15-5 mean well power supply with 2.4A
Here is the wiring diagram:

It looks like your problem is clear. Also tell please which engine are you using?
What is its voltage, operating current, starting current?

I use a SSJ16-DC24V it is from a wire feeder. Voltage 24V, 0.41A, don't know the starting current

You have taken the wrong approach to power your project. Your plan is 220V - 5V - 24V. If you want to boost the voltage from 5V to 24V, then your boost converter will draw a lot of current. This is bad.

You have a powerful consumer - a DC motor. It seems to me that it will consume significantly more than 0.4A, usually 1-1.5A. And the starting current of such a motor can exceed the rated one by several times and may reach 3-5A.
Use better a 220V - 24V - 5V plan. The main power supply should supply 24V and have a power of 25-30W (for example, HDR-30-24 or MDR-40-24) to power the L298N and the motor, and the second small DC-DC buck converter should supply 5V to power the Arduino.

If you have a multimeter, measure the resistance of the motor winding when it is disconnected from the driver and the actual operating current at 24V. I think the reason will become clear - your existing PSU is too weak for this motor and not siutable for this project.

Thanks then i will change the power supply to 24V

Hi,

PLEASE draw the relays in, and what do they do?
Please draw in Black and White, Orange is not good for reading on White.
Where is the motor and it connections?

Please use the proper pin names for the "L298N".
For example where are the 298 EN pins?

A complete diagram including ALL your hardware would help.
A picture of you project would help also.

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

Hi,
If your 24V motor draws 1.4A at 24V, that is 24 x 1.4 = 33.6W
The DC-DC converter has to supply at least that amount of power.
So 33.6W on it input at 5V.
5V supply current = 33.6 / 5 = 6.72A.
What is the current rating of your 5V supply, 2.4A....

Tom... :smiley: :+1: :australia:

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