Skip to main content
AUbar.1
Associate
August 25, 2020
Question

How to use the on-board accelerometer for beginners?

  • August 25, 2020
  • 1 reply
  • 963 views

Hello ST users,

I am a beginner embedded coder (Embedded C coder) and i wanna know how do i use the on-board accelerometer of the stm32f4discovery board. I have learnt SPI and I2C and i guess that works on one of these. Please Help

I would really appreciate a quick answer...✔✔

Aditya.

This topic has been closed for replies.

1 reply

KnarfB
Super User
August 25, 2020

You like what you write, thats great :)

The is a demo: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F4-Discovery/Demonstrations. This should also be on your disk somewhere under (Windows: %USERPROFILE%\STM32Cube\Repository\) after you downloaded the F4 firmware package. If you use STM32CubeIDE, double-click SW4STM32\STM32F4-DISCO\.project to include the project.