bh1750 in deep sleep

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mbr
New user
Posts: 1
Joined: 11 Mar 2018, 10:30

bh1750 in deep sleep

#1 Post by mbr » 11 Mar 2018, 17:08

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

TD-er
Core team member
Posts: 8738
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: bh1750 in deep sleep

#2 Post by TD-er » 12 Mar 2018, 09:18

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?

cyberclwn
Normal user
Posts: 21
Joined: 25 Aug 2017, 21:19

Re: bh1750 in deep sleep

#3 Post by cyberclwn » 20 Mar 2018, 21:55

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests