Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 952 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 952 Bytes

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.

 

Hardware Prerequisites

  1. An STMF32F411 development board. Currently they can be ordered from the usual sites for around $15 USD plus shipping.
  2. A USB to TTL Serial Cable like this one from AdaFruit.