Skip to content

Phys-Comp/Hackathon2022

Repository files navigation

Hackathon 2022 - Smart Watering System

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.

Hardware components

Software

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.

Assembly

  1. Enter your WiFi credentials and your Thingspeak API key into the "Lawn_Sprinkler" file
  2. Upload the program "Moisture_Detector" to the first Octopus and the "Lawn_Sprinkler" to the second Octopus
  3. Screw the wires of the soil moisture sensor to the two screw terminals
  4. Connect one screw terminal to the Octopus ADC connector and the second screw terminal to the Grove I2C ADC
  5. Connect the Grove I2C ADC to the Octopus I2C connector
  6. Plug the LoRaWAN module onto the pin headers of the Octopus
  7. Put the Octopus together with the I2C ADC and the screw terminals in the protective outdoor case
  8. Power the Octopus with a 3V battery or a micro USB cable
  9. Connect the Relais with the Grove Jumper to the I2C connector of the second Octopus
  10. Place the solenoid valve on the watering tap
  11. Screw the relay between the wire from the 12V power supply to the solenoid valve
  12. Put the second Octopus together with the relay into the 3D printed Case
  13. Plug the LoRaWAN module onto the pin headers of the second Octopus
  14. Power the second Octopus with a micro USB cable

Releases

No releases published

Packages

No packages published

Languages