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.
1 out of 2
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
Sleep mode for bmp280
Hardware • 20 Feb 2018, 13:24 • fishermans 5 Feb 2024, 18:30 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41