The microspora Arduino thread

Since the microspora firmware on github is for Platformio, I thought it would be helpful to have an Arduino based thread.

From what I understood so far, Arduino doesn’t have a microspora library with example code.
But we can use the STM32 library and pick the right MCU.
Same goes for DRV8316 and MT6701, so the basic package is available.

With other STM32 MCUs I let arduino export a compiled binary and use the ST-Link to flash it.
Maybe it’s different here, IDK yet. (my microspora will take 10-15 days to deliver)

What I wasn’t sure of, is the description of the SPI interface.

Note: This SPI bus is the same one used for the DRV8316 driver, so make sure to configure the driver before you use the SPI bus for other purposes.

I guess, the DRV chip has it’s own CS pin and PC11 is for external devices communicating with the MCU?
I don’t have a usecase for that now, but was curious.

I will post some test code, once I have the board. My focus is on BLDC motors in NEMA17 and 23 size and step/dir interface, but might try the hybrid stepper approach later.

Feel free to post your code snippets and tips&tricks, so we can help others to start with the Microspora

If you look for the right wire housings here is what AI told me:

The exact official counterparts for the JST SH series 6-pin right-angle SMT header (SM06B-SRSS-TB(LF)(SN), 1.0mm pitch) depend on whether you prefer standard crimp housings or IDC (Insulation-Displacement Connector) terminations.

Here are the official parts from JST:

1. Crimp Housing (Standard)

If you want to crimp the wires individually:

  • Housing Part Number: SHR-06V-S or SHR-06V-S-B (6-position female housing)

  • Matching Crimp Contacts (ordered separately):

    SSH-003T-P0.2 (for wire sizes 32 to 28 AWG)

2. IDC Housing (Pre-loaded / Insulation-Displacement)

If you want to press the connector directly onto a wire bundle without crimping individual pins:

  • Housing Part Number: 06SR-3S (suitable for 30 AWG wire)

There are three different connectors of the same family (1x 6-pin, 1x 5-pin 2x 3-pin). Keep that in mind, when ordering.