Soil Moisture Sensor on batteries with ESP07 running ESPHome - Start to Finish

  Рет қаралды 4,340

Taste The Code

Taste The Code

Күн бұрын

Пікірлер: 18
@JesusRocksAlways
@JesusRocksAlways 4 ай бұрын
Hello again, ignore my last comment, I figured it out. For others who may need help, connect your VCC of the sensor, in my case, the Capacitive Soil Sensor V2.0, to one of the digital output pins of your ESP32 and then set it HIGH upon waking out of deep sleep mode and to LOW just before the ESP32 goes back to sleep. - Sleep for an hour - ESP32 wakes up - Activate the soil sensor - Read the level - Email or text if level is above ~580 - Deactivate soil sensor - Set ESP32 into deep sleep mode - Rinse and repeat every hour, day, month, whatever you set it to So far, my 3.7v 18650 li-ion, 400mAh has not even dropped and it's been running for a day, waking up every hour for now. Once I'm convinced it works, time to set it to a daily wakeup and put it all into a portable container. This video was awesome, btw !
@TasteTheCode
@TasteTheCode 4 ай бұрын
Awesome, I'm glad you managed to figure it out, and yes, I haven't done this to mine yet but I will as it uses some power unnecessary. I was thinking about using a transistor to turn it on but your solution made me realize that I do not need to as it only uses a few milliamps. Do you maybe have the ESPHome configuration code to share?
@SlavkosHobbyChannel
@SlavkosHobbyChannel 4 ай бұрын
The video is the reason why I love doing things from scratch, it is fun, and you can learn a lot, but also is there a similar cheap version already made that can be connected with an assistant? probably not, so you enjoyed doing it, and also you made a great gadget, nice job!
@TasteTheCode
@TasteTheCode 4 ай бұрын
Even if there is a commercial product thst is cheaper and better made, it won't provide the learning experience. Thanks for the great words! 👍👍👍
@havemannolaf
@havemannolaf 3 ай бұрын
Thank you !
@TasteTheCode
@TasteTheCode 3 ай бұрын
You're welcome!
@jtauscher
@jtauscher 4 ай бұрын
Do yourself a favour and cover the pcb with hot glue or similar. Otherwise it will be destroyed by the humidity of the soil within 1-2 weeks. I "painted" them with hot glue and worked with a hot air gun to keep the layer thin :) Other than that - interesting project! p.s.: saw on second sight you covered the edge of the pcb. I coverd it completely including the smd components and drove it completely into the earth to have more accurate results.
@TasteTheCode
@TasteTheCode 4 ай бұрын
Thanks, that is a nice suggestion. I've seen people using nail polish to cover PCBs. I guess I can add some hot glue to the board and spread it using my hot air gun. I'll see how it goes. As for the edge, yes, I covered it with epoxy so to prevent any ingress in the board itself. I was considering to cover the whole thing but I was worried that I might mess up the capacitance and the readings.
@ristopirhonen3169
@ristopirhonen3169 4 ай бұрын
How long does it run with one charge?
@TasteTheCode
@TasteTheCode 4 ай бұрын
The run time greatly depends on the duty cycle of the deep sleep. I'm still testing this but if it runs for 30 seconds every 3 hours, it should last for about 45 days.
@XprecisionBR
@XprecisionBR 4 ай бұрын
What do you think of using the ESP-01S with those expansion boards like RGB LED, DHT11, etc? I'm testing it with CR123A batteries.
@TasteTheCode
@TasteTheCode 4 ай бұрын
I wanted to use it at first because I have plenty of them but the problem is that they do not have analog input. For things like I2C, they should be perfect.
@krusej23
@krusej23 4 ай бұрын
What does the moisture level correlate to? Is it volumetric water content?
@TasteTheCode
@TasteTheCode 4 ай бұрын
A capacitive soil moisture sensor measures the dielectric permittivity of the soil, which is indirectly related to the volumetric water content. They use an oscillating electrical field to measure the dielectric permittivity of the soil. The presence of water affects the capacitance of the sensor, because water molecules align with the electric field, this changes the capacitance value. This change in capacitance is then correlated with the soil's moisture content, outputted as a change in voltage.
@JesusRocksAlways
@JesusRocksAlways 4 ай бұрын
Hello all ! I have this running, however, the Capacitive sensor drains the battery even with the ESP32 is in deep sleep mode. Is there a way to "wake-up" the sensor when the ESP32 wakes up? (e.g. put both to sleep)
@TasteTheCode
@TasteTheCode Ай бұрын
Hey, yes. What I end up doing is to power the sensor from a pin on the ESP. When the ESP wakes up, it powers the pin high thus powering the sensor only then. Once the measurement is taken, the pin is pulled low to turn off the sensor and it then goes to sleep.
@thebatu89
@thebatu89 4 ай бұрын
Hi, have you tested it with espnow? Could it last longer since it doesn’t connect to wifi
@TasteTheCode
@TasteTheCode 4 ай бұрын
No I haven't. It might be an interesting thing to explore but I guess it will also need a receiver.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 35 МЛН
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
I tried finding Hidden Gems on AliExpress AGAIN! (SPECIAL Part 10)
15:11
463 Why most Arduino Soil Moisture Sensors suck (incl. solution)
10:59
Wi-fi Soil Moisture Sensor with ESPHome
7:58
Tech Dregs
Рет қаралды 18 М.
Buying, Programming, and Testing Capacitance Soil Moisture Sensors
10:44
Capacitive Soil Moisture Sensor V1.2 - Garden Test!
10:59
Gadget Reboot
Рет қаралды 38 М.
I tried finding Hidden Gems on AliExpress AGAIN! (Part 9)
15:00
GreatScott!
Рет қаралды 1 МЛН
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Рет қаралды 178 М.
Long-Term Soil Monitoring Installation
16:51
Modest Maker
Рет қаралды 1,5 М.
Preventing Plant Death With Technology
14:00
Emilostuff
Рет қаралды 135 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН