cancel
Showing results for 
Search instead for 
Did you mean: 

PWM input and potentiometer don't look to work with B-G431B-ESC1 on X-CUBE-MCSDK-6 (Motor Workbench 6)

WBurb.1
Associate II

Hi all!

I hope you are well.

I am currently doing a project which needed a configurable ESC for a brushless motor, with the B-G431B-ESC1 along with the MC Workbench looking perfect for this, and works well when connected to the PC using the MC-Pilot software. It doesn't look to work with a PWM input, even when enabling it within the GUI, with only a very minor reference in the B-G431B-ESC1 of using an external PWM Input. Reading online, I have seen others having similar issues, but with limited success in finding a solution. Along with this, there is a potentiometer built onto the ESC, but the setting to use a potentiometer as input is greyed out due to "not being supported on the hardware", which looks like it could need fixing! Don't mind a script-based rather than GUI solution if needed!

Would love to hear any thoughts, as I would certainly like to use this combination in the project, with a great balance of cost-effectiveness against flexibility and performance.

Many thanks,

WB

15 REPLIES 15

Thank you so much for your quick reply! I much appreciate it.

Many thanks,

WB

Thank you again for sending this across.

The motor does start up upon receiving a PWM signal, but its speed does not seem to vary, but instead looks to follow the initial startup curve I set, and then stays constant at the target speed after startup.

Is the above code used to change the expected PWM frequency, as I understand it takes a CPU timing frequency to derive the TON values, based on your inputted parameters, but wanted to know whether this can be altered to change the intended PWM frequency to 50Hz for example?

Apologies for all my questions, I shouldn't be far off now!

Many thanks again,

WB

Hello @WBurb.1​ ,

Sorry to answer so late, the motor should run only if the PWM signal corresponds to the above specifications, you can try to modify ESC_TON_MIN and ESC_TON_MAX as well as ESC_TON_ARMING to adapt it to your use.

thanks

If you agree with my answer, please accept it by clicking on "Accept as solution".
giova_
Associate II

Hello everyone,

I am also using the B-G431B-ESC1. I've encountered an issue where the potentiometer appears grayed out in the configurator. Has anyone found a solution?

Additionally, would it be advisable to open a separate thread to seek a solution for this specific issue?

Thank you for your assistance.

Hello giova_,

Indeed, it would be better to open a new post for this issue. If your issue is related to an older thread, feel free to make a reference to it in your new thread. This will prevent the author from being pinged even though his issue has long been resolved. This also allows for a healthier reference for future customers seeking the same information.

But since we are here anyway, and that the original post does include your question, I'll be glad to answer you :
The Potentiometer feature is not supported for the ESC-G4 on any MCSDK version prior to MCSDK v.6.2.1. You can download the latest version of our MCSDK right here.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.
giova_
Associate II

Hi Gael,

thanks for your reply and your advice. I confirm that I have been able to run the ESC-G4 with the MCSDK v.6.2.1

Thanks,

Giova