Umidity Sensor for Irrigation System

by Lucas Tinoco in Circuits > Arduino

168 Views, 1 Favorites, 0 Comments

Umidity Sensor for Irrigation System

Horta.jpg

This Instructable has the objective to automate an irrigation system of a homemade spice garden through an umidity sensor.

The prototype was made in TinkerCard, this tool doesn't have an umidity sensor to simulate. How the sensor only has two states high and low umidity (the line between these two can be changed manually directly in the sensor), it was replaced by a press buton with only two states, high and low.

Sensor

Sensor.png

Specifications

- Operating Voltage: 3,3-5V

- Adjustable Sensibility

Pins:

- VCC: 3,3-5v

- GND: GND

- D0: Digital Output

- A0: Analog Output

It informs umidity in high or low

Materials

LED verde.jpg
LED vermelho.jpg
Resistor 1k.jpg
Resistor 220.jpg
Arduino e Protoboard.jpg
Servo Motor.jpg
Sensor.png

For this, you will need:

- 1 Arduino Uno

- 1 Protoboard

- 1 Slave motor

- 1 Resistor 1 kOhm

- 2 Resistor 220 Ohm

- 1 LED red

- 1 LED green

Circuit

Projeto Arduino Final.png

This is the circuit's basic setup

The red wires are connected to the power source

The black ones are connected to the ground

The green and orange ones are connected to the digital part.

Code

Código.png

This code was made in TinkerCard.

The only exception is the sensor that isn't registered in the site, so it was replaced by a button with an identical working form.

Video

Circuito Funcionando

Here you can see the working circuit's video through a simulation on TinkerCard.

When the sensor marks high umidity, the LED turns green, the monitor shows a message (Umidade OK) is shown each 10 seconds and the gate is closed.

When the sensor marks low umidity, the LED turns red, the monitor shows a message (Umidade Baixa) is shown each second and the gate is opened.

Nice Work, Bro!

Tomperro Caserro.png

Now you are able to have an extra time to look for an recipy for those spices you are growing!!

Bon Appétit!!