Simple demo of BMI160 Library (Accelerometer, Gyroscope)

Dependencies:   mbed BMI160 max32630hsp2

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.

Information

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
Date:
Wed Apr 25 14:17:42 2018 +0300
Parent:
0:4b4fbf5daa1c
Child:
2:ba0a55e05168
Commit message:
First Revision

Changed in this revision

BMI160.lib Show annotated file Show diff for this revision Revisions of this file
max32630.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BMI160.lib	Wed Apr 25 14:17:42 2018 +0300
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/MaximIntegrated/code/BMI160/#4949e9b15b6e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max32630.lib	Wed Apr 25 14:17:42 2018 +0300
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/MaximIntegrated/code/max32630hsp3/#60c0cc971d85
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Apr 25 14:17:42 2018 +0300
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e7ca05fa8600
\ No newline at end of file