Just a little Garden UI

This week I made a bit of progress with my garden monitoring system and figured out how to add a bunch of sensors connected to an ESP8266 that sends updates to my MQTT server. The hardwear is still being finished, but basically I am using four I2C expanders to add 16 Analog inputs to the NodeMCU along with a few other sensors attached to digital pins. This is all solar powered and I just got a controllable watering system that is working well. I will cover all of that once I have my system up and running.

Today I have been playing around with Home Assistant to make the user interface that I will use to help figure out and test automations later.

The first tab is a basic overview of the planter boxes with sensor data displayed over the aria that the actual sensor is placed. This also has a button to run a script that pulses water to the garden boxes so that the soil soaks up the water and a switch that lets you manually control the water pump. Though the pump switch is just for my testing because if you just turn the pump on it tends to flood the boxes that lets a bunch of water dripping out from the bottom and it is better for the script to pulse water over time. After that there is a graph with local weather report data along with data from my DHT11 sensor and the forecast for the week.

The Sensors tab shows each of the sensor readings using the Plant Status cards for Lovelace so that I can set alert triggers later for things like low water levels, freezing temperatures, or over exposure to sunlight. This tab also shows predicted rainfall for the day in inches. This information will be used to tell the system if it needs to water the garden or let nature do its thing.

Now we get to a lovely display of data graphing that would make any researcher proud. The first graph compares the air humidity with the soil humidity for the last 48 hours so you can see how the day’s heat affects the soil moisture. If you look closely on the right side of this graph, you can see two spikes where the water pump did it’s thing. The next graph is for the light sensors, but I only have one connected right now. The last graph will show the soil temperature for each of the planter boxes as soon as I get those wired into the ESP8266.

Later I will be adding a water level sensor that tells me to fill the water tank and will not let the pump run if the water level gets below the pump’s intake level.

I am hoping to have more about this project later next week including how I built the electronics and 3D printed a solar radiation shield to get more accurate weather data.

Time to grow some data…

Last weekend I decided to build a monitoring system for the planter boxes on my deck. I wanted to collect data on soil moisture and light levels from at least two of the 4 planter boxes. The issue is that I don’t have a place to plug it all into and I want to log the data using Google Sheets so that I can graph everything.

20190515_185135

20190515_185310

So I grabbed a solar panel, whipped up a voltage regulator, connected a rechargeable battery and that took care of the battery. For the microcontroller I used a Particle Photon, mostly due to it’s abundance of analog read pins, and connected a Spark Fun soil sensor with an added photo-resister for light readings. The Photon reads the analog value of each sensor and adds a new row into my Google Sheets doc via IFTTT. After the data is sent the Photon goes into deep sleep mode every 10 minutes. This makes it so that the sensor sips power and can easily last using only solar power.

So here is the Data:

My next step is to collect enough data to flag events that I want to be notified about. Like when the water level gets low enough to were I should water my plants, or when my plats are about to die due to extreme dryness. I can also see how much daylight a particular box is getting so I know what plants need to go where. If I had access to a water outlet I could have that automatically water the garden, but for now my water bucket works well enough.

 

 

Such a nice day

This is the first day when it has been nice weather and I don’t have loads of work to do. So I thought it would be nice to take a trip to get some plants for the garden.

Along the way I stopped to take some photos of some blown out windows from the coffee house that exploded a few weeks ago.

IMAG0489_BURST004
2 Days After the Explosion.

IMAG0531_BURST002
Today

imageWhile all of the shops still have plywood in the windows…

most have gotten artists to paint them with colorful murals. Here are a few from around the neighborhood.

Later IĀ got a bag full of plants.

IMAG0547_BURST002_COVER

Then I got the garden all set up.

IMAG0548

Lettuce is on the Left, herbs, root veggies, then spinach and other cook-able greens.