Stm32 Bluepill using the Arduino SimpleFOCShield
The SimpleFOCShield, being a BLDC driver, can be used not just with boards with Arduino UNO headers but also as a stand alone driver board.
Here is an example how to connect Stm32 Bluepill with the Arduino SimpleFOCShield :

More information about the Arduino Simple FOC Shield.

Bluepill pinout
Make sure to consult the pinout before you assign the BLDC driver pins. They have to be PWM capable.
Encoder
- Channels
AandBare connected toPB9andPB8. - If your encoder has
indexsignal you can connect it to the boards as well, for example onPB7.
NOTE
Any digital pin can be external interrupt pin on STM32 boards.
SimpleFOCShield connection
- Connect
PWMa,PWMbandPWMcsignal toPA10,PA9andPA8of the Bluepill. - Connect the
enablepin to any digital pin such asPA11 - Connect the common ground
GND - Connect the power-supply cable
Motor
- Motor phases
a,bandcare connected directly the motor terminal connectorTB_M1
Example connection
