This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

do you have NRF52832 SENSOR R40 accelerometer acceleration gyroscope ambient light sensor datasheet

I need this gyroscope sensor's dataheet or specification

Parents
  • Hi

    i have successfuly used the BMI160 and the RGB Leds from the Sensor_R40.

    A big help was this link https://github.com/vooon/nrfcounter/blob/master/docs/sensor-r40-pinout.md

    Unfortunately i cannot say anything about the ambient light sensor but you can try reading the pinout.

    The BMI160 I2C pins are 11 and 12 and the interrupt pin is 8. I found them by brute force trying all combinations Joy

    here some code from my project:

    #include <Arduino.h>
    #include "RGBLed.h"
    #include <Wire.h>
    #include "BMI160Gen.h"
    
    int Sensor_R40_BMI160_I2C_ADR = 0x69;
    int Sensor_R40_BMI160_PIN_SDA = 11u;
    int Sensor_R40_BMI160_PIN_SCL = 12u;
    int Sensor_R40_BMI160_PIN_INT = 8u;
    
    // https://os.mbed.com/users/rominos2/code/RGBLed/
    RGBLed led(27, 28, 29);
    
    // use Nrf52 TWI(I2C) #1
    TwoWire WireBMI160(NRF_TWIM1, NRF_TWIS1, SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn, Sensor_R40_BMI160_PIN_SDA, Sensor_R40_BMI160_PIN_SCL);
    
    void setup() {
      WireBMI160.begin();
    
      // https://github.com/EmotiBit/EmotiBit_BMI160
      BMI160.begin(BMI160GenClass::Mode::I2C_MODE, WireBMI160, Sensor_R40_BMI160_I2C_ADR, Sensor_R40_BMI160_PIN_INT)
    }
    
    void loop() {
      BMI160.readMotionSensor();
    }

Reply
  • Hi

    i have successfuly used the BMI160 and the RGB Leds from the Sensor_R40.

    A big help was this link https://github.com/vooon/nrfcounter/blob/master/docs/sensor-r40-pinout.md

    Unfortunately i cannot say anything about the ambient light sensor but you can try reading the pinout.

    The BMI160 I2C pins are 11 and 12 and the interrupt pin is 8. I found them by brute force trying all combinations Joy

    here some code from my project:

    #include <Arduino.h>
    #include "RGBLed.h"
    #include <Wire.h>
    #include "BMI160Gen.h"
    
    int Sensor_R40_BMI160_I2C_ADR = 0x69;
    int Sensor_R40_BMI160_PIN_SDA = 11u;
    int Sensor_R40_BMI160_PIN_SCL = 12u;
    int Sensor_R40_BMI160_PIN_INT = 8u;
    
    // https://os.mbed.com/users/rominos2/code/RGBLed/
    RGBLed led(27, 28, 29);
    
    // use Nrf52 TWI(I2C) #1
    TwoWire WireBMI160(NRF_TWIM1, NRF_TWIS1, SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn, Sensor_R40_BMI160_PIN_SDA, Sensor_R40_BMI160_PIN_SCL);
    
    void setup() {
      WireBMI160.begin();
    
      // https://github.com/EmotiBit/EmotiBit_BMI160
      BMI160.begin(BMI160GenClass::Mode::I2C_MODE, WireBMI160, Sensor_R40_BMI160_I2C_ADR, Sensor_R40_BMI160_PIN_INT)
    }
    
    void loop() {
      BMI160.readMotionSensor();
    }

Children
No Data
Related