Introduction: Smart Watering

In this Arduino project tutorial we will learn how to make Smart Watering

Step 1: Required Hardware

Picture of Required Hardware

Arduino Board - https://goo.gl/MpCaGC

Arduino Ethernet Shield - https://goo.gl/RHUufR

Soil Moisture Sensor - https://goo.gl/GsgkFs

Solenoid Valve Flow Switch 1/2 - https://goo.gl/oWVPTd

Water Flow Sensor 1/2 - https://goo.gl/n65dro

DHT11 Module - https://goo.gl/haBEmL

Relay - https://goo.gl/x8vUnV

Step 2: Connections

Picture of Connections

Step 3: Source Code

Picture of Source Code

Here is the code of the arm that goes in the Arduino - Get Code

Step 4: Create Webserver

Picture of Create Webserver

Server Script

//Database Connection $koneksi = mysqli_connect("krstudio.web.id","username","password","database") or die("Error ".mysqli_error($koneksi)); //Take data form table on database MySQL $sql = "SELECT * FROM greenhouse ORDER BY id DESC LIMIT 30"; $result = mysqli_query($koneksi, $sql) or die("Error in Selecting " . mysqli_error($koneksi)); //Make array $greenh = array(); while($row =mysqli_fetch_assoc($result)) { $greenh[] = $row; } //Display convert data form table identity to format JSON echo json_encode($greenh); //close the db connection mysqli_close($koneksi); //refresh 11 second ?>

?>

Step 5: Get Application

Picture of Get Application

The files of the app are available on - Google Playstore

Step 6: Testing

Now we completed all steps and make a SmartWatering

you can control using your smartphone .

Thanks for watching.

Comments

Swansong (author)2017-12-21

That would be a great system to have for our window plants, I have a tendency to forget to water them ^.^;

About This Instructable

704views

13favorites

License:

Bio: Informatics Engineering Graduate, Specialising in Interactive Mobile Programming. Interested in Mobile Application Development, Software Engineer Sensors and IoT Applications
More by SyahrialRukmana:Controlled Fish PondSmart Watering
Add instructable to: