I get my moisture sensors from eBay; search for Analog Capacitive Soil Moisture Sensor. You can either get them locally or wait longer and get them cheap from Chinarickyh89 wrote: ↑Tue Jul 17, 2018 11:41 amCan you post links to the sensor you use and whatever boards you use for the battery powered solution? I didn't think of running 1 per pot, thought one controllong 8. Your way seems to make sense and be easier. Because it only sleeps for a little while, have you had the corrosion issues I've seen online on the sensor itself? I don't mind changing sensors out once a year if need be as they are cheap.
A big question though, when it awakes from sleep can I get a battery level from the esp8266?
Edit- so I looked up the esp12 which seems to be a small add on for the esp8266? I'm seeing most people using a power cord to power it all, if I were to go this route of 1 per pot than I 100% would need battery powered per unit. Also need battery to last a good while. Finally, can you post link to your github? Wouldn't mind seeing your code you used cause you may be using the sensors exactly how I would be. Sounds as if I could mimick your sensor setup and just apply it to my existing program.
The idea of having the sensor connected to a small box with battery and board in it would be awesome.They are small enough that one could package an ESP-12, a small LIPO battery (e.g. 500maH) and the moisture sensor into a self contained package not much bigger than the moisture sensor itself and then just push them into the soil wherever you want. No mucking about with wires and makes re-positioning trivial.
for less complicated/sophisticated use of the basic miflora library check out the root miflora project, Thom's project wraps that upto query the sensors for data and publishes it as mqtt and shoehorns it into some home automation formats too.
Finally just got my sensor in, I'm regretting only buying 1 because the 30+ days it took to come in but once I get a good test of it working I'll have to order the other 20 or so... apparently the size of image is too big so I can't show picture.PhatFil wrote: ↑Thu Jul 19, 2018 2:06 amfor less complicated/sophisticated use of the basic miflora library check out the root miflora project, Thom's project wraps that upto query the sensors for data and publishes it as mqtt and shoehorns it into some home automation formats too.
Ive simply lifted Thoms code prefixed it with a list of mac addresses for my sensors and changed the mqtt topic to a Phils house relevant string NodeRed sits on a Pi0 in the background to respond as needed
iirc the walkthrough has a single apt-get install command which when copied kicked up errors, while 'apt-get install bluetooth' 1st before everything else worked for me.
Code: Select all
sudo apt-get install bluetooth sudo apt-get install git python3 python3-pip bluez sudo git clone https://github.com/ThomDietrich/miflora-mqtt-daemon.git /opt/miflora-mqtt-daemon cd /opt/miflora-mqtt-daemon sudo pip3 install -r requirements.txt