Arduino libraries and samples for Rohm Sensors, Wi-SUN, & Bluetooth LE
- 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
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.
For help regarding the installation of driver library to Arduino IDE please refer to Installing driver library and examples
- 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
- After the sketch has finished uploading, open the serial monitor by clicking Tools -> Serial Monitor or use the hotkey Ctrl+Shift+M
- The sketch should start, if not, please reset the board by pressing the reboot button on the main board
- 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
You need to download the LAPIS BLE tool for your phone to test the module.
- Open the MK71251-02 sketch, upload it and open the serial monitor
- Open the LAPIS BLE tool on your phone, and enable bluetooth
- 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
- Connect to the module
- 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'