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.
max32630hsp.lib@4:f8608dd7725f, 2018-08-16 (annotated)
- Committer:
- EmreE
- Date:
- Thu Aug 16 11:35:51 2018 +0000
- Revision:
- 4:f8608dd7725f
- Parent:
- 3:ad1e61509a89
first rev
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
EmreE | 4:f8608dd7725f | 1 | https://os.mbed.com/teams/MaximIntegrated/code/max32630hsp2/#60c0cc971d85 |