This is sample code for interfacing ROHM's SENSORSHLD1-EVK-101 with Nordic Semiconductor's nRF51-DK Development Kit Host BTLE Board

Dependencies:   BLE_API mbed nRF51822

Fork of Nordic_UART_TEMPLATE_ROHM by ROHMUSDC

Code Example for ROHM Mutli-Sensor Shield on the Nordic Semiconductor nRF51-DK

This code was written to be used with the Nordic Semiconductor nRF51-DK.

This is the basic example code for interfacing ROHM's Multi-sensor Shield Board onto this board.

Additional information about the ROHM MultiSensor Shield Board can be found at the following link: https://github.com/ROHMUSDC/ROHM_SensorPlatform_Multi-Sensor-Shield

For code example for the ROHM SENSORSHLD0-EVK-101, please see the following link: https://developer.mbed.org/teams/ROHMUSDC/code/Nordic_UART_TEMPLATE_ROHM/

Operation

Ultimately, this code will initialize all the sensors on the Multi-sensor shield board and then poll the sensors. The sensor data will then be returned to the BTLE COM port link and will be view-able on any BTLE enabled phone that can connect to the Nordic UART Application.

Supported ROHM Sensor Devices

  • BDE0600G Temperature Sensor
  • BM1383GLV Pressure Sensor
  • BU52014 Hall Sensor
  • ML8511 UV Sensor
  • RPR-0521 ALS/PROX Sensor
  • BH1745NUC Color Sensor
  • KMX62 Accel/Mag Sensor
  • KX122 Accel Sensor
  • BM1422 MI Magnetometer Sensor
  • KXG03 Gyro/Accel Sensor

Updates from SHLD0 to SHLD1

  • Pressure Sensor Changes: Fixed Register Map Changes for BM1383AGLV, See Pressure Sensor Datasheet for more details - TEMP and PRES output switched
  • Added new #ifdef section for Magnetometer
  • Changed Gyro Device Address (7bit addr now 0x4F, not 0x4E)

Sensor Applicable Code Sections

  • Added a Section in "Main" to act as initialization
  • Added to the "Periodic Callback" to read sensor data and return to Phone/Host

Questions/Feedback

Please feel free to let us know any questions/feedback/comments/concerns on the ROHM shield implementation by contacting the following e-mail:

History

Deleted Extra generated file when importing from MBED page default tip

2016-09-15, by kbahar3 [Thu, 15 Sep 2016 20:56:42 +0000] rev 10

Deleted Extra generated file when importing from MBED page


Added References to BM1383 (Non-A) for use with yellow sticker-ed boards

2016-09-15, by kbahar3 [Thu, 15 Sep 2016 20:53:01 +0000] rev 9

Added References to BM1383 (Non-A) for use with yellow sticker-ed boards


First Commit, updated SHLD0 code to work with SHLD1

2016-06-08, by kbahar3 [Wed, 08 Jun 2016 18:20:30 +0000] rev 8

First Commit, updated SHLD0 code to work with SHLD1


Added new code for Gyro (KXG03)

2015-12-18, by kbahar3 [Fri, 18 Dec 2015 00:19:01 +0000] rev 7

Added new code for Gyro (KXG03)


Fixed Periodic Callback to send one sensor point every second. Also, fixed comments sand general formatting to make the code easier to read. Removed miscellaneous content/comments

2015-09-28, by kbahar3 [Mon, 28 Sep 2015 19:00:02 +0000] rev 6

Fixed Periodic Callback to send one sensor point every second. Also, fixed comments sand general formatting to make the code easier to read. Removed miscellaneous content/comments


Example code for interfacing ROHM's Multi-Sensor Shield onto the Nordic Semiconductor nRF51-DK BTLE Host Board

2015-09-24, by kbahar3 [Thu, 24 Sep 2015 22:23:31 +0000] rev 5

Example code for interfacing ROHM's Multi-Sensor Shield onto the Nordic Semiconductor nRF51-DK BTLE Host Board


Updated Code to show I2C Usage

2015-08-13, by kbahar3 [Thu, 13 Aug 2015 18:24:14 +0000] rev 4

Updated Code to show I2C Usage


committing latest revision... with sensor TODO indication

2015-07-27, by kbahar3 [Mon, 27 Jul 2015 20:32:00 +0000] rev 3

committing latest revision... with sensor TODO indication


Switched things to work with the shield... now DALS is actually RPR-0521

2015-07-22, by kbahar3 [Wed, 22 Jul 2015 01:05:56 +0000] rev 2

Switched things to work with the shield... now DALS is actually RPR-0521


Added some ROHM Functions

2015-07-19, by kbahar3 [Sun, 19 Jul 2015 23:14:07 +0000] rev 1

Added some ROHM Functions