An example program for Rohm SensorShield-EVK-001 running with Mbed OS 5.
Dependencies: BM1422AGMV rohm-rpr0521 rohm-sensor-hal rohm-bh1790glc-driver BH1749NUC KX224-1053 BM1383AGLV RegisterWriter
Getting Started with Rohm SensorShield-EVK-001
This example demonstrates how to use the SensorShield-EVK-001 component with multiple sensors. those measured values, which received through a serial connection from a mbed board, are printed out in a terminal software window.
Setup
The SensorShield-EVK-001 is plugged on top of a mbed board and a serial connection should be set up between the mbed board and PC with the following parameters:
- baud rate: 115200
- data: 8 bit
- parity: none
- stop: 1bit
- flow control: none
Terminal parameters
Measured Data Output
Diff: Source/main.cpp
- Revision:
- 8:a212185be55a
- Parent:
- 6:b38a0cbc1b3f
--- a/Source/main.cpp Wed Feb 27 06:50:22 2019 +0000 +++ b/Source/main.cpp Wed Feb 27 09:13:51 2019 +0000 @@ -83,7 +83,7 @@ } while (1) { - printf("\r++++++++++++++++++\r"); + printf("\n++++++++++++++++++\n"); printf("BM1383AGLV : pressure=%7.2f, temperature=%5.3f\r\n", pressure.getPressure(), pressure.getTemperature()); magnetometer.get_val(&axis_ac[0]); printf("BM1422AGMV : X=%7.2f, Y=%7.2f, Z=%7.2f\r\n", axis_ac[0], axis_ac[1], axis_ac[2]);