Hi all
I have a simple moisture sensor code, it works good since weeks on two esp8266 nodemcu and the following powering circuit (3,3v from battery/solar power and LDO as described in this link Power ESP32/ESP8266 with Solar Panels and Battery | Random Nerd Tutorials)
Now I’ve tried this same code in 2 different ESP32 WROOM board using the same powering circuit:
but with this boards and this powering circuit the device wont connect to the WIFI and it appears OFFLINE, while if I supply the device with 5V from usb port it works as expected.
How do you power your ESP32 project from battery?
Is there something I’m missing or doing wrong with ESP32 boards?
P.S. with Arduino code and same board/powering circuit the wifi connection works well …
Thanks very much anyone could help
esphome:
name: esp32-soil-sensor
platform: ESP32
board: mhetesp32minikit
#board: esp32doit-devkit-v1
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "4ac70b8af3f1d483e0b1b53726cfdbd0"
wifi:
ssid: !secret wifi_username
password: !secret wifi_password
#output_power: 10
# Deep Sleep Feature. Needs adjustments...
#deep_sleep:
# run_duration: 30s
# sleep_duration: 60min
sensor:
- platform: adc
pin: GPIO35
name: esp32 Soil Moisture Value
id: "esp32_soil_sensor_value"
update_interval: 3s
unit_of_measurement: "%"
accuracy_decimals: 0
icon: "mdi:flower"
attenuation: 11db
filters:
- median:
window_size: 7
send_every: 4
send_first_at: 1
- calibrate_linear:
- 3.04 -> 0.00
- 1.30 -> 100.00
- lambda: |
if (x < 0) return 0;
else if (x > 100) return 100;
else return (x);
binary_sensor:
- platform: template
name: esp32 Soil Moisture Status
device_class: moisture
#Change this value to determine desire wetness of soil
lambda: |-
if (id(esp32_soil_sensor_value).state > 35) {
return true;
} else {
return false;
}
- platform: status
name: esp32 Soil Moisture Online