Motor Control With FOC on STM32G4: From Theory to First Spin
Field-oriented control for BLDC motors requires a current sense topology, a fast ADC, and careful interrupt timing. Getting the first controlled spin on an STM32G4 using X-CUBE-MCSDK.
Step-by-step project builds, maker guides, and DIY electronics instructions
First power-on of a custom board often fails in the clock tree, flash timing, or debug port isolation. A systematic bring-up checklist for the STM32H5 series.
Field-oriented control for BLDC motors requires a current sense topology, a fast ADC, and careful interrupt timing. Getting the first controlled spin on an STM32G4 using X-CUBE-MCSDK.
Getting clean I2S audio out of an STM32H7 through a PCM5102 DAC requires attention to DMA double-buffering, PLL configuration, and the codec's startup sequence.
ESP32-C3 running Zephyr, publishing temperature and humidity over MQTT to a local broker. A complete walkthrough from toolchain setup to first retained message.
CAN is well-specified and badly documented for newcomers. A complete walkthrough of hardware selection, bxCAN configuration, and sending a first frame on STM32G0B1.
LwIP on STM32H7 with a LAN8742 PHY looks straightforward in CubeMX. The PHY reset timing, RMII clock, and DMA descriptor alignment are where it breaks.
SMP over BLE using the nRF Connect SDK and MCUboot gives you OTA firmware update without a custom protocol. The slot layout and bond management details that trip people up.
The STM32WL integrates a sub-GHz radio with an ARM core. Getting OTAA join and confirmed uplinks working with the STM32CubeWL LoRaWAN stack is the subject of this note.
A watchdog that only kicks in the main loop catches nothing when the real problem is a blocked interrupt handler. Patterns for multi-stage watchdogs that cover what actually hangs.
TinyUSB makes USB device development tractable on STM32. A minimal HID gamepad descriptor, endpoint configuration, and report generation — all the pieces in one place.
FatFS on STM32 over SDIO is easy to get running and hard to make reliable under power loss. Transaction journaling strategies and the SDIO DMA alignment rule you will hit.
Modbus RTU is still everywhere in industrial equipment. A clean slave implementation on STM32G4 with hardware CRC validation and RS-485 half-duplex direction control.