Ieee Pes Quiz PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

QUIZ

TOPIC: Automatic Plant Watering System Using Arduino

This is a quiz open to all based on the topic of automatic plant watering system
using Arduino. The basic idea is to encourage more people to participate and
this seemed like a topic that everyone would be interested in as well as can be
attempted even by those who have zero knowledge regarding the topic as tiny
bits of information and code can be shared across from 5 days prior to the quiz
on our Instagram page and the final quiz will be conducted based on the
information shared by us. The final quiz would contain about 5-10 questions
circulated through a google form or so and the winners will be announced and
rewarded as well as the winners list would be put up on as our story on
Instagram.
The information that can be put up could look like:

Day1:
Whenever on a vacations, we usually get worried about our plants because
they need water on regular basis. After going through several options to
solve this problem as plants need water according to the moisture level of
soil, the Automatic Plant Watering System Using Arduino UNO came into
picture.
In this system, soil moisture sensor senses the moisture level of the soil. If
soil will get dry then sensor senses low moisture level and automatically
switches on the water pump to supply water to the plant. As plant get
sufficient water and soil get wet then sensor senses enough moisture in soil.
After which the water pump will automatically get stopped.
A self made water pump is used in this system using 5 volt DC motor. We
could use 12 volt water pump in the system but to operate this, it will
require a relay module. So, to reduce all these hardware complexity, DC
motor based water pump using diode, transistor and registers combined
circuit which operates DC motor according to the Arduino code has been
used.
Day2:
COMPONENTS AND SUPPLIES

Arduino UNO & Genuino UNO

1N4007 – High Voltage, High Current Rated Diode

General Purpose Transistor NPN

Male/Female Jumper Wires

Resistor 221 ohm

5v DC Motor
Water tube
Glue gun
Water container
Bread board
Soil Moisture Sensor
Day3:

Circuit description:
1. DC motor using water pump:
Use DC motor to make water pump. DC motor has two leads one is positive and
another one is negative. If we connect them directly to the Arduino board then
it will damage the board. To overcome this problem, NPN transistor is used to
control the switching activity of the motor according to the code.

Water pump made by 5 volt DC motor


Arduino pin 13 (named as WATERPUMP in code) is used to turn on and off the
transistor. According to the code to control the speed of the motor we need to
enter a value between 0 and 255 in the Serial Monitor. I used 200 value for the
speed of the motor.

Serial Monitor

2. Soil moisture sensor:


The soil moisture sensor consists of two leads that are used to measure volume
of water content in soil. These leads allow the current to pass through the soil
and in return calculates the resistance value to measure the moisture level. If
there is more water in soil then soil will conduct more electricity, means less
resistance value along with high level of moisture. In the same manner if there
is less water in soil then soil will conduct less electricity, means high resistance
value along with low level of moisture.

Soil moisture sensor at low moisture value

Soil moisture sensor at high moisture value

Day4:
CODE:
int WATERPUMP = 13; //motor pump connected to pin 13
int sensor = 8; //sensor digital pin vonnected to pin 8
int val; //This variable stores the value received from Soil moisture sensor.
void setup() {

pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin


pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from Soil moisture
sensor.
//Initialize serial and wait for port to open:
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
while (! Serial);// wait for serial port to connect. Needed for native USB
Serial.println("Speed 0 to 255");
}

void loop()
{
if (Serial.available()) //loop to operate motor
{
int speed = Serial.parseInt(); // to read the number entered as text in the
Serial Monitor
if (speed >= 0 && speed <= 255)
{
analogWrite(WATERPUMP, speed);// tuns on the motor at specified speed
}
}
val = digitalRead(8); //Read data from soil moisture sensor
if(val == LOW)
{
digitalWrite(13,LOW); //if soil moisture sensor provides LOW value send LOW
value to motor pump and motor pump goes off
}
else
{
digitalWrite(13,HIGH); //if soil moisture sensor provides HIGH value send HIGH
value to motor pump and motor pump get on
}
delay(400); //Wait for few second and then continue the loop.
}

Day5:
SCHEMATICS
Fritzing Diagram of the system
Black colored wire for ground, red-colored wire for VCC and blue colored
wires for arduino inputs.
Questions:
1) To use a 12volt water pump what does the system require in
additional?
2) Which of the following are components and supplies used in the
system?
3) What is the role of NPN transistor in the above system?
4) What is the input that we require to give in the serial monitor?
5) What is the role of the two leads on the soil moisture sensor?
6) How many leads are present in the soil moisture sensor?
7) What happens when there is more water in the soil?
8) What does 13 indicate in the code int WATERPUMP = 13;
9) analogWrite(WATERPUMP, speed); What does the subsequent code do?
10) What does the blue wire do?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy