Capacitive Soil Moisture Sensor V1.2 - Garden Test!

  Переглядів 37,714

Gadget Reboot

Gadget Reboot

5 років тому

Looking at the principles of operation of the Capacitive soil moisture sensor, testing its output in wet to dry conditions, and taking it out to the garden for a real soil test!
These sensors on Amazon (affiliate links):
Amazon.com: amzn.to/2LJ6kLS
Amazon.ca: amzn.to/2JnQDrV
Capacitive Sensor References:
Capacitive-Based Liquid Level Sensing Sensor Reference
Design
www.ti.com/lit/ug/tidu736a/tid...
The Fringe-Capacitance of Etching Holes for CMOS-MEMS
www.mdpi.com/2072-666X/6/11/14...
Patreon: / gadgetreboot
Pinterest: www.pinterest.ca/GadgetReboot
Twitter: @GadgetReboot / gadgetreboot

КОМЕНТАРІ: 87
@thedude6736
@thedude6736 5 років тому
Very well explained, thank you very much!
@fleaniswerkhardt4647
@fleaniswerkhardt4647 5 років тому
Excellent video. You demystify what's going on very well and actually make it interesting.
@GadgetReboot
@GadgetReboot 5 років тому
Thanks!
@delphitexas
@delphitexas 4 роки тому
Excellent test and a real electronics explanation. Wonderful tutorial.
@preecharouyprasert3012
@preecharouyprasert3012 4 роки тому
Thanks for good explanation.
@artantme
@artantme 3 роки тому
thank you! finally i understood how it really works
@TrentSterling
@TrentSterling 5 років тому
Finally! This is the sensor Ive been waiting a month for so far! Come on ali!
@GadgetReboot
@GadgetReboot 5 років тому
I was hoping to test it out a lot sooner and now I guess the ground is going to be frozen in a couple of months so it was now or never! It seems to be very useable from preliminary testing.
@TrentSterling
@TrentSterling 5 років тому
Thank you very much for the tip about epoxy. Gonna order that from something closer to home!
@PhilippBlum
@PhilippBlum 5 років тому
I looked into the datasheet of the IC and didn't understand how this works. Thanks for the explanation. This circuit design is really cheap, but effective. Amazing how people solve some problems :)
@GadgetReboot
@GadgetReboot 5 років тому
Yeah I learned a lot when researching this sensor. Now that spring is here, maybe I will have more projects with it coming up.
@PhilippBlum
@PhilippBlum 5 років тому
@@GadgetReboot Maybe I find the time to integrate this sensor into RIOT OS :) Would make it simpler. So that I can use CoAP over 6LoWPAN. Creating a nice app to get all sensor data combined into one application.
@electronic7979
@electronic7979 5 років тому
Useful video
@simonlamarche1
@simonlamarche1 4 роки тому
i would love more videos about those.
@jmaguilarr
@jmaguilarr 4 роки тому
very good , thanks
@GaryMcKinnonUFO
@GaryMcKinnonUFO 4 роки тому
The output range in these things seems to change once you hook up a relay and pump. nice test btw, thanks.
@brucecalder7752
@brucecalder7752 3 роки тому
Thanks for this great video. I'm using one of these in my garden, connected to an ESP8266 but I am getting erratic values. Sometimes it is steady and decreasing just a little at a time, which is what I would expect. Other times it jumps up or down by 50%. If I move it just a little then it definitely changes big time. Any thoughts on how I can stabilize the readings?
@cluberic
@cluberic 5 років тому
I just bought 10 of these and I was looking for a video to teach me about them. This was very helpful. Do you have a video on just the 555 chip?
@GadgetReboot
@GadgetReboot 5 років тому
I am actually going to be doing a 555 video sometime soon, not sure exactly when it might take a couple of weeks because I’m going to mix it in with some other things like a hex inverter oscillator and maybe a few other logic circuits with individual gates and a 4017 counter etc. Getting back to the pre-Arduino days.
@Chrfilmer
@Chrfilmer 4 роки тому
*THX*
@vtech8716
@vtech8716 5 років тому
thanks
@hikikoyuki5419
@hikikoyuki5419 3 роки тому
is it possible to read the capacitance of the probe using dc out? I need that value for my program to work
@NaturalBornCamper
@NaturalBornCamper 3 роки тому
Have you tried if you see a difference after a few days? Once the water sets around the soil, I'm wondering if the values of "humid soil" actually work. Soil that you just watered is not the same a few hours later
@gasperini20
@gasperini20 4 роки тому
hello, thanks for this video. I wanted to ask you if by chance you could explain to me more precisely the internal circuit of the sensor
@Ed19601
@Ed19601 3 роки тому
There is a 555 oscillator that feeds signal to voltage divider formed by a 10 k resistor and the reactance of the probe arduinodiy.wordpress.com/2020/08/24/soil-moisture-sensors/ And arduinodiy.wordpress.com/2018/06/28/a-capacitive-soil-humidity-sensor-part-4/
@squalazzo
@squalazzo 5 років тому
putting epoxy around the components and socket on top? And maybe a transparent heat shrinking tube, too...
@GadgetReboot
@GadgetReboot 5 років тому
Yeah I could use epoxy but I also wondered if I could use something else that can be removed with a solvent if I ever needed to access the components for some reason but for the cost of the probe I probably don’t need to worry about that.
@squalazzo
@squalazzo 5 років тому
hot glue then... easy removable... lifehacker.com/5676237/use-rubbing-alcohol-to-remove-hot-glue-from-nearly-anything
@mahesh732
@mahesh732 4 роки тому
hi, how long does it take to get a reading? we'll need to know this when using it with a microcontroller. thx!
@GadgetReboot
@GadgetReboot 4 роки тому
If the sensor is already powered, it is always giving out an analog voltage that can be read immediately but if the sensor is going to be powered up only when it’s time to take a reading, that would have to be measured. If I can remember, I’ll see how long it takes to stabilize when powered on.
@RickThePeasant
@RickThePeasant 4 роки тому
5 times the output rc time constant to reach 98% the value. Should be good after 5 seconds of powering the sensor.
@ojkolsrud1
@ojkolsrud1 4 роки тому
Isn't it more important to get the reference values from actual dry and moist soil? The ratio of the dielectric constant of water/air is probably quite different than moist soil/dry soil. So for calibrating this using a micro controller, I would find some soil I define as dry, note the value, and water it to make a definition of moist. Then I'd use those values for the micro controller to determine when it's time to water the soil. Thank you very much for this explanation. I see that I've bought the crap kind of sensor, the electrolysis one with two prongs with exposed copper.
@GadgetReboot
@GadgetReboot 4 роки тому
Yeah exposed copper is probably not going to do well in the long run. This was overall more of a first experience with the sensor to get an idea how to use it. even within the same environment, maybe the sensor needs to be observed for the most dry and most wet conditions a certain section of a garden may experience with various sun and shade conditions. There’s a lot of variables so it just needs to be characterized for every unique installation.
@ajocius
@ajocius 5 років тому
Hi, will length /width of the cable influence readings from sensor? Typically you do not want to have electronics near to the soil, that is getting water. So if you place your measuring device (ESP, Arduino, RaspPi, etc) 10-15 meters away, there will be long cable. I am testing this sensor with ESP32 runnign Micropython, but so far do not get reliable result. My cable is about 3 meters long. Curiuos if anybody has this reliably working in their gardening projects.
@GadgetReboot
@GadgetReboot 5 років тому
I haven’t tested it with long cables from the output to the Arduino input but it’s possible there could be some noise pick up if it works at shorter lengths. Three things I might try are 1.Twist the signal wire with the ground wire - A spare ethernet cable would have several twisted pairs in it so a certain pair could be used for signal and ground. 2. Try a cable that has an extra ground shield, certain audio cables or maybe even an old coax cable might work, connect the signal on the normal conductor and connect the outer shield to ground only on the measuring ESP side. If the shielded cable has two conductors inside plus the shield wire, run signal and ground through it and connect the shield only to ESP side ground. 3. Maybe a simple RC filter on the receiving signal input would help filter. No specific values in mind but maybe a few tens or hundreds of ohms in series with the signal line coming in and then a capacitor to ground after the resistor, right at the ESP input. Maybe 1 nano to 1 uF experimentally. If I can find some long wires here, maybe I can try to duplicate the set up and see if I get a difference between long and short wires and if I can fix it.
@ajocius
@ajocius 5 років тому
@@GadgetReboot Thanks, will try different cables, and will keep testing.
@Conservator.
@Conservator. 4 роки тому
Could you epoxy the whole sensor (components) to make it waterproof? Iow is epoxy harmful to the smd components?
@GadgetReboot
@GadgetReboot 4 роки тому
I might do some testing to check different ways of waterproofing later but I’m not sure if there’s any adverse effects in terms of chemical interaction with the components or issues with thermal dissipation and all of that. When I get into researching that I’m sure there’s going to be a lot of info to look at.
@Conservator.
@Conservator. 4 роки тому
Gadget Reboot tx and tx in advance.
@adamsdex
@adamsdex 3 роки тому
Hi Can you convert the analog signal to digital?
@GadgetReboot
@GadgetReboot 3 роки тому
Reading the analog signal with an op amp comparator configuration would convert it to digital where the output changes low to high when a certain analog input threshold is reached. Using hysteresis gives even better results (noise immunity). www.ti.com/lit/ug/tidu020a/tidu020a.pdf
@RaadYacu
@RaadYacu 5 років тому
So if I were to use this for low powered applications, the 555 timer would drain the battery, no?
@GadgetReboot
@GadgetReboot 5 років тому
If I wanted a low power design I would design a load switch circuit whether it’s just a MOSFET high side driver or an actual IC load switch that I can come out of sleep mode occasionally and power on this sensor, take the reading, then power it off and go back to sleep. I don’t need to constantly know what the moisture is, maybe once per hour or less often is good enough. Even just once per day if I plan to do watering only at a specific time like early in the morning or just when the sun is going down take the reading and then choose if I need to water, and maybe one or two readings throughout the day when the sun is supposed to be out just to make sure what happens between the day and the night.
@RaadYacu
@RaadYacu 5 років тому
I used an n-mosfet for such as a load switch contolling the ground by the Gate of the mosfet controlled by the MCU ( esp32 ). Thanks for the verification.
@TrentSterling
@TrentSterling 5 років тому
Thank you for asking about the low power application. This channel has lots of good plans.
@RickThePeasant
@RickThePeasant 4 роки тому
You would switch the supply on to the probe just before you take the ADC sample, say 5s on, 3595s off, sample the ADC after 4s. Sample the soil moisture 24 times a day.
@arielheller7912
@arielheller7912 5 років тому
In what 555 voltage input?, its getting 3.34v output. Thanks
@GadgetReboot
@GadgetReboot 5 років тому
The sensor has a 3.3 V regulator so it takes 5 V in but then runs lower.
@arielheller7912
@arielheller7912 5 років тому
@@GadgetReboot Yes i see, but how much lower? The regular output it 3.3v volt ,and the output 555 in leg 3 also 3.3v ,so it should be little higher
@GadgetReboot
@GadgetReboot 5 років тому
With 5 V power, the 555 power is 3.3, output dry is 2.8, output wet is 1.5.
@dyaneshd2742
@dyaneshd2742 4 роки тому
should we seal the sensor of its sides??
@GadgetReboot
@GadgetReboot 4 роки тому
Yes because water can get in so I used epoxy
@mschmidt2801
@mschmidt2801 4 роки тому
I usually see programmers using water and air as the 2 extremes (wet and dry) to calibrate the sensor, but that's not entirely correct. As far as I understood the capacitive sensor, it deppends on the conductivity of the medium in which it is inserted right? Pure water (or water with food colouring as well) has not a great conductivity, at least not as high as water + soil because of minerals. So while calibrating like this, you might see moisture levels in wet soil higher than pure water, which would be weird. Am I correct? (Sorry for bad english)
@GadgetReboot
@GadgetReboot 4 роки тому
The capacitive sensor operates on the dielectric properties of the medium rather than the electrical conductivity but similarly I’m sure the dielectric of soil is going to be different from air or water so the sensor would need to be calibrated probably even in different sections of a landscape where some might have clay soil and some might be store-bought potted soil mix. Now that it is summer here again I plan to continue the experiments so hopefully more will be learned.
@mschmidt2801
@mschmidt2801 4 роки тому
@@GadgetReboot Thank you for your answer. May I ask something else? I tried to understand how the capacitive sensor works but I really can't make it; if it deppends on the medium, how putting a plastic bag around doesn't prevent it from obtaining the humidity? When I search for capacitors I get the classic picture of 2 plates with a dieletric in between, but this sensor has only one probe. Shouldn't the soil be somewhere between the plates?
@GadgetReboot
@GadgetReboot 4 роки тому
The electric field between the two plates consists of two sections. The first is directly side-by-side flat on the board which is what you are familiar with, you just have the two copper strips beside each other and there is air in between and whatever coating on the circuitboard, but then there’s the other electric field radiating actually out of the board from one conductor in a semi circle coming back to the other, similar to the lines of flux on a magnetic field diagram radiating out in circles away from one part of the structure and coming back to another part of the system. And that’s where the soil gets to interfere with that portion of the electric field radiating out from one plate and being obstructed as it tries to return to the other plate, changing the dielectric properties.
@drewg6880
@drewg6880 3 роки тому
Will this work with stonewool?
@GadgetReboot
@GadgetReboot 3 роки тому
Experimenting would be best, it would depend how it holds moisture, if it's uniform enough and stays distributed similar to soil. Since the sensor can detect levels for completely dry air and a wet glass of water, as long as there's some amount of moisture around it, it could work after some observation of the output levels between wet and dry material it's in.
@ahmedel-kharbotly7753
@ahmedel-kharbotly7753 5 років тому
how do you connect the sensor to the voltmeter
@GadgetReboot
@GadgetReboot 5 років тому
Using DuPont jumpers and alligator clips, I had the meter on the analog sensor output and ground and taped it so it wouldn’t fall apart while transporting.
@ahmedel-kharbotly7753
@ahmedel-kharbotly7753 5 років тому
@@GadgetReboot thank you too much
@Pokornz
@Pokornz 3 роки тому
Don't forget the sensor is very non-linear. In my testing, it is much less sensitive in the top half, which is impractical.
@DougPowell01
@DougPowell01 Рік тому
Next project is to add an opamp to rescale the voltage for 0 to 10 V to represent 0% to 100% moisture content.
@jonnyreh001
@jonnyreh001 6 місяців тому
Why? You can do this on the side of the mcu. :)
@ariza6721
@ariza6721 4 роки тому
can we put in 5v pin in arduino?
@GadgetReboot
@GadgetReboot 4 роки тому
The sensor output can go to the 5 V Arduino analog input.
@torres051kr
@torres051kr 3 роки тому
We built a circuit on the breadboard and measured the frequency. When we measured the frequency in front of the Cprobe, we had about 250 kHZ. For your information, we excluded the 3.3 regulator part. I'm worried because 370kHZ is not coming out. Please give me some advice if possible!
@GadgetReboot
@GadgetReboot 3 роки тому
the 555 has all kinds of different variations from different manufacturers and they all may have different maximum frequencies, and the frequency on the PCB version of a circuit might be better performing than a breadboard version in general as frequencies increase, so it’s hard to say if there’s anything that can be done on the bread Board to match the PCB performance even if the same version of 555 chip is used. www.quora.com/What-is-the-range-of-output-frequency-for-a-555-timer-IC
@torres051kr
@torres051kr 3 роки тому
Gadget Reboot Thank you for your answer!
@DingoAteMeBaby
@DingoAteMeBaby 5 років тому
why didnt you also epoxy the electronics?
@GadgetReboot
@GadgetReboot 5 років тому
In case I still wanted to be able to probe any of the components while testing and evaluating. I’m going to be using that probe again soon actually and I plan to enclose the electronics in another container that might also have a battery and other things like ESP 8266 and that should be sealed to protect everything that is above ground for the experiment.
@jeanpierredaviau7478
@jeanpierredaviau7478 4 роки тому
I doubt you can use the map funcion: esp32.com/viewtopic.php?f=19&t=13235&p=52339#p52339
@GadgetReboot
@GadgetReboot 4 роки тому
Yeah it may not be linear but I just look for empirical thresholds that work in different settings such as indoor potted vs outdoor in ground and trigger a watering session. I am planning more follow-up experiments, this one was just more getting started with using the sensor.
@vazquezjm
@vazquezjm 4 роки тому
Do you have an estimated area this sensor is capable of measuring? To cover the electronics, you can you use something like this: www.thingiverse.com/thing:2952434
@Lisas4us
@Lisas4us 3 роки тому
I got a couple of them, unfortunately only one works. The others all have a similar erratic behaviour. I double checked output Volages with Multimeter. So I know. 100% is 1.2V and 0% is 2.1V. now when i put the unit in water or in air, I get appropiate stable readings. But at the moment I put it into the earth it starts to act unpredictable, putting out instable Voltages between 3,5 and 1 Volts. I disconnect the Data from the A/D converter and measure output voltage and can confirm the strange output of the moisture sensor. Now i am thinking moisture and conductivity, so I enclosed the entire device including the now soldered on wires in epoxy, still have the same erratic behaiour when in earth. I am so tired of this shit.
@Ostrica391
@Ostrica391 5 років тому
the guy knows his shit..
@drfritz142
@drfritz142 4 роки тому
maybe I need an outdoor meter. Yuck. LOL :-)
@jayweaver5574
@jayweaver5574 3 роки тому
That sensor has a ground plain on the backside
463 Why most Arduino Soil Moisture Sensors suck (incl. solution)
10:59
Andreas Spiess
Переглядів 60 тис.
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 8 млн
Plant Moistures Sensors Tests and Secrets to Success
8:04
Make It or Break It
Переглядів 8 тис.
#207 Why most Arduino Soil Moisture Sensors suck (incl. solution)
10:59
Andreas Spiess
Переглядів 467 тис.
Let's build a voltage multiplier!
16:32
Ben Eater
Переглядів 1,8 млн
EEVblog 1474 - Can You Measure Capacitors IN Circuit?
23:27
EEVblog
Переглядів 90 тис.
Buying, Programming, and Testing Capacitance Soil Moisture Sensors
10:44
DIY mass spectrometer measures potassium in dietary salt substitute
26:45
Applied Science
Переглядів 365 тис.
How do antennas work?
35:31
RCModelReviews
Переглядів 1,5 млн
How INDUCTOR's work & How to make your own
15:55
Schematix
Переглядів 842 тис.
I bought 1000 meters of wire to settle a physics debate
22:49
AlphaPhoenix
Переглядів 2,9 млн
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,3 млн
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 711 тис.
Samsung UE40D5520RU перезагружается, замена nand памяти
0:46
Слава 100пудово!
Переглядів 3,8 млн
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
Теперь это его телефон
0:21
Хорошие Новости
Переглядів 897 тис.