Thermo Project
Thermo Project
The ESP32 will control the water pump automatically as per the soil
moisture level. You can control and monitor the moisture level, and
temperature from anywhere in the world on Blynk IoT.
So if you follow all the steps, you can easily make this IoT-based plant
monitoring system using ESP32 and Blynk app.
In the circuit, you have to give a stable 12V DC supply. The amps rating of
the power supply will depend on the pump or solenoid valve current rating.
A 7805 voltage regulator is used to provide the 5V supply to ESP32, and the
3.3V supply is given to OLED and capacitive moisture sensor from ESP32
3.3V pin.
Please use heat sinks with TIP122 and 7805 voltage regulator.
g
Set up Blynk IoT Cloud for the ESP32 Project
You can refer to the following article to set up the new Blynk cloud
account.
In the template, I have created the first Datastreams (Pin: V1, Datatype:
Integer, Min Value: 0, Max Value: 100) to show the moisture level in
percentage.
The next two Datastreams (Pin: V2 & V3, Datatype: Integer) will show the
Temperature and Humidity reading from the DHT11 sensor.
Forth Datastream (Pin: V4, Datatype: Integer, Min Value: 0, Max Value: 1,
Default Value: 1) is for changing the MODE.
Fifth Datastream (Pin: V5, Datatype: Integer, Min Value: 0, Max Value: 1,
Default Value: 0) is for manually controlling the pump
Create Web Dashboard in Blynk Cloud
After that, click and drag 1 Gauge widget, 2 Level widgets, and 2 Switch
widgets and select the related Datastreams for each widget.
You can refer to the following article to add a device to the Blynk cloud
Now open the Blynk IoT App and tap on the device name
.
Then add 1 Gauge widget, 2 Leveled Value widgets, and 2 Button
widgets from Widget Box.
1. Tap on the Gauge widget and select Datastream “Moisture” with V1.
2. Tap on the first Leveled Value widget and select Datastream
“Temperature” with V2.
4. Tap on the first Button widget and select Datastream “Mode” (V4) and
MODE “Switch“.
5. Tap on the second Button widget and select Datastream “Water” (V5)
and MODE “Switch“.
For this IoT-based project, I have used the Arduino IDE to program ESP32.
To get the MIN & MAX moisture reading from the sensor, first, upload the
following code to ESP32
Connect the Moisture Sensor AOUT pin with D34 and supply 3.3V across
VCC and GND.
Note the MAX value when the sensor is dry, then dip the sensor into water
and note the MIN value.
Update the MAX value when the sensor is dry, and the MIN value for the
wet soil.
Now connect the sensors, OLED, Pump, and 5V Buzzeras per the above
diagram.
Here I have a 12V 2A DC supply, you have to use the power supply as per
the pump amps rating.
If everything works fine, connect the solenoid valve with the main water
pipeline of the drip irrigation system.