New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soil moisture sensor #13
Comments
Frequency stability can be improved by adding crystal generator. But popular low cost oscillators are 25, 48, 50 or 100MHz. And still they cost at least 1$ per piece. But we need plenty of that sensors. |
Or go the classic 555 route. There are a bunch of boards like that on aliexpress for a $. |
Yes, but they use very low frequency. And they have accuracy similar to the human finger :) . Some use resistive method which degrade over the time. I have very different soil types around my home so want to measure it "properly". I know that this can be done easier, but FDR probe gives quite good results. I even purchased 2 of them and I'm currently testing it. I like its shape and accuracy and want to build something similar. It inspired me. The circuit is molded in plastic but I assume it works in similar manner as the circuit above. I will calibrate it with various soil types and later on maybe write some paper on my research :) |
The logic gate already has a resistance which is sufficient in this case
Actually, there are no 50Mhz crystals. These are ones for smaller frequency that run on usually third overtone. That’s why you need LC circuit. This circuit does not work on 27MHz but on 3*27Mhz
what's wrong with HC04?
This circuit won't benefit anything from 18bit ADC. Temperature stability and the method won't give you accuracy better than a few %. However if you need to detect subtle changes in humidity increasing ADC resolution may help, but don't expect anything better than noise. |
Dear sir, |
Dear Greg, My name is Ivan Kotzig, I am from Slovakia. I also want to make inexpensive, but above average sensor. I can invest into tooling, as I own a molding company. Did you advanced further from the above schematics? I was considering a 100MHz circuit I found on Internet, but the components cost about 10 Eur, which is above my intentions. I am a firmware developer, so I plan to ad an inexpensive CPU to your above schematics. I need 16 sensors connected by wire, not a long distance. Any information would be welcome. |
The entire design (sch and PCB) is already in the repo. I built the PCB, I also done some FW development but have other priorities right now. |
@gkasprow can you tell me where the sch and PCB are located in this repo? I can't seem to find them... |
Your design is very good. Did you do any testing, would be great to see some real world results |
A batch was produced. I will install them once the spring comes :) |
if you use mcpl604 and the spare gates you could have 3 sensor circuits, top, middle, lower. This would provide better data and eliminate the possibility of misleading low capacitance paths in soil with organic materials and debris. Also maybe some gain on the output to get 0-3.3v range. Also why the 10k on output, would not <1k be better given micro controller ADC impedance. |
LT6905 oscillator may be better than xtal for single probe design, cheaper than the xtal,chip,inductor combo |
@ollyboy This design is good enough. One can make it much more precise, of course. But the question is what you want to achieve. I want to know if my plant is dying or not ;) It's not laboratory equipment. The 10k output resistance does not matter. The ADC S&H circuit needs low impedance and it's provided by a 1nF cap. The S&H circuit draws ns-scale current pulses from the source, if you leave just 1k resistor, it would be far too high. 1nF cap does the job nicely. LTC6905 is fine, but these days chips appear and disappear. It's easier to find replacement for classic crystal or logic gates. |
Btw, I updated the design. I replaced the CPU with a low-cost RAK module based on Cortex M0. Atmel chip didn't have enough memory to implement LoRa authentication (OTAA). Only ABP worked. |
Is there any further update on this design? Did you run any tests on your original set of boards? What range of voltages did you end up getting from dry to fully wet soil? |
Didn't do any other tests. I installed an automatic off-the-shelf irrigation system, so don't care about individual plants' moisture. |
Some day the water distribution failed - one of the tubes slipped off the filter terminal and plants were not watered for a few days. Another time, I shut down the main water valve by chance and left home for one week. Plants hardly survived. This was my inspiration to build distributed soil humidity monitor.
I want to have following features:
So i built simple circuit to check the proof of principle.
The schematic is simple:
The generator built on the Schmidt inverter generates ~50MHz square wave which is fed to the divider that consists of the capacitance probe and R9. Resulting voltage is rectified and fed to the uPC ADC input.
The sensor is piece of FR4 with two long strips, covered by plastic sleeve.
This is very simple but has some issues:
So next iteration needs to have compensation circuit which is formed by another dummy divider and detector. It also needs to be driven from another negator to not influence the main one.
The range of ADC is 2.5V, so let's amplify the detector output a little.
The differential amplifier does not like the input voltages very close to zero, and diodes need to be polarised continuously so let's shift the voltage up. So removal of C6 would does the job.
The text was updated successfully, but these errors were encountered: