STM32 Gyroscope / Accelerometer
The STM32F411 development board comes equipped with an accelerometer and gyroscope on-board. In this example I show how to communiacte with these devices in realtime, displaying output to a terminal program like PuTTY. The code is well documented explaining what every non-obvious line of code does. In order to best understand how the software communicates with the hardware I don't use the HAL of Standard Peripheral Library.
- An STMF32F411 development board. Currently they can be ordered from the usual sites for around $15 USD plus shipping.
- A USB to TTL Serial Cable like this one from AdaFruit.