New at it myself. I think if you are happy with them then merge them. Not sure how that is done. Anything I have put in I have got working on an ESP32. I can then try new features and do a pull request.
3 aud is certainly manageble. The ones I found on google were physically quite a bit bigger and also priced at at least 25 aud (-ish… Obviously I don’t pay for stuff in Aud). That would drive the price pr. unit up considerably.
Since they are so tiny they shouldn’t ruin the looks of the pot that much. It’s also a fairly good argument that if you strip the pot you can easily use everything in another application - such as yours. All you have to do is to change the parameters to fit a bigger or smaller pot.
Lets go with the range finder. I’ll update the physical parts accordingly.
There’s two common forms on Ali. The circled one is particularly compact.
You’re supposed to be able to put them into hardware standby to save energy during deep sleep, but I haven’t been able to get that working properly.
So I’m switching off power to all of my sensors during sleep another way.
An open question about watering regimes.
For my project I’m thinking about how to water so that the plant runs quite dry and then is watered heavily (rather than frequent small waterings to bump it above a threshold). I understand this kind of watering is better for plants (root aeration?)
Has this project (or others following) thought about this and implementation?
This is complicated by latency in moisture measurement change compared to pump speed.
I think I’ve seen some discussion on other threads.
Roughly, I want my plant to say:
- Have a lower moisture threshold of say 10%
- Have an upper threshold of say 60%
- Once below threshold, water in small doses on each wake cycle until above upper threshold. Some time between doses is required for the water to soak in and register on the sensor.
What I don’t want is for moisture to bump up to say 15% and then it’s back to 9% the next day and that cycle continues.
@konig I didn’t door this kind of logic in your flow diagram? What about you @Spiro?
Thoughts? Let me know if this is off topic to your project and I’ll move elsewhere;)
I agree that plants need to dry out in-between watering, like I said back in post 124. My setup is not an automatic system but a remote system. When I am away I decide to water my plants based on sunshine (out doors). I get what the guys are trying to do so I’m helping out with coding to get the lowest time the ESP needs to be awake to save battery. Most of my outdoor potted plants are hydrangea. I can see them wilt on my security camera and know I have waited too long. If you are going with the capacitance sensors then you will need the upper and lower threshold. I don’t think that will be a problem. Hydroponics may work on a much narrower band but I don’t know much about it.
A thought just came to me. You should be able to set up two sensors based on 2 different thresholds but reading from the same GPIO pin. Will test this.
I am waiting to see how this works out ESPHome GPIO Touch Sensor as Capacitive Input for Waterlevel - it could be a path to take.
Just out of curiosity, people, how long does it take the custom PCB to ship? (I’m located in Canada)
Depends where you are shipping from.
For the chinese producers, it also depends what kind of shipping they use. Some will let you chose.
The extremes are “you’ll have it within a few days” to “we’ll ship whenever the container is full and shove it it on a paddle-steamer that goes more or less in your direction”. That usually takes 3-4 weeks to Europe. Don’t know about Canada - never tried it.
The commercial moisture sensors like the one used in Flaura include a small print with various electronic bits. I only know what a few of them do, but I assume the rest of them are there for a reason…?
I never heard that plants like to dry out, but I guess it makes sense. I suppose it also depends on the specific plant, succulents might need some dry time more than other plants.
It’s a fine idea to se an upper and lower threshold for watering in stead of just one. Some plants might even need a longer periods to fit their flowering schedule. Seems to me that should be fairly easy to fit into the routine. Sleep duration and water amounts can be set dynamically from HA - should be too hard to make whatever rules you like.
@SashaBenzo: I think @nickrout is in the proces of evaluating the PCB… depending on his findings you may want to hold your horses before placing an order. They are inexpensive, but it would still be a shame to make the order if we need to change it. Any chance you could give an update @nickrout?
The Flower Care app which is for Mi Flora sensors allows you to select a plant type from a database and then it provides bounds for light, water, temperature and fertilizer.
Probably not so relevant to this project, but perhaps still interesting. Perhaps the project will later evolve to monitor other parameters.
I found a local PCB maker and will see if they can make it for me! That’ll probably be my solution.
I’m a bit unsure, if we are designing for the commercial moisture sensor or the homemade one with copper tape in plastic laminate?
If it’s the latter, it introduces the opportunity to fix it to place it directly on the inside of the pot in stead of having it stand upright in the middle. If we design for that, can we rule out that the water in the ressovoir will affect the reading? In other words will water that is 2 mm away from the sensor affect how much moisture it detects in the soil?
Btw, I am aiming to make a new design where wires, hose and everything go through a pipe from the bottom to the top. In that way the only seal with water-preasure will be the inlet for the pump. Water will only make it to the bottom if the plant is completely flooded. I will extend the tube downwards to prevent water from getting in contact with the PCB.
.
Either way, running the wires thru a pipe should make it alot more simple to seal it tight, right? So I think that that is a great idea either way. I feel like (in the sensor part of the question) we should go with the best one depending on price and effectivness. We do not want it to break after some time or anything like that. Do not know to much about the home made one, but as long as it works, I see no problem using that.
First few will be a test @LiotL .
@konig I think you are right. Capacitance sensors can work if fixed on the other side a container. It may have minimal change if soil in pot has much greater effect.
Okay so I’m done with the new “less-seals needed”-version of the pot as promised.
It is also updated to accommodate the home made versions of the moisture sensor and runs the wires and the watering hose through a tube. This view looks at it from the bottom with the outer shell hidden:
- is the tube that extends all the way to the top. It extends bellow the pcb so that a flooeded pot would result in water flowing to the surface of the pot without damaging the electronics.
2 is for holding the sensor for the tank. The sensor slides in from a hole in the top which can be filled with silicone, wax or whatever after to prevent dirt from entering the tank and clogging the pump. Doesn’t have to be super tight though - is for holding the sensor inside the pot.
Here’s a link tha shows the inner part:
https://a360.co/3NUVAbf
I’ll do a print of it in the next few days.
@konig great work on the design again, that’s dope!
Trying to catch up on everything.
- I’m not sure I understand which water sensor we are going for?
- Why is the moisture sensor holder curved? Did we change this sensor as well?
- What’s the purpose of the 2 holes at the top?
Also, could you update the 360 fusion file on GitHub please?