cancel
Showing results for 
Search instead for 
Did you mean: 

B-G431-ESC1 Electronic Speed Control PWM issues

rudyard
Associate

Hello,

I apologise in advance if my post lacks any important information, I am very new to working with these sorts of boards and have limited experience with motor control in general. 

I am using a B-G431-ESC1 to drive a 24V hoverboard motor. I have profiled the motor and uploaded the firmware to it and it runs just fine on the motor pilot with FOC speed control. I had also used the potentiometer on the ESC to change the speed without issue.

I wanted to switch to using PWM signals to control the speed of the motor, and reuploaded the firmware to the board with the potentiometer option disabled and the Electronic Speed Control option enabled for the stage configuration. 
Using an ESP32 I generate a 490Hz PWM signal and first send 1060us pulses to the ESC (verified with an oscilloscope). I then send a new PWM to the ESC where the signal is high for 1850us. 

My expectation was that the initial 1060us PWM would arm the driver, and then the 1850us PWM would command the ESC to drive the motor close to its maximum speed, but the motor does not move. The motor does stiffen a little and is harder to rotate by hand, and if i do rotate it by hand quickly it sometimes continues to move at a constant speed. I have also connected the ESC to the esp whilst the ESC was connected to a motor pilot on a laptop, and the motor switches from "IDLE" to "RUN" as the esp sends the PWM signal.

I am writing here for some advice on what I must change to allow the PWM signal to work as I expected, with a variable PWM being able to control the speed of the motor. I would be very appreciative of any help that anyone may provide me :)

Many thanks.

motor workbench: Version: 6.4.1 Build: 250722.154358
STM32 cubeIDE: Version 2.0.0
STM32 cubeMX: Version 6.16.0

0 REPLIES 0