Skip to content

Adruino libraries and samples for Rohm Sensors & Bluetooth LE

License

Notifications You must be signed in to change notification settings

jutava/Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview of this repository

Arduino libraries and samples for Rohm Sensors & Bluetooth LE

Supported devices

  • Accelerometer KX122, 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
  • 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

  1. Place the example sketches inside your Arduino folder, which should be located in your users documents folder
  2. Open the folder of the example you want to test, and open the sketch file. The Arduino IDE should start with the selected sketch open

  1. You can then proceed to 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

Languages

  • C++ 100.0%