SOLVED : SI7021 T/H Powerdrain NRF52



  • Hey,

    I got a question, I've built a PCB with a PIR-motion detector and a SI7021 temp/Hum sensor.

    It all works great except for the power usage when the sensor is asleep.

    Two scenarios happen, that I can't quite explain, but hopefully someone here can.

    1. The power consumption is under the 0.01 when I only use the PIR sensor.
    2. When I include sensor.begin(); the sleeping current jumps to 0.46 mA.

    When I comment the "sensor.begin();" out it returns to 0.01mA.

    schematic etc: https://www.openhardware.io/view/617/NRF52-Wall-Node-3-AAA

    -- Might it be that is has something to do with it using a NRF52?

    #define MY_DEBUG
    
    #define MY_RADIO_NRF5_ESB
    #define MY_NODE_ID 214
    
    #include <MySensors.h>
    
    #define SKETCH_NAME "PIR TESTING"
    #define SKETCH_VERSION "v0.1"
    
    int PIRLED = 29;
    int ActLED = 6;
    int PIR_pin = 2;
    
    int a;
    int b;
    
    #include <Wire.h>
    #include <SI7021.h>
    
    SI7021 sensor;
    
    
    void setup() {
      Serial.begin(115200);
      sensor.begin();
    
      pinMode(PIRLED, OUTPUT);
      pinMode(ActLED, OUTPUT);      
      pinMode(PIR_pin, INPUT);        
    }
    
    void loop() {
    sleep(5000);
    a = digitalRead(PIR_pin);
    Serial.println(a);
    delay(500);
      
    }```



Log in to reply
 

Suggested Topics

  • 87
  • 7
  • 2
  • 8
  • 1
  • 9

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts