Page 1 of 1

bh1750 in deep sleep

Posted: 11 Mar 2018, 17:08
by mbr
Hi all,

I am trying to get bh1750 working under deep sleep.

My setup:
NodeMcu V3
BH1750 - I2C Address: 0x23 | Resolution_Low
BME280 - I2C Address: 0x76
YL-38 (Rain Sensor): Analog Input

In normal Mode all sensor elements work fine. I receive data in my moquitto MQTT service on raspberry pi v.3
Changing to deep sleep - all sensor elements work fine as well - as long "sleep delay" is lower/equal 60 (1 Min.).

When changing "sleep delay" to a value higher 60 (e.g.: 900 = 15 Min.) the ESP transmit all sensore data accurate - except BH1750 data.
For this sensor always 0 will be transmitted.

Any assistance/help is welcome
Franz-Josef

Re: bh1750 in deep sleep

Posted: 12 Mar 2018, 09:18
by TD-er
Sounds like the sensor may need a reset to operate properly.
This is done in lots of other sensor plugins, perhaps not in this one.
Maybe worth an issue on Github?

Re: bh1750 in deep sleep

Posted: 20 Mar 2018, 21:55
by cyberclwn
Hi,

I have a BH1750 connected to a Wemos D1 mini, with a deepsleep 0f 5 minutes.
And it is working like a charm.

The wemos also has a BMP280 connected on i2c (0x77, bh1750 is on 0x23).

But i have the resolution set to HIGH.
And have "Send sensor to sleep" not ticked.
Not sure if you have this on you version op ESPEasy, but thought i mention it.

So in my setup the BH1750 works great.
(I have 2 of these setups, both work great)