463 Why most Arduino Soil Moisture Sensors suck (incl. solution)

Поділитися
Вставка

КОМЕНТАРІ • 390

  • @AndreasSpiess
    @AndreasSpiess  Рік тому +82

    This is a re-upload of video#207 of June 17, 2018. Some other solutions proposed by the viewers are:
    - Connect an output pin of the MCU instead of VCC to the sensors and switch it to high only for measurement. This reduces the time the current is flowing
    - Use other probe materials like steel, nails, or even gold-plated material
    The "green stuff" is copper-oxide for sure not healthy, but it should not hurt the plants in minor concentrations. The same happens at the Statue of Liberty, BTW.
    Some viewers also used nail polish to protect the edges.
    And it seems that sensors with manufacturing errors are in the market. Search for the "Flaura - Smart Plant Pot" channel

    • @FAB1150
      @FAB1150 Рік тому +5

      Ah, I knew I recognized the sensor in a plastic bag! :)

    • @TobyRobb
      @TobyRobb Рік тому +2

      For resistive probes AC reduces corrosion i have found..The control circuitry is more complex however.

    • @rak3shpai
      @rak3shpai Рік тому +7

      I don't know if it will help extend the life of the sensor, but another possible optimisation is to power the sensor from the MCU's pins such that the polarity of the sensor can be flipped in software. Then, when a reading is needed, a polarity can be chosen at random to take the reading. The assumption is that the electrolysis reaction can be reversed by reversing the polarity.

    • @user255
      @user255 Рік тому +4

      It is not copper oxide. CuO is black and Cu2O is red. It is some mixture of copper hydroxide/carbonate. Maybe Cu2(OH)2CO3 and some other copper compounds also.

    • @kwinzman
      @kwinzman Рік тому +6

      Why did you re-upload the 5 year old video?

  • @jurjenbos228
    @jurjenbos228 Рік тому +7

    I tried to measure moisture 45 years ago with two wires, and found out it worked for about a day. When I asked my teacher, he introduced me into the wonderful world of electrochemistry. Thank you, Jos Berenzten!

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +3

      Must have been a good teacher, that you still remember this situation! I had a teacher who helped me build an FM transceiver, and you see what I became ;-)

  • @lint2023
    @lint2023 Рік тому +62

    A range of these capacitance sensors were tested on the Flaura - Smart Plant Pot video. The youtube algorithm worked this time! This channel shows that many are made with flaws and he shows the flaws (82% of his test sample), how to choose when buying, and how to fix the flaws if you have one. It is definitely worth watching.

    • @D4no00
      @D4no00 Рік тому +5

      finding a good design and ordering your own PCBs should be trivial, this will save you headdache of searching for good ones and it will times more cheaper.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +5

      Thank you for the info. I added the link to the video in the description.

    • @JohannesHerrmann
      @JohannesHerrmann 10 місяців тому

      Do you have a source, where to get components, that fulfill those 3 criteria?

    • @fss1704
      @fss1704 8 місяців тому

      Dude, change the electrodes for graphite, and also implement fast read instead of continuous read and you'll have less power drain and waaaay less corrosion, i mean a milissecond read in 5 minutes = 300.000x less corrosion compared to continuous.

  • @MarinusMakesStuff
    @MarinusMakesStuff Рік тому +5

    Great video, I tried explaining to a colleague in our makerspace why the moisture sensors they used for literally all the plants are bad for the soil and everyone was complaining what I was such a downer and that it should work fine because 'everyone does this' and 'why would they be so massively sold if they dont work'. Well, now we know why. Anyway, the moisture sensors all failed within a year and some plants died. Copper oxide is really bad for plant life.
    I'll be sure to share this video to prove my point, but on top, the best part of this video is that you offer a solid solution. I will get a bunch of these sealed sensors and seal the PCB edges and components with some additional epoxy coating. I might even design my own since you shared the schematics and it looks like this could also work with copper enameled wires since these some pre-insulated and might be easy to wrap around a customly designed 3D printed part (no worries, I use PolyCarbonate for the printed parts so it won't degrade like PLA).

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +3

      Maybe a small plastic bag would do the trick instead of coating or 3D printing. It could be replaced if needed.

    • @MarinusMakesStuff
      @MarinusMakesStuff Рік тому +2

      @@AndreasSpiess I'm thinking, maybe using graphite as an electrode in this case might actually make a lot of sense.

  • @HobbyHalloween
    @HobbyHalloween Рік тому +22

    What I can recollect about Soil moisture sensors is that you need to either operate them with an AC signal, or periodically run an AC signal through them to prevent the electrode from destroying itself, particularly sensors like the water mark that uses a gypsum (I think that's what's in there) in a small canister and if you don't there is a migration effect that will eventually destroy the sensor. Sorry, wish I had more details I hope that helps. The capacitive sensors are probably the best for you applications, but the cheap ones could potential work if you treat them right.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +4

      Thanks for your additions. We also have to distinguish between measuring moisture and humidity, and I am not sure if gypsum is used to measure moisture.

    • @HobbyHalloween
      @HobbyHalloween Рік тому +1

      @@AndreasSpiess 1. The watermark. made by Irrometer, is a soil moisture sensor, it's a green plastic outer shell with a stainless steel screen and there's a white powder in it, I overheard someone say it could be gypsum... maybe it's doped with something? It is probably a company secret. 2. There was also a leaf wetness sensor that was gold plated with a bunch of fingers that wouldn't touch and the moisture in the air would "bridge" that gap. 3. The Last kind of sensor is a Humidity sensor and their capacitive, long ago this was done (in accurately I will state) with a 555 and was tuned in the factory (painful to do) the newest sensors by Senterion DHT (Digital Humidity Temperature) sensors come already calibrated.

    • @HobbyHalloween
      @HobbyHalloween Рік тому +1

      @@olfo4100 You don't... this was a low power application running on batteries, but the generated AC is used to prevent migration of material from one pole to the other. Even powering for short bursts in the same direction migrates the material and the sensor looses the ability to read over time... it might take a while to happen.

    • @NicksStuff
      @NicksStuff Рік тому +2

      What if you switch the polarity (but still use DC) from one measure to the next?
      And, obviously, turn them on for a few milliseconds at a time (when you make a measurement) and not run them 24/7?

    • @HobbyHalloween
      @HobbyHalloween Рік тому +1

      @@NicksStuff Yep that's kind of the idea, or you could run a small back current or AC signal after you take the readings, and since soil moisture is a slow moving value so you can measure infrequently, like every 15 or 30 minutes... Depending on your needs.

  • @leiferickson3183
    @leiferickson3183 Рік тому +11

    Hi Andreas! Just a comment about the home made PCB. It is very easy for copper clad FR4 to make 2 cuts through the copper down the center close together with a razor blade. Then lift a corner of the copper with the razor blade and grab it with a small pliers. It can usually be stripped off fairly easily. It should only take a minute or so to do.

  • @B_mata
    @B_mata Рік тому +3

    Hi Andreas, Always a pleasure to view your videos. I have played with quite a few of the capacitive sensors. I found that with some of them, the 1M ohm resistor that is supposed to be connected between GND and SIG is there but is NOT connected to GND! . Seems to be a design defect as a whole batch I ordered from the famous Chinese supplier had the same problem. As a result, the reading was false. To correct it, I just soldered a 1M ohm resistor between the two pins on the connector. Easier than trying to correct it on the PCB with the surface mounted components.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I heard of this flaw, too, and added a link to a video where it is shown in the description

  • @Scrogan
    @Scrogan Рік тому +14

    Great video! I did some research a while back into these and came to a similar conclusion, that both of the main sorts are fatally flawed. Coating the capacitive sensor with a stronger layer (e.g. dipping in epoxy), or pulsing the conductive sensor for very short times were the results I came to. I’m not sure what the corrosion without any current is, but I figure it’s pretty low. A gold-plated sensor might last long even with a continuous current.
    As for the toxicity, considering the nonzero chance of that plating containing lead, I’d be very hesitant to use an off the shelf Chinese conductive sensor. Don’t want my broccoli to start lowering IQ points. Tin and nickel, and especially copper, can be toxic to plants too, but with the small concentrations after rain washing things it’s likely not a big deal. Actually, some people deliberately corrode copper wire in their soil to increase the amount of copper in the soil. Apparently copper deficiency is common enough in plants that it’s a cheap way of improving plant growth, though I haven’t looked into it myself.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +2

      Thank you for your additional information! I agree with the dipping.

    • @galaxya40s95
      @galaxya40s95 Рік тому +2

      Another way to prolong the life of the electrodes is to switch which one is positive and negative with each measurement.

    • @Scrogan
      @Scrogan Рік тому +3

      @@galaxya40s95 I suspect that will just double it, though you might find that it replates some of the lost metal back.
      Some materials won’t corrode, mainly inert metals like platinum and iridium, gold is probably pretty good too. But there’s also some conductive oxides, like indium-tin-oxide (found on a lot of LCD and probably OLED displays), and lead dioxide (as acts as one electrode in a lead acid battery). All but the lead are expensive, and the lead is too toxic to put in your soil.

    • @hamjudo
      @hamjudo Рік тому +2

      Just stating the obvious here: Don't add copper to your soil unless you know it is deficient in it. Too much copper is also bad for plants and other wildlife.

    • @Scrogan
      @Scrogan Рік тому +2

      @@hamjudo this is definitely true. Especially since in acidic soil the copper will be pretty soluble and easily absorbed. Copper carbonate is (I think) a safer less-soluble form of copper to add to soil, I’ve heard of people converting their used etchant to carbonate before disposing at least. I convert it to copper metal.

  • @ProfMarcoCamara
    @ProfMarcoCamara Рік тому +2

    I have one project where I decided to solve this problem reading the sensors very quickly, and then turn-off the circuit where the sensors are connected. First the Arduino turn the circuit on, then I made 64 readings in less than a second, and calculate the average value of the readings. After that I turn off the circuit. As I have to make just one or two measures per day, I think this is a good workaround.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Indeed, this is a good idea to reduce corrosion.

  • @kissinnokissinnovation8097
    @kissinnokissinnovation8097 Рік тому

    Very good tuto, as usual. You are our Master Theacher.
    Another good solution to protect the capacitive sensor pcb from moisture would be to cover the edges with neil varnish.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for your kind words! And I agree with the nail varnish.

  • @AlbertoCaruso-qc4hk
    @AlbertoCaruso-qc4hk 11 місяців тому

    Wow, this video is incredibly fascinating! I'm really intrigued by the concept of building a multilevel soil sensor after watching this. However, I'm not quite sure where to begin or how to go about it. It would be amazing to see a video from you detailing the process and offering guidance on how to create one. Your content is always so informative and inspiring!

  • @mhlvos
    @mhlvos Рік тому

    Bedankt

  • @AdityaMehendale
    @AdityaMehendale Рік тому +5

    Grutti Andreas,
    If you look at the schematic at 8:28 - the exposed "sensor-electrodes" still have a DC on them, albeit being used capacitively.
    It is a simple addition to place two large-value film-capacitors in series, one on each of the electrodes, to effectively"DC-isolate" these from any active electronics. The plasti-dip or whatever then has to do less work (esp. with pinholes etc. still being able to ruin the sensor). As the two series capacitors are much larger than the soil-dependent capacitance, they do not affect the frequency-modulation.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I agree with your proposal. However, some viewers suggested that the PCB lasts only for a short time too. So maybe a small plastic bag around the sensor would help...

    • @edw4699
      @edw4699 Рік тому

      Because of the exposed electronics on that board, the fact that the PCB sides are still exposed, the fact that in some boards the 1M ohm resistor is not connected on one side and the fact that some of those sensors come with an NE555 rather than a TLC555 and the fact I like to experiment with moisture sensors, I have used the PlastiDip method, the plastic bag method (as also suggested by Andreas) and I have rebuilt the circuit, but with the electronics separate from the sensor and the sensor connected via relatively large capacitors. In fact all 3 methods work pretty well. My most favorite method is still to use some carbon rods to measure the soil resistance, but I am well aware that the latter basically measures ions, whereas the capacitive method measures water.
      If you are really serious about using the capacitive method, I would indeed rebuild the circuit and add 2 capacitors as described, put the electronics in a water tight enclosure, with a short shielded cable to the sensor itself. On top of that you could also switch off the power supply to the circuit and thus to the sensor.
      But in real honesty....just two carbon rods do fine for home use

    • @vazquezjm
      @vazquezjm Рік тому

      @@edw4699amazing explanation. Two "carbon rods" = center part of pencils? Could you share some schematics?

    • @edw4699
      @edw4699 Рік тому

      @@vazquezjm No, carbon rods, not 'center parts of pencils'. The latter would break when you put them in the soil.
      Schematics???? really: one goes to the analog in and the other to either ground or Vcc

    • @DavidHust
      @DavidHust 11 місяців тому +1

      @@vazquezjmThat would be graphite.

  • @AFSMG
    @AFSMG 5 місяців тому

    Excelente trabajo. Un saludos desde España. Excellent work. Greetings from Spain.

  • @nathanschmidt1843
    @nathanschmidt1843 Рік тому

    Thanks for pointing out the “if you let it sit for six months or so” issue - helped solve my mystery and fixed my shower. 👍

  • @scottjohnson9223
    @scottjohnson9223 9 місяців тому

    Thanks!

    • @AndreasSpiess
      @AndreasSpiess  9 місяців тому

      You are welcome. And thank you for your support!

  • @planker
    @planker Рік тому

    Excellent!
    I had to correct my shopping cart after watching this video.
    Capacitance types as mentioned in Flaura's video and yours will be the choice of sensor.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Glad you saw the videos before hitting the wrong order button ;-)

  • @tomstern1681
    @tomstern1681 Рік тому +3

    Using stainless steel will help with the longevity of the sensor. This type of sensing is good for a small container where you don't care too much about the moisture content at different depths. One could use several of these at different depths in order to construct a map that describes the soil's behavior to watering. This information can be used to optimize water usage and similar concept is used in professional sensors.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +2

      An interesting idea!

    • @retireeelectronics2649
      @retireeelectronics2649 Рік тому

      Stainless steel rods/probes have been used for resistivity and Induced Polarization surveys for a long time. As long as you alternate the polarity you get a good reading and can measure the change in moisture over a large area. Like the video, lots of trash on the market.

  • @nkronert
    @nkronert Рік тому +3

    I'm wondering if there are also moisture sensors that work on the principle that periodically a small resistor gets heated by electric current and then a circuit measures how long it takes for the resistor to cool down again, which should be dependent on ground moisture levels.

    • @Mark-Harding
      @Mark-Harding Рік тому +1

      This is how the old gardena probes work, and work well. I don't know about the new smart probe, which is flat instead of round. The smart probe and gateway cost 300€, so expensive to test.

    • @nkronert
      @nkronert Рік тому +1

      @@Mark-Harding That's a rather big pricetag 🥴

  • @Tibrification
    @Tibrification Рік тому +2

    Nice re-up, Herr Spiess. :-) To further enhance this widely used humidity sensor, please have a look for the page titled "Hacking a Capacitive Soil Moisture Sensor (v1.2) for Frequency Output" from the Cave Pearl Project. There you will find 3.3V capability, how to use higher frequencies and some more tips and hacks around this sensor. In short: instead of the sensor with the NE555 chip you should favor the version with the CMOS TLC555 chip.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      A very comprehensive write-up. Thank you for the link. I will include it in the video description

  • @Hokeyx
    @Hokeyx Рік тому +4

    I have tried all the sensors shown as well. For the capacitive one, it consistently gave "wet" readings even when the soil had completely dried out. It seems like the moisture sticks on the sensor surface, it couldn't dry off quick enough as compared to the moisture in the soil. I had to remove the sensor to wipe it down for it to show the correct readings again, which makes it completely pointless.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +3

      Interesting. So the sensors worked, but the contact with the soil somehow was not good. This is the first time I have heard this.

    • @awaagrikh8331
      @awaagrikh8331 Рік тому

      That is very true. In short, it is not install and forget. Choosing where to install it is also important.

    • @florinpandele5205
      @florinpandele5205 Рік тому

      Maybe try to add a layer of sponge or ink absorbing paper on it will do the trick? It's worth trying if you have the time..

    • @Hokeyx
      @Hokeyx Рік тому +2

      @@AndreasSpiess There were also a few occasions when I pulled out the sensor, I could not spot dampness with the naked eye, but after a quick wipe, the readings went back to normal. Could mineral deposits also affect readings, I am not sure. I can say when testing outside soil, the sensor always works perfectly when trying with water. I have since given up trying to automate watering.

    • @Hokeyx
      @Hokeyx Рік тому +1

      @@awaagrikh8331 You are right, I think different types of soil/soil mix might also have an impact.

  • @reyes09071962
    @reyes09071962 Рік тому +4

    Could you propose a method to calibrate the output characteristics for the particular soil type, installation depth, and soil compaction? In other words can we compensate for these effects in order to improve repeatability? Maybe comment on use as tank fluid level sensing. Thank you.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      1. I am not sure if they can be calibrated for precision. At least, I did not find any information about it. It is more to show you when you have to water your plants
      2. I made a video about measuring water tank levels. Capacitive sensors are used there, too. They are longer.

    • @mahargleopenaws
      @mahargleopenaws 2 місяці тому

      ​@@AndreasSpiess please share the link

  • @hemanthkumar5438
    @hemanthkumar5438 Рік тому +1

    Very insightful, A few years back someone shared this corrosion problem, i think the guy used graphite rods to solve it.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Graphite rods are probably also a good idea.

  • @psane
    @psane Рік тому

    Your videos are always wonderful, instructional and your Swiss accent is adorable too

  • @sebydocky5080
    @sebydocky5080 Рік тому +2

    There is the "tinovi I2C Non-Contact Capacitive Soil Moisture, Temperature sensor" which works very well (full waterproof). I wrote the ESPhome component (avalable in the last ESPhome dev)

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      This sensor looks good! And I like people writing ESPhome components. Thank you!

  • @moustick2025
    @moustick2025 Рік тому +1

    With your explaination it is very clear the one to use. Thank you for good work.

  • @larsniklassonhede3798
    @larsniklassonhede3798 Рік тому

    Very nice view over the lake. Switzerland is beautiful. I have had the same problem with "open" sensors. I took bicycle spokes and solder it on the sensor. It works OK.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I wonder how you were able to solder to steel spokes. I did not know it works.

  • @jackflash6377
    @jackflash6377 Рік тому

    A very timely video.
    I'm working on a tool, a portable moisture sensor.
    Subscribed.
    Thanks!!

  • @ChrisB...
    @ChrisB... Рік тому +2

    Loving the SHT-35 for humidity, so far at least. They seem to be quite a bit more robust than the old DHT sensors. I run 2 of them 24/7 to add humidity to my plants via a relay-controlled humidifier.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I am not sure if humidity sensors work to measure moisture. Do you use them for moisture?

    • @ChrisB...
      @ChrisB... Рік тому

      I don't, but you did mention humidity sensors in the video. :) So slightly on topic.

  • @Werevertumoto
    @Werevertumoto Рік тому

    I think that is just good old electrolysis happening there, the direct current will break apart the water into Oxygen and Hydrogen and the residue probably has to do with the impurities or minerals contained in the water that can also react.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I think, you are right. Other commenters also pointed in this direction.

  • @lutzsommer4708
    @lutzsommer4708 Рік тому +5

    Well use missed the two most important principles for measuring soil moisture. 1. Time Domain Reflectometry (TDR).
    2. Frequency Domain Reflectometry (FDR) / Capacitance (Frequency)
    Both are state of the art when measuring soil moisture within scientific context. When I saw your video I hoped that you have managed to build one. 😅

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I know that these produce better results. But unfortunately, they are much more expensive and rarely used for the hobby. Even to build one is not easy. Or did you find a project?

    • @lutzsommer4708
      @lutzsommer4708 Рік тому +2

      That is correct, they are expensive as hell. I hoped that your expertise is sufficient to build one yourself since the principal is well documented. 😅 I started reverse engineering one but never finished. BUT I will do that in the future, at least I will try.

  • @SoundsLikeOdie
    @SoundsLikeOdie Рік тому

    I've never used them. I was expecting you to use Proximity sensor with it's sensitivity set extremely low.
    I have no idea if it would work but I'm my head it makes sense.
    Nice video.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Just try it and you know if it works ;-)

  • @dan-nutu
    @dan-nutu Рік тому

    Good morning Herr Spiess, I hope your summer holiday is going well, we're missing your fresh content every Sunday morning :)
    WRT capacitive soil sensors - I coated their edges in 2 layers of nail polish but I was surprised to still find their _surface_ delaminated and corroded after little more than a year in use. Not going to buy again, they're kind of a lost hope.

    • @awaagrikh8331
      @awaagrikh8331 Рік тому

      Yours can survive up to 1 years. Mine is less than 3 months even if I coated it.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Good to know. Thank you for the feedback. So we need to find another cover like plastic.

    • @dan-nutu
      @dan-nutu Рік тому

      @@awaagrikh8331 maybe mine also delaminated and corroded earlier, I noticed the readings started drifting after just a few months but I took them out of the pots about a year later since by that time I wasn't paying any attention to them anymore.

  • @ShafaqIftikhar-pw9ld
    @ShafaqIftikhar-pw9ld Рік тому +2

    Great video. Thankyou for the upload!!!!

  • @scrapwomblecreatives6944
    @scrapwomblecreatives6944 Рік тому

    NICE HAVE NOT SEEN THIS BEFORE THANKYOU. Have many old stuff from this time and have start growing my own food salads stock for added sustainability in a ever changing eco system, thinks I can grow indoor in window light controlled systems but as you know controlling these systems are harder than people think you for replay sir.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Growing your own stuff can be very rewarding. Indoors it is probably a bit easier because of the lack of several pests

  • @TobyRobb
    @TobyRobb Рік тому +1

    In production horticulture we use a neutron probe, but they are expensive. I have found the capacitive probes have a narrow range and are easily disturbed, somewhat difficult to calibrate IMHO, but definitely a cheaper option!

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +2

      I agree with your judgment. They are ok to provide a signal to water the plants than to do studies. As you write, their values depend on many factors.

  • @wernerviehhauser94
    @wernerviehhauser94 Рік тому +1

    I remember getting the "chirp" sensors that ran on 3V coin cells back in - well, long ago. What I missed on these capacitive sensors was square wave output - I would assume that would be easier to transmit over longer distances. I've seen I^2C and RS485 versions, but they are pretty expensive.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Some people add an ESP8266 directly to the sensor and use the air for transmission ;-) Transferring the square wave might also be problematic. It could catch some noise over the distance.

    • @wernerviehhauser94
      @wernerviehhauser94 Рік тому

      @@AndreasSpiess I was thinking about that, but them mildew killed most of the plants so I didn't follow that up back then and forgot about it during the pandemic. My students brought that up as an add-on to the school garden, and now I'm working on it again. As a physicist turned teacher, I am not on good terms with analogue signals over long distances. Measuring pulse durations and calculating a median sound better to me (I might be wrong here, though - maybe I'm just bad at analogue wiring)

    • @tychojobsis1726
      @tychojobsis1726 Рік тому

      Or use a differential analog signal. This increases the complexity a bit on both the sending and receiving side, but because the signal is differential interference will not be a problem.
      When the cables become very long then the transmission line effects can become non-negligible.

    • @col0342
      @col0342 Рік тому

      @@AndreasSpiess "use the air for transmission" WiFi eats battery juice quite fast. Be prepared to wire your entire garden with VCC or replace the coin batteries multiple times a day.

  • @kisssys5414
    @kisssys5414 Рік тому

    I've used a similar circuit on the Farm-Data-Relay-System attached to a Watermark Soil Moisture Sensor. I've used the sensor for years and it works well. I also make Gypson Moisture Sensors that I have described on Printable. They provide similar readings but they tend to dissolve over a period of time. Watermark sensors are very expensive but are worth the money for monitoring my foundation in Texas.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Glad to read that you use the FDR system (I once made a video about it)

  • @Argosh
    @Argosh Рік тому +1

    It's super easy to build this kind of sensor yourself anyway. Just get copper rod, solder wires to two pieces, add the 500kOhm input resistor, to one and a ground wire to the other. Add a second wire to the one with the 500kOhm directly to an analog in of your microcontroller.
    That's it. You can have either the v+ or ground coming from a toggleable port so you can save a bit of life on your sensor.

  • @AndreFrancoisVanderMerwe
    @AndreFrancoisVanderMerwe Рік тому

    Hi Andreas, I have tested the capacitive moisture sensors quite extensively in aquaponics. I use a ADS1115. I found considerable variation due to tempurature fluctuation.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for sharing your experience. Other commenters confirmed your finding. I do not think these sensors are suitable for precise measurements. But they are okay to create signals for watering.

  • @NeilNatic
    @NeilNatic 6 місяців тому

    This was incredibly helpful. Thank you for this!

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist Рік тому

    Any electron flow in a damp environment will cause material to migrate either from your plate or to your plate.
    None contact is the only way to go, or treat the sensor like an LCD display where there it has to be treated the same, an AC signal with no DC component, or you destroy the segment.

  • @Suchtzocker
    @Suchtzocker Рік тому

    I bought the Xiaomi Miflora Sensor wich has also a lot of knockoffs wich are cheaper, Monitoring it for 7 Montths now and it works fine and reliable + has integration features Battery still shows 100% You pay a little extra for the enclosure ( water resistant ) and the ease of use ( not encrypted BLE ) and a nice byfeature is the EC measuring wich gives a rough ( not really useful ) estimate when its time to give a little more fertilizer or if there is too much salt build up
    Integrated in HomeAssistant with Automated Watering learning based of the dry / wet cycle and times it takes the plant to take up the water added
    I couldnt have or use more features and its working out of the box, no need to ask for more after fiddling around with diy solutions for years im happy that this project is now running and working

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I agree these Miflora sensors are a good choice. Thank you for sharing your experience!

  • @Rendra5758
    @Rendra5758 Рік тому

    Thx for this topic...
    It's long time we develope this.. and have so many alternative..
    But sometimes, its also depends on media that need to be measured..

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I agree. These sensors are made for typical soil only.

  • @dabi4754
    @dabi4754 Рік тому

    I use a very good nail varnish to cover all the moisture sensor v1.2 including the chip and the pins and wires and works fine since 2-3 years now. But there is a missing connection between ground pin and the a ground trace. Simply solder a small diameter wire on both side of the pins header. Cheap China stuff but works.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thanks for sharing your experience. I left a video where the quality problems are explained.

  • @electronics.unmessed
    @electronics.unmessed Рік тому +1

    Cool DIY sensor ;-). But seriously, I think a capacitive DIY sensor can be a good option for makers and you can easily create a square wave signal with a microprocessor board.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I agree. But the simplicity of a 555 timer is hard to beat ;-)

  • @jmr
    @jmr Рік тому +1

    I have a commercially made sensor (Ecowitt WH51) that appears to have a continuous loop that goes into the soil. Perhaps under the coating it's not a continuous conductor though. It eems very reliable but now I want to see what is inside.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Inside are two not connected traces that form a capacitor.

    • @jmr
      @jmr Рік тому +1

      @@AndreasSpiess That's my suspicion after watching your video. It was very helpful to understanding how it works.

  • @hagaygodovanik4334
    @hagaygodovanik4334 Рік тому

    you can use the cheaper ones without their electronics, and alternate the current thru them. the main problem with all these sensors is their resistance depends on the soil and the minerals present. takes allot of effort to calibrate them on specific soil now try it with changing soilminerals (rain water vs tap)

  • @MJLMICRO
    @MJLMICRO Рік тому

    What about sensing by weight instead of moisture level? A flower pot will have a certain consistent weight. As moisture evaporates, the weight will be reduced. At a certain point, you turn on the water. You might have to re-calibrate from time to time as the plant grows.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      That is a good idea. I once made a video on how to use load cells.

  • @AJB2K3
    @AJB2K3 Рік тому +1

    I testesd one of the capacitive V1.2 wrapped in film for resin UV resin detection and was surprised it worked.

  • @morpheusde
    @morpheusde Рік тому

    Hallo Andreas, der Beitrag kommt genau zur richtigen Zeit :-) bin gespannt, ich habe einen mit zwei V2A Stahlröhrchen "gebaut" :-) Den Kapazitiven Sensor hatte ich auch schon mehrfach verbaut, leider hat sich auch hier nach einiger Zeit die Farbe / Isolierung gelöst und die Kupferbahn aufgelöst, nicht gerade gesund für die Pflanzen

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Ja, die scheinen auch nicht ewig zu halten. Vielleicht würde eine Plastiktasche Abhilfe schaffen. Die Sensoren müssen ja die Erde nicht berühren.

    • @morpheusde
      @morpheusde Рік тому

      @@AndreasSpiess im Baumarkt gibt es streichbare Faserverstärkte Dichtmasse, die hab ich diese Woche zum Dach abdichten verwendet ich glaube ich streiche mal so ein Teil damit ein und teste es. Damit könnte man auch die Elektronik am oberen Ende abdichten. Ich berichte dir :-)

  • @ilkkapirttimaa
    @ilkkapirttimaa Рік тому

    I have used that cheap sensor on my Christmas tree to warn about low water level for many years without a problem. I realised this design error and implemented very simple correction: I'm not powering it all the time. I use Arduino output pin to power sensor only for a couple of ms only when I do measuring once per each hour.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      This is a good improvement and reduces corrosion!

  • @pete3897
    @pete3897 Рік тому

    Could you drive the original sensors with an AC voltage to avoid the electrolisys and then rectify the output signal with a diode?

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      That would complicate the design, but it is possible and would reduce the corrosion.

  • @stefanhertweck
    @stefanhertweck Рік тому

    Hello Andreas, Gardena (Husqvarna) uses a different approach for its irrigation/sprinkler system. Its moisture sensor contains a metal tip that is enclosed in felt. This metal tip heats up periodically (about every 30 minutes) and, based on its temperature decay (cooling time), the degree of soil moisture is calculated. When "wet", the connection between two pins is "closed," when dry the connection stays "open". The two pins are connected to the irrigation controller. Why periodically - to allow for battery operation. Greetings, Stefan.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for the description. I never read about such a method. But obviously, it works!

  • @MakeKasprzak
    @MakeKasprzak Рік тому +1

    The first real Arduino project I built used these resistance sensors. I was so proud of myself, until the 3rd and 4th days when the sensors were ruined.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      This went fast! Usually, they live a bit longer.

  • @JoopKomkommerShake
    @JoopKomkommerShake Рік тому

    You can use the first pcb very easy with an arduino and no electrolysis.
    Connect the pcb between to analog inputs. For example A1 and A2.
    In the first measurement make A1 output high, it will supply now 5V to the sensor, read the analog value from A2.
    For the second measurement you do the opposite, make A2 digitaal out high and read the analoge value from from A1.
    Repeat the above.
    With this way you measure a sort of with ac and the electrodes with not desolve.
    If the reading of the adc is to low, try setting the reference to 1.1V or other value.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for the info. Indeed, you can reduce the time current flows with this method

  • @trombabaroque
    @trombabaroque Рік тому

    Did you check the RF-emissions of the capacitive sensor with a SA? I think there might be a lot of harmonics causing QRM in the HF bands. Maybe not relevant for the average houshold, but in fact, for example I've turned off my weather-station because of spurious emissions in the ISM-band, disturbing my satellite groundstation. So, maybe as a HAM-operator I'm a little bit over-sensitive to this . Anyway - nice video, thanks!

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      No, I did not check it for QRM. I have enough other sources, and I am building a remote station because of that ;-)

  • @tomad4051
    @tomad4051 Рік тому

    Nice!, good research👍🏻👍🏻

  • @matambale
    @matambale Рік тому +1

    Andreas - good to see this topic again. I was a disappointed to learn that even capacitive sensors fail over time if they are just coated with resin, as the resin still allows water intrusion via osmosis. I wonder if that includes all forms of epoxy.
    Perhaps the probes and the base of the instrument body could be coated with "Plasti-Dip"? The plastic bag is a fine idea, I guess, but really the sensors should be fully sealed in plastic until the whole instrument is up out of the soil and well out of the way of splashes, etc. So rather than putting plastic "leggings" on the sensor probes, I'm talking about plastic "pants" that reach to the top of the sensing instrument.
    I am a bit sloppy when watering plants, yes. :^)

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thanks for sharing your experience. I do not have longtime experience with the different sorts of epoxy. Maybe others experimented with it already.

    • @col0342
      @col0342 Рік тому

      The thicker the protective layer, the less sensitive the sensor is. Which means: use a very fluid resin for coating, so that it will cure in a thin layer.

  • @ulisherny236
    @ulisherny236 Рік тому

    Hallo aus Österreich, Andreas! Ich mag deine Videos. And "the Swiss accent" :)
    Wegen des Kupfers...
    Wenn du, so wie du es gemacht hast, die Elektroden ins Leitungs-/Brunnenwasser steckst (nimmt man ja meist zum Gießen) und mit ein wenig Spannung und einigem Strom beaufschlagst, erzeugts du einfach Knallgas. Sauerstoff und Wasserstoff an je einer Elektrode, das entstehende Wasserstoffgas kann als Blasen an der Oberfläche der Kathode freigesetzt werden.
    Komplizierter ist es mit Folgendem:
    Im Leitungswasser sind üblicherweise verschiedene gelöste Salze enthalten, darunter Natrium- bzw. Kalziumionen und Hydrogencarbonationen (HCO₃⁻), die möglicherweise reagieren könnten, um Kupfersalze wie Natriumkuprat (Na₂CuO₂) oder Kupfercarbonat (CuCO₃) zu bilden. Verschiedenen Faktoren wie Wasserzusammensetzung, pH-Wert, Temperatur und Stromstärke beeinflussen die Reaktion.
    Wenn man Pflanzen mit einer solchen Flüssigkeit bewässert, bzw das im feuchten Erdreich auftritt, könnte dies potenziell schädlich sein, da Kupfer in höheren Konzentrationen toxisch für Pflanzen sein kann. Kupfer ist für Pflanzen notwendig, aber nur in geringen Mengen. Bei zu hoher Konzentration kann es jedoch die Aufnahme von anderen wichtigen Nährstoffen behindern und oxidativen Stress verursachen.
    Die Kalkablagerungen könnten auch den Boden pH-Wert erhöhen, was wiederum die Nährstoffverfügbarkeit für Pflanzen beeinflussen könnte. Ein erhöhter pH-Wert kann dazu führen, dass bestimmte Nährstoffe weniger leicht aufgenommen werden können. Es ist wichtig zu beachten, dass die Auswirkungen auf Pflanzen von verschiedenen Faktoren abhängen, einschließlich der Konzentrationen der beteiligten Ionen, der Dauer der Bewässerung und der Empfindlichkeit der Pflanzenart.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Danke für deine ausführlichen Erklärungen. Chemie war nie meine Stärke ;-)

  • @livetohash6152
    @livetohash6152 9 місяців тому

    One guy said put a 1M ohm resistor between signal out & ground on the 1.2v sensor, does that make sense? All mine, 10 of them, give me random values & don't respond when I'm water 😢

    • @AndreasSpiess
      @AndreasSpiess  9 місяців тому

      I do not know :-( You have to try.

  • @stevecummins324
    @stevecummins324 Рік тому

    Arduino's can drive and measure capacitive changes between plates directly. There even an offical library for reading such sensors.
    It's also *easy* to create such plates oneself. If aluminum or titanium is used it's also possible to anodize the surface to insulate them. Far more even and resilient surface than varnish Nb the thickness of such an anodized layer adjusts the value/range of such a sensor

  • @NathanSweet
    @NathanSweet Рік тому

    Even the capacitive sensor isn't good, with exposed FR4 edges. I looked into this once and Steven's Hydraprobe looks good. It gives moisture, temp, salinity over RS-485 using 50MHz RF. The cost is $695 though (!).

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I agree. These TDR sensors are much better, I agree. But for controlling the watering of 10 flower pots probably a bit expensive ;-)

    • @NathanSweet
      @NathanSweet Рік тому

      ​@@AndreasSpiess FWIW, HydraProbe isn't TDR, it uses radar to measure dielectric impedance. It measures the energy storage and energy loss of the soil to determine the moisture content. This reduces the influence of salinity and temperature compared to other solutions, allowing it to work without calibration. It's really neat and I have bought one, but I won't get to test it until early 2024.
      The cost is silly, but nothing is too good for my lawn. :p Mostly I just want to play with the cool tech. My DIY irrigation controller calculates ETo to determine watering durations. I'll use the soil moisture data to double check that, eg don't water if the soil has enough moisture even if ETo thinks it needs watering.

  • @alx123
    @alx123 Рік тому

    The two-legged sensor with a gold plating most better than of cheaper lead. I've tested ENIG version about 2 month, if not scratch them, no corrosion will be even with fertilizers. And power on must be very short as possible for measuring.

  • @vazquezjm
    @vazquezjm Рік тому

    Great video Andreas! I've been having problems with the capacitive sensor, making my house main differential circuit breaker go off as soon as the sensor contacts the soil. I'm assuming there's some kind of leakage? Will try the plastic bag to isolate the sensor and see if it helps

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      The 5V power supply should insulate your devices from the net. So pay attention!

    • @vazquezjm
      @vazquezjm Рік тому

      @@AndreasSpiesshmm, that could be the issue... will try with a different PSU. Thanks for replying!

  • @gplgomes
    @gplgomes Рік тому +1

    Soil has much less moisture, so are these sensors sensitive enough to measure it?

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Yes, they are sensitive enough to alarm you when you have to water plants (probably not cacti ;-)

  • @JuergenRarey-Th
    @JuergenRarey-Th Рік тому

    Hi Andreas, did you ever try to put a Bosch BME sensor into a cavity underground like a small platic pot with the opening facing down? This would give you the relative humidity of the air in equilibrium with the soil.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I learned that measuring humidity and moisture is a different thing. So I never tried it.

  • @desparky
    @desparky Рік тому

    I remember reading about this problem in the 1980's (probably in Electronics Australia Magazine). If I recall correctly, there was an IC manufacturer who produced a chip specifically for this application. It applied a small AC signal to the probe for measurement to prevent electrolysis.
    I see lots of moisture probes advertised now and just assumed they would use the AC method. I forget how much junk is sold out there.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I did not know that this issue is so old.

    • @desparky
      @desparky Рік тому

      @@AndreasSpiess I guess I'm showing my age here, haha.
      Keep the great videos coming, they're always interesting and I learn a lot from you. Cheers.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      @@desparky It cannot be the age. I am 66 ;-)

  • @maxximumb
    @maxximumb Рік тому

    I wonder if the resistance sensors would be better with graphite / carbon probes? Carbon is pretty inert in water electrolysis, unlike copper. Whilst they wouldn't last forever, they would significantly outlast copper traces. Also carbon is not toxic to plants whereas high concentrations of copper can be.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Others used graphite rods. I do not know how their handling is. The ones I know are very brittle.

  • @Poult100
    @Poult100 Рік тому

    Thank you! This reminds me of the capacitive tank level sensors. Same principle.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Yes, just longer ;-)

    • @Poult100
      @Poult100 Рік тому

      @@AndreasSpiess the most effective frequency was particularly interesting. I suppose this would have to be experimented with, if one was to make a level sensor where the tank material (dielectric) was quite thick (8mm).
      I love your videos. Always nicely informative and without annoying background (sometimes foreground!) music 👍😁

  • @Electronieks
    @Electronieks Місяць тому

    Hi andreas can the capacitive sensor be used as rain sensor?

    • @AndreasSpiess
      @AndreasSpiess  Місяць тому

      I do not know how you would do it. The just do what I described.

  • @ThierryC2373
    @ThierryC2373 Рік тому +1

    I have tested the capacitive soil moisture sensors extensively and they are not reliable whatsoever to measure anything accurately in soil, the only working solution is to make a resistive sensor that receive power only for a very short time with prongs in stainless steel or silver solder. That was my solution to manage my sprinkler system in Florida. Anyway, there is no need to measure the moisture in real time, 2 or 3 times a day is more than enough, humidity does not leave spontaneously the soil.

    • @dousiastailfeather9454
      @dousiastailfeather9454 Рік тому

      Tin the copper! Or use silver solder...

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for sharing your experience! Shortening the measuring time for sure reduces corrosion.

  • @alx8439
    @alx8439 Рік тому +1

    Another option to extend the lifespan of sensors with exposed copper conductors is to make measurements in a descrete manner. I.e. not constantly but once every 30 minutes for example.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      I agree.

    • @HL65536
      @HL65536 Рік тому

      And keep the time that it is switched on as short as possible. Usually ~10µs should be enough. Then even more frequent measurements should be possible. What could also help is to lower the voltage that it has available. According to wikipedia, water electrolysis requires a minimum of 1.23V. Measuring with max 0.5V should therefore eliminate corrosion. That may be worth testing.

  • @tim_bbq1008
    @tim_bbq1008 Рік тому

    Another technique can be to only power the sensor while the moisture content is being measured. No reason to read the sensor constantly, once an hour or so is more than enough. Cut the power to the sensor to only a few seconds per day will extend the life of the sensor.

  • @makoado6010
    @makoado6010 Рік тому

    there is a prefect soluiton from 70's: gypsum block. the response time is slow but extremly accurate.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thank you for the info. I found that these sensors are pretty expensive.

    • @makoado6010
      @makoado6010 Рік тому

      @@AndreasSpiess easy to make u just need two graphite electrode and gypsum. and a temperature sensor if u want to be really pro.

  • @GeorgeMixalis
    @GeorgeMixalis Рік тому

    If price is not an issue, i have uses smt100 and smt50 from truebner on a research project. They currently have an uptime of 4 years (but they cost 100 and 50euros respectedly)

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I recently saw them on on a fair. They seem to be solid.

  • @Electronieks
    @Electronieks Рік тому

    Durex is a brand to protect some sensors with a rubber layer

  • @ItsTristan1st
    @ItsTristan1st Рік тому

    The capacitive approach is a simplified form of impedance spectroscopy. The real fun with that is when you sweep the frequency and take a spectrum instead.

    • @liquidsonly
      @liquidsonly Рік тому +1

      Indeed so. I worked with non-linear dielectric spectroscopy for years measuring yeast viability.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      What would I discover in the spectrum? Is there any information available?

  • @felenov
    @felenov Рік тому +1

    A super cheap workaround is running DC for 10ms every minute or so. You still get your readings and the sensor lasts much longer.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      You are right. This helps to avoid electrolysis.

  • @colfaxschuyler3675
    @colfaxschuyler3675 Рік тому

    This was interesting, but might be a little out of context.
    This would probably be fine as a physical liquid level measure, but that's not how dirt and moisture work in most agricultural situations.
    If your plants roots are sopping wet, your plant is likely drowning.
    Usually there is much less liquid in soil, and that may make the readings much different.
    Could you repeat the experiment with the last sensor, using different types of soil, and adding water like a grower would?
    The best test scenario would be in a large planting container exposed to the outside air conditions and to the sun, but protected from direct rain. That way, there is a large amount of soil, there is air, heat, sunlight, wind, to dry the soil, and you can add water in small amounts, as if from a sprinkler or irrigation system. The moisture in the soil will need to equalize across the bulk of material, rather than just detect full saturation.
    Water would arrive on top, and then get wicked through the soil. Having a short or small container might give false readings from water pooling in the bottom, saturating the lower part of the sensor. The sensor needs to be affected by the correct amounts of moisture in the soil, not just "dry_ and" saturated" conditions.
    That would simulate regular growing medium better, and give a better idea as to the signals seen and the response time to detect actual soil conditions.
    _____
    As an added thought, this looks like it would be a good wired system for a central garden plot.
    Consider a yard, though, or multiple garden plots, distributed areas, etc.
    Having wires running 10s or 100s of feet, in multiple directions, on opposite sides of structures, etc., and with foot traffic or vehicle traffic in the area.
    This would be hard to set up, calibrate, and maintain.
    A larger scale solution would call for wireless communications, sensor differentiation, logging, and probably power management.
    This is a job for SUPERMA-- Sorry, I got carried away. This is a job for: I don't know... It's got to be be cost, able to leap large distances, be identified, easy on the batteries, etc. LoRa? I don't know the costs or component size. 422mhz? ATtiny85? RaspiNano? BLE?
    I can think of a couple approaches.
    I can envision a mesh network for ease of adding sensors and extending the coverage of the network, but that seems complicated.
    I can see having a base station and just relying on low power rf transmitters, logging and sleep routines, and periodic polling fob the base station.
    I believe that BLE can operate as a mesh network.
    That's enough to think about now. I think I want more coffee.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      When I made this video, I was looking for studies as you describe. They should be made by agriculture engineers, not electronics engineers. But unfortunately, I did not find any. That may be different now.
      These sensors could be more precise. I think they can be used to generate watering signals in typical home environments.
      If you want to avoid cables, maybe you google "LoRa moisture sensors". Their range can be a few km. You also find many videos about the LoRa technology on this channel.

    • @colfaxschuyler3675
      @colfaxschuyler3675 Рік тому

      @@AndreasSpiess Thank you. I am thinking more along the lines of a home owner. We aren't on a large plot, but with a growing space at the front of the yard, two near the house in front, four spread through the back yard, the thought of monitoring all of that using wires is a problem.
      I guess in the end, I would pick maybe two or three, but even then, that's a lot of wiring spread across hundreds of feet in different directions.
      As a manual (handheld) tool, that might be a more practical solution for me, but then we're back to doing things manually.
      Still, it's a neat video.

  • @LeifNelandDk
    @LeifNelandDk Рік тому

    Wasn't some of the capacitive sensors missing a critical component?

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      This is a re-play of an old video. In the meantime, it seems there are different variants available, some that do not work. I added the info in a pinned comment.

  • @awaagrikh8331
    @awaagrikh8331 Рік тому

    I tried several capacitive sensors-cheap one, DF Robot one and two other Chinese brands. None can survive more than 3 to 6 months even if I coated it. Soil is salty due to fertilizer usage so it greatly reduce the life span of the sensors.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      That is what others reported, too. Maybe a small plastic bag instead of a coating would help? The sensors do not need to be in contact with the soil.

  • @J0stik
    @J0stik Рік тому

    sonoff ms01 is looking pretty good, it sends data trough I2C, it is on my to do list to test one in esphome and if satisfied switch from all other ones .... but it is not on top of my list ....

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Xiaomi offers a similar one, too. They are a good solution if you do not want to tinker.

    • @J0stik
      @J0stik Рік тому

      @@AndreasSpiess looking for some "reliable" to integrate with esphome for home assistant. Will look at it, if you know about more please let me know, because i am in fight with soil moisture sensors from spring.

  • @arp_catchall
    @arp_catchall Рік тому

    I use hot-galvanized nails as probes. These are the gray, rough looking ones. Few years now, no corrosion. Avoid electro-galvanized (shiny) - they wont last.

  • @wbcc3388
    @wbcc3388 Рік тому

    Would using two stainless steel probes solve the corrosion problem?

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      There are several proposals in the comments. One mentioned special nails that avoid the corrosion problem.

  • @GlennHamblin
    @GlennHamblin Рік тому

    So you made an unintentional electrolyzing cell. You are deplating the anode(+) side and plating the cathode(-) side. As well as liberating some hydrogen on one electrode and oxygen on the other. One way to make them last longer is to swap the polarity every other time you read it and only activate it when you want to read it. Nickel plating the electrodes will also help some. 😊
    And for the capacitive version you might use some spray on conformal coating.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Thanks for your tips! Conformal coating for sure helps.

    • @stevecummins324
      @stevecummins324 Рік тому

      Or with suitable choice of material... Any dc current flow will anodize a plate and stop the conduction.

  • @cyrillethierry9515
    @cyrillethierry9515 Рік тому

    Hello Andreas I use the last sensor (capacitive on), there is a but you forgot. The value measured is not stable since it is impacted by the temperature. It creates quite big differences. I ve not solved this yet.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I do not think these sensors are accurate, too. They are good to remind you to water your plants, not for agricultural studies...

  • @FrankGraffagnino
    @FrankGraffagnino Рік тому

    i would love to see you include a "Gypsum" soil moisture sensor in your comparison!

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I agree it would be interesting to compare the readings of the (quite expensive) gypsum sensors with the ones of these cheap sensors. This is more for an agricultural channel, I think.

  • @miguelangelsimonfernandez5498

    The first sensors can benefit from probes made of stainless steel. But all have a major flaw in that they use a lot of power and they are not the best thing for IOT standalone sensors. Also resin coatings in pcb board suffer in the long run from water permeating through the pores because of osmosis. This causes blisters filled with acid under the coating. The latter I suppose one could accept it as a wear part in the system.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Maybe the capacitive sensors can be protected by plastic foil since they do not need contact with the soil.

  • @markwarburton8563
    @markwarburton8563 Рік тому +1

    Who would've thought that the verable 555 timer would get a new lease on life being used in a humidity sensor? That chip just keeps on giving.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому +1

      Indeed, this is a very versatile chip. (And it was invented by a Swiss ;-)

  • @GeekendZone
    @GeekendZone 10 місяців тому

    Good explanation as always.

  • @matthewmaxwell-burton4549
    @matthewmaxwell-burton4549 Рік тому

    Ah the classic ox redox reaction. You might even be creating metal complexes in the water (gets very complicated to know if its plain rust or a complex of Fe)

  • @rhysun
    @rhysun Рік тому

    I wonder if an air humidity sensor placed under an upturned cup on the soil surface would be of any use. It could be an interesting experiment.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      Maybe you try it? The sealing has to be very good, I assume. Otherwise, you probably measure the humidity of the room.

  • @pino_de_vogel
    @pino_de_vogel 8 днів тому

    From what i gather the coated sensor used way more power so they last months instead of over a year battery wise.
    IOm strill wanting to have a google come compatible sensor over wifi. i dont want to have a tuya or zigby hub google home keeps things simple and working well without the need of a hub making replacing things easy and pain free.

  • @Filpvv
    @Filpvv Рік тому

    I have ordered few for my greenhouse after watching the video

  • @ManuOutdoor
    @ManuOutdoor Рік тому

    Danke die für den super Beitrag! 73 von HB9TIA!

  • @andersgardo6777
    @andersgardo6777 Рік тому

    Small problem: Clean water id more or less an insulator. What you can measure is the concentration of different salts wich gives a very unprecise picture of the soil moisture.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      For the resistive sensors, you are right. The capacitive ones use water as a dielectric material.

    • @andersgardo6777
      @andersgardo6777 Рік тому

      @@AndreasSpiess Yes, but what does the salt content in the water means for the dielectric properties? I have experimented with a small cage made of net buried in the soil. Inside a DHT 22 to measure the air humidity and tried to relate it to the soil mosture.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      @@andersgardo6777 And did it work?

    • @andersgardo6777
      @andersgardo6777 Рік тому

      @@AndreasSpiess I got some different values but i don't know how relevant they are. Lack of time to go deeper.

  • @Rolandas3K
    @Rolandas3K Рік тому

    those two leg sensors basically suck, but you can prolong their life by measuring soil moisture only when needed, e.g. couple of times per day

  • @dougbas3980
    @dougbas3980 Рік тому

    Interesting, just what I found using in my greenhouse. Thanks.

    • @AndreasSpiess
      @AndreasSpiess  Рік тому

      I hope your plants do well if they get sufficient water with your automation ;-)

  • @Electronieks
    @Electronieks Рік тому

    true , the more water between the legs , the smaller the output 02:45