---
title: "Smart Irrigation System(Atmega2560+W5500)"
url: "https://maker.wiznet.io/WIZnet/projects/smart-irrigation-system-atmega2560-w5500/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/smart-irrigation-system-atmega2560-w5500/md"
type: "UCC: User Created Content"
author: "eslamshahin0"
author_url: "https://github.com/eslamshahin0/SmartIrrigationSystem#contentes"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "eslamshahin0"
original_url: "https://github.com/eslamshahin0/SmartIrrigationSystem#contentes"
published: "2023-02-12"
language: "en"
likes: 3
views: 294
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Smart Irrigation System(Atmega2560+W5500)

> Monitor and control the resources of a company that distribute large amountes of water to the farmers to irrigate there lands

Original author: eslamshahin0 (source: https://github.com/eslamshahin0/SmartIrrigationSystem#contentes)

## Article

## **Contents**

1. **Introduction**

2. **Project ***description*

3. **Devices in the project**

4. **Photos**

---

## Introduction

This is my first project to client The main purpose of this project is to monitor and control the resources of a company that distribute large amounts of water to the farmers to irrigate there lands

The main source of the water is 13km away from the distribution area and also the management location that wants the data Water is pumped through this long distance

After the water is arrived it distribute through three large main pipes

each pipe has more then 20 very large tanks vary from 200 m3 to 500m3 , each pipe has one flowmeter , one pressure sensor

---

## Project ***description***

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/boardsw.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/boardsw.jpg)

This project is based on Atmega2560 MCU and Ethernet module W5500

The board acting as a **webserver** connected to two **nanostation devices** to be able to transmit the data through the long distance

The main PC has a **Desktop application written in **flutter** to interact with the boards this show the data on a GUI**

Data is collectet from the TUF-2000 and the sensors , then send it if the main pc send an HTTP GET request to the the board

The request could also control the relays on the board

The PCB was designed in **KICAD**

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/pcb.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/pcb.jpg)

Then manufacturing in **china** and assemplied in **Egypt**

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/realpcb.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/realpcb.jpg)

---

## Devices in the project

#### **1 TUF-2000 Ultrasonic Flowmeter**

Each large pipe will have a **TUF-2000** ultra sonic flowmeter this device works with **modebus RTU** that based on **RS485** protocol

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/flowmeter.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/flowmeter.jpg)

This device is able to measure many properties of any fluid The **TUF-2000P** flow meter can be virtually applied to a wide range of measurements. The measured pipe ranges 15-6000mm. Because the instrument and transducers are non-contacting and have no moving parts; the flow meter can not be affected by system pressure, fouling or wear. Standard transducers are rated to 110 ºC.

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/table.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/table.jpg)

**Manual** [here](https://images-na.ssl-images-amazon.com/images/I/91CvZHsNYBL.pdf) for more info.

---

#### **2 HYXC-MP Pressure sensor**

HYXC is a pressure sensor that placedin any pipe and get the internal pressure then output the value 4-20mah with linear relaion with its max pressue value .

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/HYXC-MP.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/HYXC-MP.jpg)

---

#### **3 Pressure sensor**

Another type of Pressure sensors , it also placed in a hole in the pipe , the transmit the output to the controller pressue value .

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/pressure2.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/pressure2.jpg)

---

#### **4 Levelmeter sensor**

This sensor is used to calculate the water depth in large tanks up to 10 meters . pressue value .

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/levelmeter.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/levelmeter.jpg)

—-

### **Photos**

[![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/fm.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/fm.jpg) [![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/photo_2021-08-23_17-36-16.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/photo_2021-08-23_17-36-16.jpg) [![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/photo_2021-08-23_17-36-25.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/photo_2021-08-23_17-36-25.jpg) [![](https://github.com/eslamshahin0/SmartIrrigationSystem/raw/master/pc.jpg)](https://github.com/eslamshahin0/SmartIrrigationSystem/blob/master/pc.jpg)

---

Source: https://maker.wiznet.io/WIZnet/projects/smart-irrigation-system-atmega2560-w5500/
