<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BME280&#x2F;BMP280 high consumption when sleeping]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">First, I'd like to thank you all for the hard working building mysensors and nodemanager. This's an incredible and motivanting way of learn and build DIY iot devices even by beginners like me. So my big thank you!</p>
<p dir="auto">About my problem, I'm getting 0.50mA when sleeping using BME280/BMP280, just arduino(pro mini) and radio gives me 5uA. I've tried to power the sensor from digital pins using PowerManager power(5,6), but i'm still getting 0.50mA when sleeping.</p>
<p dir="auto">It seems like the i2c bus is not being disabled when enter on sleep mode.</p>
<p dir="auto">Any help would be appreciated.</p>
]]></description><link>https://forum.mysensors.org/topic/11220/bme280-bmp280-high-consumption-when-sleeping</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 08:27:16 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11220.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Jun 2020 14:31:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Mon, 22 Jun 2020 00:03:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trs-80" aria-label="Profile: TRS-80">@<bdi>TRS-80</bdi></a> said in <a href="/post/106271">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bbastos" aria-label="Profile: bbastos">@<bdi>bbastos</bdi></a> said in <a href="/post/106270">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto">7uA during sleep</p>
</blockquote>
<p dir="auto">Sounds pretty good to me!</p>
<p dir="auto">You calling it done then?  :)</p>
</blockquote>
<p dir="auto">Yes, it`s pretty good! But I'd like to use nodemanager on my nodes, it's so much easier :grin: I'll open an issue on nodemanager's github.</p>
<p dir="auto">Thank you so much for the help!</p>
]]></description><link>https://forum.mysensors.org/post/106272</link><guid isPermaLink="true">https://forum.mysensors.org/post/106272</guid><dc:creator><![CDATA[bbastos]]></dc:creator><pubDate>Mon, 22 Jun 2020 00:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Sun, 21 Jun 2020 23:44:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bbastos" aria-label="Profile: bbastos">@<bdi>bbastos</bdi></a> said in <a href="/post/106270">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto">7uA during sleep</p>
</blockquote>
<p dir="auto">Sounds pretty good to me!</p>
<p dir="auto">You calling it done then?  :)</p>
]]></description><link>https://forum.mysensors.org/post/106271</link><guid isPermaLink="true">https://forum.mysensors.org/post/106271</guid><dc:creator><![CDATA[TRS-80]]></dc:creator><pubDate>Sun, 21 Jun 2020 23:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Sun, 21 Jun 2020 23:42:23 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!</p>
<p dir="auto">Either way, using mysensors library directly with <a class="plugin-mentions-user plugin-mentions-a" href="/user/rvendrame" aria-label="Profile: rvendrame">@<bdi>rvendrame</bdi></a> tips I was able to get 7uA during sleep.</p>
<pre><code>// Enable debug prints to serial monitor
#define MY_DEBUG
//#define MY_REPEATER_FEATURE

// Enable and select radio type attached
#define MY_RADIO_NRF24

#define MY_NODE_ID 100

//#define MY_PARENT_NODE_ID

#include &lt;SPI.h&gt;
#include &lt;MySensors.h&gt;
#include &lt;Adafruit_Sensor.h&gt;
#include &lt;Adafruit_BME280.h&gt; // I had to change I2C address in library for 0x76 (line 32)
#include &lt;Wire.h&gt;

Adafruit_BME280 bme; // I2C

#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1
#define CHILD_ID_PRESS 2

// MyMessage to controler
MyMessage msgT1(CHILD_ID_TEMP, V_TEMP);
MyMessage msgP1(CHILD_ID_PRESS, V_PRESSURE);
MyMessage msgF1(CHILD_ID_PRESS, V_FORECAST);
MyMessage msgH1(CHILD_ID_HUM, V_HUM);

void presentation() {
  // Send the sketch version information to the gateway and Controller
  sendSketchInfo("BME280 Test", "1.0");
  present(CHILD_ID_TEMP, S_TEMP);
  present(CHILD_ID_PRESS, S_BARO);
  present(CHILD_ID_HUM, S_HUM);  
}

void setup() {
  //GND
  pinMode(5,OUTPUT);
  digitalWrite(5, LOW);
  //VCC
  pinMode(6,OUTPUT);
  digitalWrite(6, HIGH);
  //Baudrate
  Serial.begin(9600);
  //BME280 init  
  initBme280();
  //Initial reading
  serverUpdate(); 
}


void loop() { 
  digitalWrite(6, HIGH);
  initBme280();
  serverUpdate();
  //delay(200);
  digitalWrite(6, LOW);
  digitalWrite(SDA, LOW); // disable internal pullup
  digitalWrite(SCL, LOW);  // disable internal pullup  
  sleep(60000); //sleep 1 minute
}


void initBme280() {
  if (!bme.begin(0x76)) {
    Serial.println("Could not find a valid BME280 sensor, check wiring!");
    while (1);
  }
}

// used to read sensor data and send it to controller
void serverUpdate() {
  double T, P, H;
  T=bme.readTemperature();
  P=bme.readPressure()/100.0;
  H=bme.readHumidity();
  delay(10);
  send(msgT1.set(T, 1));
  send(msgP1.set(P, 1));
  send(msgH1.set(H,1));
      
   // unmark for debuging
  Serial.print("T = \t"); Serial.print(T, 1); Serial.print(" C\t");
  Serial.print("P = \t"); Serial.print(P, 1); Serial.print(" mBar\t");
  Serial.print("H = \t"); Serial.print(H, 1); Serial.print(" %\t");
}
</code></pre>
]]></description><link>https://forum.mysensors.org/post/106270</link><guid isPermaLink="true">https://forum.mysensors.org/post/106270</guid><dc:creator><![CDATA[bbastos]]></dc:creator><pubDate>Sun, 21 Jun 2020 23:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Sun, 21 Jun 2020 23:26:19 GMT]]></title><description><![CDATA[<p dir="auto">Second picture, left one, middle left of board, large component with 3 leads looks like a regulator to me.</p>
<p dir="auto">If you bought on Ali, you should have detailed purchase records, take a close look at them it should state 5v or 3.3v pretty clearly.</p>
]]></description><link>https://forum.mysensors.org/post/106269</link><guid isPermaLink="true">https://forum.mysensors.org/post/106269</guid><dc:creator><![CDATA[TRS-80]]></dc:creator><pubDate>Sun, 21 Jun 2020 23:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Sun, 21 Jun 2020 23:05:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/memphis007" aria-label="Profile: Memphis007">@<bdi>Memphis007</bdi></a> said in <a href="/post/106267">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto">Hi,<br />
Looks like you're using the 5v version of the bme280, there's an extra 3.3v regulator on this board, this could be the culprit.</p>
</blockquote>
<p dir="auto">I really didn't paid too much attention when buying. I've taken better pictures of bme280 and bmp280, would you mind help me identifying?</p>
<p dir="auto"><img src="/assets/uploads/files/1592780437027-whatsapp-image-2020-06-21-at-19.54.07.jpeg" alt="WhatsApp Image 2020-06-21 at 19.54.07.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1592780503019-whatsapp-image-2020-06-21-at-19.53.43.jpeg" alt="WhatsApp Image 2020-06-21 at 19.53.43.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is there any way to modify the 5v version to works with 3.3v?</p>
]]></description><link>https://forum.mysensors.org/post/106268</link><guid isPermaLink="true">https://forum.mysensors.org/post/106268</guid><dc:creator><![CDATA[bbastos]]></dc:creator><pubDate>Sun, 21 Jun 2020 23:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Sun, 21 Jun 2020 21:48:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Looks like you're using the 5v version of the bme280, there's an extra 3.3v regulator on this board, this could be the culprit.</p>
]]></description><link>https://forum.mysensors.org/post/106267</link><guid isPermaLink="true">https://forum.mysensors.org/post/106267</guid><dc:creator><![CDATA[Memphis007]]></dc:creator><pubDate>Sun, 21 Jun 2020 21:48:49 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Fri, 19 Jun 2020 19:14:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/trs-80" aria-label="Profile: TRS-80">@<bdi>TRS-80</bdi></a> said in <a href="/post/106194">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto">I am still one of the newer people around here, so I could be off base, but my first thought was "how are you measuring that?"</p>
</blockquote>
<p dir="auto">You need to put the digital multimeter in series with your circuit +- like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1592593992028-whatsapp-image-2020-06-19-at-16.11.36.jpeg" alt="WhatsApp Image 2020-06-19 at 16.11.36.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1592594019143-whatsapp-image-2020-06-19-at-16.11.30.jpeg" alt="WhatsApp Image 2020-06-19 at 16.11.30.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Please don't mind the bad quality pictures.</p>
]]></description><link>https://forum.mysensors.org/post/106198</link><guid isPermaLink="true">https://forum.mysensors.org/post/106198</guid><dc:creator><![CDATA[bbastos]]></dc:creator><pubDate>Fri, 19 Jun 2020 19:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Fri, 19 Jun 2020 19:09:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rvendrame" aria-label="Profile: rvendrame">@<bdi>rvendrame</bdi></a> said in <a href="/post/106189">BME280/BMP280 high comsumption when sleeping</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bbastos" aria-label="Profile: bbastos">@<bdi>bbastos</bdi></a> , welcome to mySensors.  Try to add these lines before the sleep():</p>
<pre><code>digitalWrite( A4 , LOW ); 
digitalWrite( A5 , LOW ); 
</code></pre>
<p dir="auto">Stills unclear why, but it worked for me at least.</p>
<p dir="auto">Reference:  <a href="https://forum.mysensors.org/post/99876">https://forum.mysensors.org/post/99876</a></p>
</blockquote>
<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/rvendrame" aria-label="Profile: rvendrame">@<bdi>rvendrame</bdi></a>! I'll surely try, the only problem is that I don't have control over sleep function, it's encapsulated in nodemager. I'll try to find the best place to put the code you've sugested.</p>
]]></description><link>https://forum.mysensors.org/post/106197</link><guid isPermaLink="true">https://forum.mysensors.org/post/106197</guid><dc:creator><![CDATA[bbastos]]></dc:creator><pubDate>Fri, 19 Jun 2020 19:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Fri, 19 Jun 2020 17:41:41 GMT]]></title><description><![CDATA[<p dir="auto">I am still one of the newer people around here, so I could be off base, but my first thought was "how are you measuring that?"</p>
]]></description><link>https://forum.mysensors.org/post/106194</link><guid isPermaLink="true">https://forum.mysensors.org/post/106194</guid><dc:creator><![CDATA[TRS-80]]></dc:creator><pubDate>Fri, 19 Jun 2020 17:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to BME280&#x2F;BMP280 high consumption when sleeping on Fri, 19 Jun 2020 17:08:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bbastos" aria-label="Profile: bbastos">@<bdi>bbastos</bdi></a> , welcome to mySensors.  Try to add these lines before the sleep():</p>
<pre><code>digitalWrite( A4 , LOW ); 
digitalWrite( A5 , LOW ); 
</code></pre>
<p dir="auto">Stills unclear why, but it worked for me at least.</p>
<p dir="auto">Reference:  <a href="https://forum.mysensors.org/post/99876">https://forum.mysensors.org/post/99876</a></p>
]]></description><link>https://forum.mysensors.org/post/106189</link><guid isPermaLink="true">https://forum.mysensors.org/post/106189</guid><dc:creator><![CDATA[rvendrame]]></dc:creator><pubDate>Fri, 19 Jun 2020 17:08:36 GMT</pubDate></item></channel></rss>