Automated system using a NodeMCU to control soil moisture and irrigation; it keeps logs of moisture, water flow usage, and soil temperature on the ThingSpeak platform. The system is designed to reuse rainwater from a cistern. Developed by Willian Barbosa Rodrigues, undergraduate student of the Federal Technological University - Paraná, Campus Campo Mourão, under the supervision of Professor Ivanilton Polato.
To assembly this controller you need:
- Node MCU
- Solenoid Valve
- Flow Sensor
- Soil moisture sensor
- Temperature Sensor DS18B20
- Relay Module 5v
- Voltage Regulator L7805CV
- Power supply 12v
- Resistance 220Ω
- 2 3/4" pipe elbows for hose
- 3/4" sleeve with thread
- ThingSpeak Account
- File
3D Model.obj
printed
To install the controller, you should follow use diagram below. The Fritzing project file is also available for download in this repository.
Before upload your code to the NodeMCU, change the values for the following variables in the HortaOS.ino
file:
SSID_WIFI
PSWD_WIFI
WriteKey
SSID_WIFI: the Wi-Fi network SSID, which the NodeMCU will connect
PSWD_WIFI: the Wi-Fi password
WriteKey: the ThingSpeak key to write data
After these changes you can upload the file HortaOS.ino
to the NodeMCU.
To the final assembly we designed a 3D printed model. The model is separated in two parts: one holds the controller part; the other one holds the water control, including pipes and the solenoid valve.
The NodeMCU uses 3,3 to 5V external power supply. To reuse the 12V power supply we assembled a voltage regulator using the L7805CV
component.
To assembly this component, you need the 2
, 3
, 12
and 13
items. Just follow the assembly schematics below.