Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.44 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.44 KB

BMM150 STM32 F446RE

About

To use the STM32 Nucleo F446RE board with the Grove BMM-150 module, this header file and example can be a starting point for your next project. Building off of the code originally written for the Arduino using the wire library, this implementation uses the HAL I2C implementation to access the data registers on the BMM150 board.

alt text alt text

Setup

The first thing to do is open the STM IDE. From here, start a new project, select your board and ensure you select C++ as the target language. alt text With that set, you can now select your MX file and configure the board as shown in this guide. You will be setting up your board as the Master. (There convention, not mine. We should use variables such as "primary-secondary"). After setting up the MX and generating the code, select your main.c file and change the name to main.cpp. From here, copy the pertinent parts of the main.cpp file on this repo into your main and you should be set. Open up a terminal using Putty or realTerm and you should have solid data.

I hope this is helpful. Good luck building your projects and machines.