Automatic Pumping System
Automatic Pumping System
Class: CC01
Group: 4
July 22nd, 2020
1
Team members:
Name ID numbers
Phạm Minh Tiến 1852791
Nguyễn Xuân Nam 1852598
GROUP 4
2
I) ACKNOWLEDGEMENT
II) PREFACE
1) Current situation of this model inside and outside the
country (where applicable and scale).
2) Reasons why we choose this topic.
III) OUTLINE
1) Table of contents images:
- Arduino UnoR3
- Parameters os Arduino
- Soil moisture sensor
- Replay
- Motor 12V
- Adapter 9V
- Display Auto Cad2013
- 3D drawing carrying case
- Software interface Arduino I
- Code of Arduino IDE
- Map of electric
- Actual circuit after completion
- Actual shape after completion
2) Overview of the topic.
2.1: Question
2.2: Research objective and scape
3) Introduction to the versatile.
4) Introduce Arduino IDE and programming for Arduino.
5) Circuit design.
6) Comments and conclusions.
7) References.
3
GROUP 4
I) ACKNOWLEDGEMENT:
To complete this technical report, we would like to express our
sincere thanks to: The Board of Directors of Ho Chi Minh
University of Technology for creating favourable conditions for
its facilities with a modern library system, a variety of books
and documents which are really convenient for searching
process.
Thank you department lecturer – Hong Duc Thong for teaching
wholeheartedly and Mr.Quan for the detailed help so that we
have enough knowledge and apply in this project.
Because there is not much experiences as well as the
limitations in knowledge, this report will certainly inevitably
omission. Look forward to the comments from the teacher to
make the report be more completely.
II) PREFACE
4
You spend too much time in work repeating daily, hourly. With
Automatic watering system, you can safely entrust everything
to the device to operate automatically without having to watch
the time and turn off the water valve to drain water for plants or
water. While reducing time, you can save time to do other
things. Even go somewhere for a few days with complete peace
of mind, no more worries before and after, no home, who will
water the plants, the trees will die, ... Now you can go anywhere
without having to worry about time. or asking others to go out
or busy working far away.
III) OUTLINE
1) Table of contents images :
Arduino Uno R3
5
Module Relay
Moisture sensor
12Volt Pump
6
Display autocad 2013
3D Design
7
Complete Model
Realistic Circuit
8
sufficiently water as required. Agronomy of crops will not produce pests and
diseases, limiting pesticides for safe products, achieving high productivity and
efficiency.
In addition, on the streets of the downtown area, we still see images of water
tank trucks carrying trees along roads causing congestion and unsafe.
traffic.
On the other hand, our country is currently in the process of industrialization and
modernization of automated machinery and equipment put in place to replace
human labor. Therefore, irrigation equipment being researched, designed,
manufactured, and put into practice is applied more and more. Irrigation
equipment is also remarkably diverse in types (rain sprinklers, misting nozzles,
pressure compensating drip heads, uncompensated drip nozzles, drip irrigation
lines) with different parameters for different types of plants manufactured. From
many countries such as Israel, South Korea, Taiwan, and China, it will be very
convenient for users to choose according to their usage needs. The calculation to
select the irrigation system that meets the agronomic needs of the crop and is
suitable for economic and technical conditions for high efficiency is essential for
the broad development of the system. The sprinkler irrigation system satisfies
the root moisture, leaf moisture and air for the crop to grow well, the water-
saving system enables the plants to absorb nutrients without causing soil
leaching and degradation. Do not pollute the environment. Automatic watering
system can be combined with fertilizing, chemical spraying. Moreover, the
design of an automatic watering system will help people not to water plants, not
to labor cost of watering as well as monitoring the time of watering. With this
system, watering the plants will be automatic depending on the weather, sunny
or rainy weather, high or low humidity, which season of the year. All these
conditions will be considered and calculated to get accurate time to activate the
pump. Workers will not need to pay attention to the watering of the plants, the
9
trees will grow and develop better thanks to the more appropriate and accurate
watering.
2.2 Purpose:
Applying the knowledge learned to research, design, and manufacture the
automatic irrigation system model, from which to put into practical applications.
Helping the irrigation of crops in our country have new options and achieve
high efficiency.
10
Arduino Mega: This board is designed around the ATmega2560 AVR
microcontroller. It is an 8 bit microcontroller with 256KB of flash, 8KB of
SRAM, 4KB of EEPROM, timers, ADC, DAC, I2C, SPI, UART, and touch
peripherals.
Arduino Due: This board is designed around the SAM3X8E Smart ARM
(SAM) microcontroller. It has a 32 bit ARM Cortex M3 processor with 512KB
of flash, 100KB of SRAM, Ethernet, CAN, USB minihost, highspeed
SD/SDIO/MMC, USART, SPI, TWI, ADC, DAC, timers, temperature sensor
and touch peripherals.
11
Especially, Arduino Uno R3 is one of the most popular Arduino boards
been used today. Nowadays, this board has developed to the 3 rd generation (R3).
Its dimensions measure is 68.6mm * 53.4mm.
2.1.1: Some parameter of Arduino Uno R3:
Microcontroller ATmega328 – 8 bit AVR
Operating Voltage 5V DC (USB)
Frequency 16 MHz
Current consumption 30mA
Recommended input Voltage 7-12V DC
Input Voltage limit 6-20V DC
Digital I/O pins 14 (6 pins hardware PWM)
Analog pins 6
Maximum current 30mA
Output current (5V) 500mA
Output current (3.3V) 50mA
Flash memories 32 KB (ATmega328) with 0.5KB
bootloader
12
3.2: Moisture sensor:
13
When you hear the term ‘smart garden’, one of the things that comes to your
mind is a system that measures soil moisture and irrigates your plants
automatically.
With this type of system, you can water your plants only when needed and avoid
over-watering or under-watering.
If you want to build such a system then you will definitely need a Soil Moisture
Sensor.
The more water in the soil means better conductivity and will result in a lower
resistance.
The less water in the soil means poor conductivity and will result in a higher
resistance.
14
The sensor produces an output voltage according to the resistance, which by
measuring we can determine the moisture level.
Hardware Overview
The Probe
The sensor contains a fork-shaped probe with two exposed conductors that goes
into the soil or anywhere else where the water content is to be measured.
Like said before, it acts as a variable resistor whose resistance varies according
to the soil moisture.
The Module
The sensor also contains an electronic module that connects the probe to the
Arduino.
The module produces an output voltage according to the resistance of the probe
and is made available at an Analog Output (AO) pin.
The same signal is fed to a LM393 High Precision Comparator to digitize it and
is made available at an Digital Output (DO) pin.
15
The module has a built-in potentiometer for sensitivity adjustment of the digital
output (DO).
You can set a threshold by using a potentiometer; So that when the moisture
level exceeds the threshold value, the module will output LOW otherwise
HIGH.
This setup is very useful when you want to trigger an action when certain
threshold is reached. For example, when the moisture level in the soil crosses a
threshold, you can activate a relay to start pumping water.
16
Apart from this, the module has two LEDs. The Power LED will light up when
the module is powered. The Status LED will light up when the digital output
goes LOW.
AO (Analog Output) pin gives us an analog signal between the supply value to
0V and will be connected to one of the analog inputs on your Arduino.
DO (Digital Output) pin gives Digital output of internal comparator circuit. You
can connect it to any digital pin on an Arduino or directly to a 5V relay or
similar device.
VCC pin supplies power for the sensor. It is recommended to power the sensor
with between 3.3V – 5V. Please note that the analog output will vary depending
on what voltage is provided for the sensor.
GND is a ground connection.
3.3: Relay
17
Module 1 Relay with compact isolation opto, with opto and isolating transistors
to help the use become safe with the main circuit board, module 1 relay with
opto isolation opto 12V is used to switch off high-power power source AC or
DC, can choose to close when high or low click with Jumper. Contact break
switches including 3 NC contacts (normally closed), NO (normally open) and
COM (common pins) are completely isolated from the main circuit board, in
normal state without NC click will connect to COM, when available Clicking
COM state will switch to NO connection and lose connection with NC.
18
etc., be careful not to invert the pump as it may damage the pump structure.
motor (the anode is marked in red).
21
D0 D2
void loop()
{
int value = analogRead(A0); // Ta sẽ đọc giá trị hiệu điện thế của cảm biến
// Giá trị được số hóa thành 1 số nguyên có giá trị
// trong khoảng từ 0 đến 1023
Serial.println(value);//Xuất ra serial Monitor
// Đọc giá trị D0 rồi điều khiển Led 13...Các bạn cũng có thể điều khiển bơm
nước thông qua rơle....
if (value >307)
{
digitalWrite(13,HIGH);
delay(6000);//1000 tương đương với 1s trong real time. Mọi người thay đổi
giá trị này nhé
digitalWrite (13, LOW);
}
else{
digitalWrite (13, LOW);
}
22
}
5) Circuit design:
We use a 9v adapter to supply power to the adruino circuit and then use the ports
a0, d2, d13 in turn to control the soil moisture sensor. Finally, by using relay
activated at low voltage and providing a separate adapter source for the pump
we can maintain humidity at 30% for plants.
23
internet (including the code section). Second one, it saves time and
trees and the operating range not wide. So the landlord must arrange
7) References
at: <http://arduino.vn/bai-viet/917-cam-bien-dat-va-nhung-ung-
<https://lib.hpu.edu.vn/bitstream/handle/123456789/25217/13_
PhamMinhAnh_DC1802.pdf?sequence=1&isAllowed=y>
24
- www.circuitstoday.com . Arduino Irrigation and Plant Watering
https://www.circuitstoday.com/arduino-irrigation-plant-watering-
25