How to Interface an External MCU with B-G431B-ESC1 Discovery Kit for High Precision BLDC Motor Control using SimpleFOC?

How to Interface an External MCU with B-G431B-ESC1 Discovery Kit for High Precision BLDC Motor Control using SimpleFOC?**

Hello everyone,

I’m working on a high-precision BLDC motor control project and I need some guidance on interfacing an external microcontroller unit (MCU) with the B-G431B-ESC1 Discovery kit. My goal is to leverage the SimpleFOC library for fine-tuned motor control.

Here are the details of my setup:

  • BLDC Motor: Hoverboard motor "
  • MCU: ( ESP32)
  • Motor Driver: B-G431B-ESC1 Discovery kit
  • Control Library: SimpleFOC

Questions:

  1. Connection: What is the best way to connect my external MCU to the B-G431B-ESC1 Discovery kit? Are there specific pins or interfaces (e.g., UART, I2C, SPI) that are recommended for this setup?
  2. Power Considerations: How should I manage the power supply for the external MCU and the B-G431B-ESC1 Discovery kit? Should they share a common ground, and what precautions should I take to avoid power-related issues?
  3. Communication Protocol: Which communication protocol is most suitable for sending control signals from the external MCU to the B-G431B-ESC1? Are there any libraries or examples that could simplify this process?
  4. SimpleFOC Integration: How can I configure SimpleFOC to work seamlessly with the external MCU and the B-G431B-ESC1? Are there any specific configurations or settings within SimpleFOC that I need to be aware of?
  5. Precision Control Tips: What are some best practices or tips for achieving high-precision control of the BLDC motor in this setup? Are there any additional sensors or feedback mechanisms that would enhance the precision?

Additional Context:

  • I have intermediate experience with MCU programming and basic knowledge of motor control.
  • I have already successfully run basic motor control tests using the B-G431B-ESC1 and an onboard MCU.

Any advice, example projects, or resources that you can share would be greatly appreciated!

Thank you!

I was thinking the same if it is possible to do it. Seems like no one has done it.