Very high current on H-Bridges

I have a model boat that has a couple of motors driven via 2x BTS7960 43A H-bridges.

I have them PWM controlled but the current they are pulling is insanely higher than I am expecting.

Now I KNOW my PWM code needs dialling in, as the stepping isn't very linear at the moment.

But, I am surprised that 2x motors that pull 2A each at 18v are currently pulling 10A+ when at half speed (thank God for fuses).

I at first though this might be due to resistance on my PCB on the +18v rail to the H-Bridges, but I have directly wired them and that isn't the problem.

Would 'bad' PWM control create such horrific Amperage?

When I say bad PWM control, my breadboarded test rig worked fine but they were much smaller motors for testing.
These are different, higher power drives and I knew the PWM would need 'dialling in'. Just didn't expect it to draw such huge amps (for a model boat).

One word. Schematic.

Is that measurement taken under load?

What type motor, and do you know the wattage/power rating of the motor? A boat motor under load (running at high speed or accelerating in water) is going to draw a lot of power.

what is the internal resistance of the motors?
Do you use fast or slow fuses?
A DC motor starting up may take far more amps than when it is running at normal speed.
how big is that model boat?
180W is pretty much...

What is 'bad' PWM?
How is 'bad' PWM different from 'good' PWM?

How did you measure this curren?

OK. No idea of details for these motors - found them in my box of bits and fitted perfectly, but they did have a hand written label on the box saying 24v.

No - not under load. Testing on the bench.

Schematic. This isn't a wiring issue. This entire system was working fine on the bench when writing the code, but as I said - the motors for testing were different, so I knew that the PWM would need adjusting (plus I tested at 12v).

Yes. Starting is higher load. I have a 20A rated ammeter in series with the battery. Slow blow 10A fuse at the battery (16A when testing the full load).

Lower quick blow values around protecting electronics, 6A slow blow on the motors (which I thought was enough, but for 2 motors that probably needs to be 8A).

The motors make a horrible noise at anything except full speed. Full speed, the draw was 4.4A. Anything PWM slower, and the amps rise quick.

Noise + current just makes me think this is all down to the PWM values I am using.

I will wire up a spare H-Bridge and connect one of the boat motors to that and do some testing without all the other control equipment attached (the wiring in this tug boat is significant).

In hindsight, should have taken the motors out of the boat and used those during testing.

I made a remote touchscreen for this ship in a Pele case, as it has A LOT of moving and working parts + sound etc

I was just surprised that incorrect PWM would increase the current so much, but I supposed if you are driving it poorly, the motor coils are going to get upset.

When I say 'bad' PWM, I mean incorrect on/off timing.

I will set up some direct bench testing and report back

Do you know for sure they are 24V? Have you powered them directly with 24V to see how they behave?

All the same it's helpful for us to see how you've wired them.

Double the voltage, double the current, four times the power.

The fuses are not protecting the electronics, they are protecting the wiring and the battery.

What frequency PWM are you using? Anything in the audible range is likely to show up as noise in the motors, try something above audible, maybe 20kHz, or if you are under 25 years old maybe 25kHz.

Probably because the motors are going more slowly, although I suspect something else is going on, maybe something that would show up on the schematic you don't want to give us.

Could you PWM signal be inverted somewhere?

The schematic for this PCB is insanely complicated....

I will have to 'thin it out'.

Not even sure I have the entire thing drawn out yet, this was kinda made up as I go.
It's not that I don't want to give the schematic, I just know for a fact it won't help.

Yes. The motors run fine on 24v. I know they are 24v, because I remember the project I bought them for (just no other specs E.G. RPM etc).

The H-Bridges work fine on the 12v motors I tested on. I connected those back up earlier and dropped the voltage down to 12v.

First stop is to adjust the PWM timing I suspect.

Are you sure the high current is due to the load itself and not say shoot-though in the H-Bridge? If the PWM frequency is too high, this can contribute to this effect. Also, depending on the H-Bridge, a software can also cause it. A schematic and code may help to diagnose the problem.

Hi, @baffled2023

Yes, simplified schematic showing power supply, controller, motor and switching MOSFETS.

I agree with @6v6gt possible shoot-through, try it without the motors connected.

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

If that's the case wouldn't it show up by measuring the current to the motor and the supply current and comparing them?

Yes, and at different duty cycles. At 100% duty cycle there may not be a problem since there will be little or no switching within the H-Bridge. At lower duty cycles there will be. If the switching frequency is too high for the mosfets then the top and bottom of each half bridge may simultaneously be on or at least partially.

That won't fix the problem.

The schematic for this PCB is insanely complicated....

That is you problem.

OK. Getting a fed up with me vibe. Don't get sarcasm from CHATGPT, so I'll fix it myself.

Up to you but can't help debug without seeing a schematic and board layout.

Hi, @baffled2023

Was all I'm asking, please.

So we can see your basic setup, in particular how you have designed your H-Bridge.

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

You won't get any sensible answers from it either. Good luck.

Based on the information you provided combined with my knowledge of the subject I gave you the best response I could. My response wasn't intended to be a complete answer but would, I hope, move you closer to a solution, especially when combined with the help others have given. So far I've not seen anything from you suggesting my help was any use to you so I'm just watching and waiting for something from you. As it seems the help you've got here isn't what you were looking for it just remains for me to wish you well with your project.