Hi guys,
As some of you might know I really like the Xiao/QtPy format of MCUs and in my mind it fits perfectly with SimpleFOCMini board format. So recently I’ve decided to try to create a new mini board that would be a shield version for the Xiao/QtPy family. I have to say that I really like it so far.
I’m calling it QtPyFOC
This MCU format is very limited on pin number but I think that it should be just enough for many applications, to run the
- motor (a BLDC or a Steppr with the HybridStepper mode - v2.3.5+)
- position sensor (SPI, encoder, i2c or even PWM)
- current sensing - Low-side current sensing - 2 pins exposed
- some simple communication (like USB or Serial)
So this board is a simple BLDC driver based on DVR8316 chip with the pinout that allows stacking a qtpy/xiao board on it + exposes the non-used pins in a separate header.
Main Features
- DRV8316CT chip
- 3x PWM driven
- 5 to 35V power supply voltage
- 8A peak current
- Low-side current sensing integrated
- Gain: 150mV/A
- QtPy/Xiao pinout
- Open source: EasyEDA link
IMPORTANT - LIMITATIONS
- While this board is compatible with all the MCU architectures supported by the SimpleFOClibrary, if you wish to use the current sesning on this board make sure to use the MCU wich supports it.
- v1.0 does not yet support powering the MCU from the DRV8316’s buck, so the MCU needs a separate power supply.
- Depending on the MCU used and the sensor used, there might not be many pins left after the motor+sensor+current sensing are connected:
- worst case SPI sensor (4pins) only 1 pin left
QtPy/Xiao variants
Here is a list of the MCUs with this format (non-exhaustive) from which I was able to test several.
Board | MCU architecture | Supported SimpleFOC | Low-side current sensing | Tested |
---|---|---|---|---|
QT Py SAMD21 Xiao SAMD21 |
SAMD21 | ![]() |
![]() |
![]() |
QT Py RP2040 Xiao RP2040 |
RP2040 | ![]() |
![]() |
![]() |
QT Py ESP32S3 Xiao ESP32S3 |
ESP32S3 | ![]() |
![]() |
![]() |
QT Py ESP32 Pico | ESP32 pico | ![]() |
![]() |
![]() |
QT Py ESP32s2 | ESP32S2 | ![]() |
![]() |
![]() |
QT Py CH30V203 | CH32V203 | ![]() |
![]() |
![]() |
QT Py ESP32C3 Xiao ESP32C3 |
ESP32C3 | ![]() |
![]() |
![]() |
Xiao RP2040 | RP2040 | ![]() |
![]() |
![]() |
Xiao nRF52x | nRF52x | ![]() |
![]() |
![]() |
Xiao ESP32C6 | ESP32C6 | ![]() |
![]() |
![]() |
Xiao RP2450 | RP2450 | ![]() |
![]() |
![]() |