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.
- The power consumption is under the 0.01 when I only use the PIR sensor.
- 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); }``` -
https://forum.mysensors.org/topic/6961/nrf5-action/1659
That fixed it.
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