Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.09 KB

File metadata and controls

17 lines (10 loc) · 1.09 KB

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.

 

Video Demo

STM32 Gyroscope and Accelerometer Demonstration