Giter Club home page Giter Club logo

rohm-arduino's Introduction

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'

rohm-arduino's People

Contributors

jutava avatar kokiokada-rohm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.