This project is a Smart Watering System for the IoT Octopus. A soil moisture sensor measures soil moisture and temperature and relays it to an Octopus. The Octopus evaluates the sensor data and sends it to a second octopus via LoRaWAN. The second Octopus transmits the sensor data to Thingspeak via WLAN. If the soil moisture is too dry, it activates a solenoid valve to water the plants.
- 2× IoT Octopus with an ESP8266
- 2× TTN FeatherWing or LoRa FeatherWing with the RMF69 chip (868MHz)
- 1× STM50 Soil Moisture Sensor by Truebner
- 1× Grove I2C ADC by Seeed Studio
- 2× Grove Screw Terminal by Seeed Studio
- 1× Protective Outdoor Case by Dostmann
- 1× Relay 5V Module Breakout Board
- 1× Grove 4 Pin Female Jumper for the Relay
- 1× Solenoid Valve DC 12V G3/4 for the water hose
- 1× 3D printed Case for the Octopus
The software of the Smart Watering System uses the "IoT Workshop" with can be downloaded here. To use the software, you also need the LoRa library by Sandeep Mistry, which can be downloaded from the Arduino library manager via "Sketch->Include Library->Manage Libraries". Ardublock can then be opened via "Tools->Ardublock". You can use either the Ardublock files or the Arduino C code of this project to upload the software.
- Enter your WiFi credentials and your Thingspeak API key into the "Lawn_Sprinkler" file
- Upload the program "Moisture_Detector" to the first Octopus and the "Lawn_Sprinkler" to the second Octopus
- Screw the wires of the soil moisture sensor to the two screw terminals
- Connect one screw terminal to the Octopus ADC connector and the second screw terminal to the Grove I2C ADC
- Connect the Grove I2C ADC to the Octopus I2C connector
- Plug the LoRaWAN module onto the pin headers of the Octopus
- Put the Octopus together with the I2C ADC and the screw terminals in the protective outdoor case
- Power the Octopus with a 3V battery or a micro USB cable
- Connect the Relais with the Grove Jumper to the I2C connector of the second Octopus
- Place the solenoid valve on the watering tap
- Screw the relay between the wire from the 12V power supply to the solenoid valve
- Put the second Octopus together with the relay into the 3D printed Case
- Plug the LoRaWAN module onto the pin headers of the second Octopus
- Power the second Octopus with a micro USB cable