Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. SOLVED : SI7021 T/H Powerdrain NRF52

SOLVED : SI7021 T/H Powerdrain NRF52

Scheduled Pinned Locked Moved Hardware
2 Posts 1 Posters 809 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Omemanti
    wrote on last edited by Omemanti
    #1

    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);
      
    }```
    1 Reply Last reply
    0
    • O Offline
      O Offline
      Omemanti
      wrote on last edited by
      #2

      https://forum.mysensors.org/topic/6961/nrf5-action/1659

      That fixed it.

      1 Reply Last reply
      2
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      20

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular