Irrigation System

by vanessa11 in Living > Gardening

463 Views, 1 Favorites, 0 Comments

Irrigation System

PHOTO-2022-03-16-20-15-25.jpg

This action plan helps you to create a self-regulating water system for your plants. The purpose of this system is to help people with disabilities to water their plants. With the creation of the app, you can directly see the humidity percentage of your plant.

Supplies

  • Arduino Uno
  • jumping wires
  • silicone tubes
  • relay module
  • 2x 9V battery
  • Bluetooth Module HC-05
  • 3-6V water pump for Arduino
  • capacitive soil moisture sensor v1.2
  • RS PRO 9V Battery Contact
  • 9V batterij clip met 5.5mm jack

Wiring Diagram

IMG_20220316_013640.jpg

Arduino Code for the Pump and the Sensor

code_arduino_app.PNG

Capacitive moisture sensor values are not naturally expressed in percentage, but rather between 200 and 800. That’s why we first had to measure the driest and wettest values.After some tests, the most dry temperature was 450, and the most wet temperature was 240. So with the map function, we equalled 240=0% and 450=100%. 345 is the centre, so 50%. We called it EDGE in the code.For the pump to turn on, the humidity has to be less than 50% higher than 345(EDGE).

Sign Up & New Project

3C33D166-1DE5-4376-A8FB-A3E93D446963.jpeg

Sign up with your Gmail account on https://appinventor.mit.edu/ and start a new project.

Basic Structure of the Screen

Go to the user interface on the palette to select 2 labels for the title and the results. The labels are 40 pixels high and 70 pixels wide. The letter size used in this example is 30. You can choose between percentage, pixels, automatic and fill parent for the amount of space you use. Click then on screen1, the first component, to select AlignVertical and AlignHorizontal centre.

Coding: Bluetooth Connection & Data From Arduino

code_app.PNG

In this part we'll show you how to connect your bluetooth module with your app. The code is simple. All you have to do is click on the listpicker and select Beforepicking and Afterpicking. Then you put under the Beforepicking the elements that the listpicker selects from the Arduino via Bluetooth and in the Afterpicking the code for Bluetooth connection. The clock is used to present the results.

Layout

PHOTO-2022-03-15-23-35-53.jpg

For the layout you can use any image as backgroundimage.In the settings of each part in the app you can change the colour and the letter type and/or size of text. We have chosen this simple design.

App Icon

Irrigationappicon.PNG

In order to customise the app, we used the website https://infograph.venngage.com/ for the icon. Start a new design and choose layouts to create your icon. First, follow the instructions on the website.