Chapter 10. Wireless Gardening with the ESP8266

In this chapter, we are again going to take everything we've learned so far and apply it to a concrete project. Here, we are going to building a wireless, cloud-based gardening project based on the ESP8266. It will allow you to monitor the temperature and humidity of a plant, or your whole garden, and water it if necessary.

We are first going to set up the project so it sends you automated alerts when the plant is dry. Then, we'll set it up so you can not only monitor it remotely, but also activate a watering pump if necessary. Let's start!

Hardware and software requirements

Apart from the ESP8266WiFi chip, the core requirement of this chapter is the temperature and humidity sensor. As we will actually stick this sensor into the ground, we can't use the usual sensors we used earlier in this book.

Therefore, we need to use a sensor that is appropriate to be inserted into the soil. This is the case for the sensor I will use for this project, sold by Adafruit and based on the SHT10 sensor from Sensirion:

Hardware and software requirements

To use the sensor with the ESP8266WiFi chip, you will also need a 10K Ohm resistor.

You will also need a way to water the plant or your garden if necessary. For this, I simply used the 5V relay that we already used earlier in this chapter. This way, you can simply control most of the water pumps you can find on the market.

As usual, you'll also need a breadboard and jumper wires.

This is a list of all the components that will be used in this chapter:

On the software side, you will need the library for the SHT10 sensor, which you can download from here:

https://github.com/practicalarduino/SHT1x

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.218.69