Skip to content

NuttX driver libraries for Rohm Sensors & Bluetooth LE

Notifications You must be signed in to change notification settings

jutava/NuttX

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview of this repository

NuttX driver libraries for Rohm Sensors & Bluetooth LE

(NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. http://nuttx.org/doku.php?id=nuttx)

Supported devices

  • Accelerometer KX122, I2C, SAD=0x1F
  • Accelerometer KX224, I2C, SAD=0x1F
  • Magnetosensor BM1422AGMV, I2C, SAD=0x0F
  • Pressure sensor BM1383AGLV, I2C, SAD=0x5D
  • ALS/Proximity sensor RPR-0521RS, I2C, SAD=0x38
  • Hall Effect sensor BD7411G, GPIO
  • Color sensor BH1749NUC, I2C, SAD=0x38/0x39

This repository contains the drivers for:

  • Accelerometer KX224
  • Hall Effect sensor BD7411G
  • Color sensor BH1749NUC

This repository contains the makefile, kconfig and cxd56-sensors.c modifications to allow you to easily test these devices. However these files could be outdated compared to the Sony-provided files, and as such may cause you to lose other functionality.

Should you wish to use these drivers on a newer base, you need to modify:

  • sdk/drivers/Kconfig and Make.defs
  • sdk/bsp/board/Makefile
  • sdk/bsp/board/common/src/cxd56-sensors.c

The actual driver files are located in:

  • sdk/drivers
  • sdk/bsp/board/common
  • sdk/bsp/include/nuttx/sensors

The rest of the drivers are available on the Sony GitHub , and should come with the SDK.

Pin assignment for Sensor 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 Spresense SDK please refer to Setting up the Spresense SDK

Uploading and testing the sensor drivers

  1. Run the config and select the drivers and examples you wish to upload
  • In the sdk folder, type tools/config.py --menuconfig
  1. Save the configuration and run make
  2. Upload the nuttx.spk to the board according to the instructions in the Flashing tutorial
  3. When the system has booted, type help. This will show you the built-in applications, which should include the driver example you chose in the config
  4. Type the name of the application in the NuttX shell, and the application should begin running

About

NuttX driver libraries for Rohm Sensors & Bluetooth LE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 81.7%
  • C++ 12.6%
  • Makefile 5.7%