Subject: Open loop control not working with B-G431B-ESC1 in Arduino IDE — motor unresponsive

Hello everyone,

I’m having trouble getting open loop control to work with my B-G431B-ESC1 board.
The code compiles fine in Arduino IDE, but the motor doesn’t respond at all — no movement, no sound, nothing.

What I’ve tried so far:

  • Used SimpleFOCGenerator to generate open loop code for my motor.

  • Also tried known working open loop examples from other users (for the same board).

  • Double-checked all connections (power, motor phases, hall/encoder if applicable).

My motor specs:

  • KV: 1850

  • Poles: 7

  • Phase resistance: 0.4 Ω

  • Phase inductance: 0.1 mH

Setup:

  • Board: B-G431B-ESC1

  • IDE: Arduino IDE (with STM32duino and SimpleFOC installed)

  • Power supply: 12V (tested, sufficient current)

  • No load during testing.

The problem:
After upload, the board seems to run (LED on), but the motor doesn’t spin. I’ve tried varying the target value in open loop mode, but no response.

Questions:

  1. Are there known issues with open loop on B-G431B-ESC1 for very low inductance motors (0.1 mH)?

  2. Could timing/ PWM frequency settings be a factor?

  3. Should I modify voltage_limit or velocity_limit for this motor spec?

  4. Any specific openloop_gain or phase_resistance compensation needed?

  5. Is there a minimal working open loop example for this board that I can compare with?

I’ve attached my current code snippet below. Any help or guidance would be greatly appreciated!

Your code doesn’t seem to have posted. Try it again.