BLHeli icon indicating copy to clipboard operation
BLHeli copied to clipboard

Motor keeps spinning if PWM signal is unconnected

Open mice5 opened this issue 5 years ago • 7 comments

Hi!

I have observed that If i spin the motor with, let's say 1200us PWM (I'm using 1000-2000us 400Hz PWM signal), and disconnect the signal wire, the motor keeps spinning with additional 1-2Hz stuttering (like resetting the lost signal timeout) until power source is disconnected.

Moreover, If i disconnect 1000us brake signal, motor can occasionally spin-up to some random speed until i reconnect the signal wire or power is lost.

Using BLHeli32 32.7.

Regards, Mateusz

mice5 avatar Feb 02 '21 12:02 mice5

When the signal wire is disconnected, generally the internal pullup of the MCU is used to tie the input wire. This pullup however is not strong, so in some conditions where there is external noise (motor running, touching the wire etc), a valid signal can be seen. Therefore always remove props when working with the system

sskaug avatar Feb 02 '21 19:02 sskaug

Could be some noise isse... but:

  • Retested with unpowering the signal source / signal wires connected.
  • Retested with manually shorting the esc signal pad to ground
  • Retested with manually shorting the input signal pin directly on the MCU
  • Retested with disabling the signal sent by the source. Every test results in unwanted motor spinning.

mice5 avatar Feb 04 '21 08:02 mice5

I can not reproduce this with my ESC here. Which name does BLHeliSuite32 give for the code on your ESC?

sskaug avatar Feb 07 '21 16:02 sskaug

Exuav_FishDrone-Rev.32.7 - Multi

mice5 avatar Feb 08 '21 08:02 mice5

I am still not able to reproduce the behavior you see. But - I did find a weakness in the code, in handling signal loss. So updated 32.7.4 code is now posted.

sskaug avatar Feb 08 '21 18:02 sskaug

I've flashed 32.74 testcode and it fixed the problem.

Then, for additional confirmation I flashed it back to 32.7 - problem exists. And again, to 32.74 - problem fixed.

Even if it does something weird, like spinning to the max, it switches completely off after the timeout. Before the fix, it would always spin with 2Hz stuttering.

I am still not able to reproduce the behavior you see.

Maybe it's a matter of some setting, like auto telem or so: exuav_wing

mice5 avatar Feb 09 '21 13:02 mice5

Great to hear - thank you for reporting and testing. My guess is that it's brake on stop or maybe stall protection that causes the different behavior from my default settings.

sskaug avatar Feb 09 '21 19:02 sskaug