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.

Files at this revision

API Documentation at this revision

Comitter:
Emre.Eken@IST-LT-36262.maxim-ic.internal
Date:
Thu Aug 16 14:34:37 2018 +0300
Parent:
2:ba0a55e05168
Commit message:
only a minor name change

Changed in this revision

max32630hsp.lib Show annotated file Show diff for this revision Revisions of this file
diff -r ba0a55e05168 -r ad1e61509a89 max32630hsp.lib
--- a/max32630hsp.lib	Fri May 04 13:41:28 2018 +0300
+++ b/max32630hsp.lib	Thu Aug 16 14:34:37 2018 +0300
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/MaximIntegrated/code/max32630hsp3/#60c0cc971d85
\ No newline at end of file
+https://os.mbed.com/teams/MaximIntegrated/code/max32630hsp2/#60c0cc971d85
\ No newline at end of file