I have a BME280 so it reads pressure, humidity, and temperature. Set to do this every 6 seconds
I really need the BME280 sensor to be powered down between readings (while in deep sleep) otherwise it will consume power and heat up.
Deep sleep setting is sleep awake = 10 seconds on, sleep time = 60 seconds.
The supply to the BME280 is on GPIO1 and I also have an LED on GPIO3 (I have also tried GPIO0 and GPIO2 with the same result)
So I am simply setting using these rules:
Code: Select all
On System#Wake do
gpio,1,1
gpio,3,1
endon
On System#Sleep do
gpio,1,0
gpio,3,0
endon
Code: Select all
05-27-2019 11:08:43 Kernel.Notice 192.168.0.61 Controller EspEasy: SLEEP: Powering down to deepsleep...
05-27-2019 11:08:43 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: System#Sleep
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: System#NoSleep=30
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: SLEEP: Entering deep sleep in 30 seconds.
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: SW : GPIO 3 Set to 0
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: ACT : gpio,3,0
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: SW : GPIO 1 Set to 0
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: ACT : gpio,1,0
05-27-2019 11:08:13 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: System#Sleep
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: BME280#Pressure=990.39
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: BME280#Humidity=35.62
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: BME280#Temperature=23.84
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: BME280 : Barometric Pressure: 990.39
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: BME280 : Humidity: 35.62
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: BME280 : Temperature: 23.84
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: BME280 : Address: 0x76
05-27-2019 11:08:06 Kernel.Notice 192.168.0.61 Controller EspEasy: BME280: dew point 7.68C
05-27-2019 11:08:03 Kernel.Notice 192.168.0.61 Controller EspEasy: WD : Uptime 1 ConnectFailures 0 FreeMem 18616 WiFiStatus 3
05-27-2019 11:08:03 Kernel.Notice 192.168.0.61 Controller EspEasy: EVENT: System#NoSleep=10
05-27-2019 11:08:03 Kernel.Notice 192.168.0.61 Controller EspEasy: Webserver: start
Anyway, they go off as promised by the Syslog, but as soon as it goes into full deep sleep, the GPIOs come back on again!! They stay on until it comes back out of deep sleep! Do I have to put in pull-down resistors?
Why is this??
Thanks for any help