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 997 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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      8

      Online

      12.0k

      Users

      11.2k

      Topics

      113.4k

      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