Simple demo of BMI160 Library (Accelerometer, Gyroscope)

Dependencies:   BMI160 max32630hsp2 mbed

Run the Code

  • Import it into the mbed online compiler.
  • Compile the program.
  • It will automatically download the .bin file.
  • Drag-drop or copy-paste the .bin file to the programmer drive. (PICO DAPLINK).
  • Open a serial terminal (Putty, Tera Term, etc.)
  • Find the COM port that the device is connected to and set that COM port in the terminal. Adjust the baudrate to 9600.
  • Press the reset button on the microcontroller board.
  • You should now see the accelerometer, gyroscope and temperature values on the terminal with 0.5-second intervals.

Compiling it with IAR

The program can be compiled by IAR Embedded Workbench 7.5 ( IAR compiler 7.80.2) or older versions.

History

only a minor name change default tip

2018-08-16, by Emre.Eken@IST-LT-36262.maxim-ic.internal [Thu, 16 Aug 2018 14:34:37 +0300] rev 3

only a minor name change


Some minor changes are done to make it be compiled by IAR. There is no diffence with the previous revision in terms of functionality

2018-05-04, by Emre.Eken [Fri, 04 May 2018 13:41:28 +0300] rev 2

Some minor changes are done to make it be compiled by IAR. There is no diffence with the previous revision in terms of functionality


First Revision

2018-04-25, by Emre.Eken [Wed, 25 Apr 2018 14:17:42 +0300] rev 1

First Revision


First Revision

2018-04-25, by EmreE [Wed, 25 Apr 2018 11:00:47 +0000] rev 0

First Revision