Skip to content

Adruino libraries and samples for Rohm Sensors & Bluetooth LE

License

Notifications You must be signed in to change notification settings

RohmSemiconductor/Arduino

Repository files navigation

Overview of this repository

Arduino libraries and samples for Rohm Sensors, Wi-SUN, & Bluetooth LE

Supported devices

  • Accelerometer KX122, I2C, SAD=0x1F
  • Accelerometer KX126, I2C, SAD=0x1F
  • Accelerometer KX132, I2C, SAD=0x1F
  • Accelerometer KX224, I2C, SAD=0x1E*/0x1F
  • Magnetosensor BM1422AGMV, I2C, SAD=0x0F
  • Pressure sensor BM1383AGLV, I2C, SAD=0x5D
  • Color sensor BH1749NUC, I2C, SAD=0x38/0x39*
  • ALS/Proximity sensor RPR-0521RS, I2C, SAD=0x38
  • Hall Effect sensor BD7411G, GPIO
  • Wi-SUN BP35C0, UART
  • Bluetooth LE MK71251-02, UART

*Boldened is default device address

Pin assignment for Sensor and BLE Add-on boards

BLE Add-on board:

Sensor Add-on board:

How to setup and test devices with Sony Spresense

About Sony Spresense https://developer.sony.com/develop/spresense/

For help regarding the installation of the Arduino IDE please refer to Setting up the Arduino IDE

The example sketches are located in the same directory as the drivers.

The evaluation board sensors can be attached to the Sensor Add-on board, and should work without problems.

Installing the sensor & BLE example sketches

For help regarding the installation of driver library to Arduino IDE please refer to Installing driver library and examples

  1. You can upload the example sketch to your Spresense board by clicking Upload
  • If the upload fails for some reason, you may need to reset your board or unplug and plug it back in
  1. After the sketch has finished uploading, open the serial monitor by clicking Tools -> Serial Monitor or use the hotkey Ctrl+Shift+M

  1. The sketch should start, if not, please reset the board by pressing the reboot button on the main board
  2. To receive the correct data on the serial monitor, please ensure that the baud rate on the serial monitor is set correctly, usually to 115200

Testing the bluetooth module

You need to download the LAPIS BLE tool for your phone to test the module.

  1. Open the MK71251-02 sketch, upload it and open the serial monitor
  2. Open the LAPIS BLE tool on your phone, and enable bluetooth
  3. Locate the MK71251-02 on the list of devices
  • If you do not see it on the list, you may need to reboot your board
  1. Connect to the module
  2. Open the serial port profile
  • Anything you type should show up on the serial monitor
  • If you type 'Z', the serial port profile should show 'WRITING TEST'

About

Adruino libraries and samples for Rohm Sensors & Bluetooth LE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published