IOT Based Smart Agriculture-1
IOT Based Smart Agriculture-1
IOT Based Smart Agriculture-1
Submitted to
MASTER OF TECHNOLOGY
Submitted By
Dr . N. NEELIMA PRIYANKA
CERTIFICATE
This is to certify that this project report entitled “IOT BASED SMART
AGRICULTURE” is the bonafide work of Ms Ch. Divya Valmika
(22X41D5804), in partial fulfilment of the requirements for the award of the post
graduate degree in MASTER OF TECHNOLOGY during the academic year 2022-
2023. This Work has carried out under our supervision and guidance.
ACKNOWLEDGEMENT
Firstly, I would like to convey my heart full thanks to the Almighty for the blessings on me
to carry out this project work without any disruption.
I am very much grateful to Dr . B. Asha Latha, H.O.D of CSE Department, for her valuable
guidance which helped me to bring out this project successfully. Her wise approach made me to learn the
minute details of the subject. Her matured and patient guidance paved a way for completing my project
with the sense of satisfaction and pleasure.
I am very much thankful to our principal Dr . M. Ekambaram Naidu for his kind support and
facilities provided at our campus which helped me to bring out this project successfully.
Finally, I would like to convey my heart full thanks to all Technical Staff, for their guidance and
support in every step of this project. I convey my sincere thanks to all the faculty and friends who
directly or indirectly helped me for the successful completion of this project.
PROJECT ASSOCIATE
CH. DIVYA VALMIKA (22X41D5804)
ABSTRACT
Agriculture plays vital role in the development of agricultural country. In India about 70% of population
depends upon farming and one third of the nation’s capital comes from farming. Issues concerning
agriculture have been always hindering the development of the country. The only solution to this
problem is smart agriculture by modernizing the current traditional methods of agriculture. Agriculture
is an emerging concept, because IOT sensors are capable of providing information about agriculture
fields and then act upon based on the user input. This project aims at making use of evolving technology
i.e.,IOT and smart agriculture using automation. Monitoring environmental conditions is the major
factor to improve yield of the efficient crops. The feature of this paper includes development of a system
which can monitor temperature, humidity, moisture using the Blynk IOT application using
Wi-Fi/3G/4G.Smart Agriculture which includes temperature maintenance, humidity maintenance and
soil moisture which is used to know either the soil is wet or dry . Controlling of all these operations will
be through any remote smart device or computer connected to Internet and the operations will be
performed by Wi-Fi, Node MCU, Motor, Water Level Sensor,Soil Moisture Sensor.
Keywords: IoT, Node MCU, Water Level Sensor, Motor, Soil Moisture Sensor.
CHAPTER-1
INTRODUCTION
An embedded system is a system which is going to do a predefined specified task is the embedded
system and is even defined as combination of both software and hardware. A general-purpose definition
of embedded systems is that they are devices used to control, monitor or assist the operation of
equipment, machinery or plant. "Embedded" reflects the fact that they are an integral part of the system.
At the other extreme a general-purpose computer may be used to control the operation of a large
complex processing plant, and its presence will be obvious.
All embedded systems are including computers or microprocessors. Some of these computers are
however very simple systems as compared with a personal computer.
The very simplest embedded systems are capable of performing only a single function or set of
functions to meet a single predetermined purpose. In more complex systems an application program that
enables the embedded system to be used for a particular purpose in a specific application determines the
functioning of the embedded system. The ability to have programs means that the same embedded
system can be used for a variety of different purposes. In some cases a microprocessor may be designed
in such a way that application software for a particular purpose can be added to the basic software in a
second process, after which it is not possible to make further changes. The applications software on such
processors is sometimes referred to as firmware.
The simplest devices consist of a single microprocessor (often called a "chip”), which may itself
be packaged with other chips in a hybrid system or Application Specific Integrated Circuit (ASIC). Its
input comes from a detector or sensor and its output goes to a switch or activator which (for example)
may start or stop the operation of a machine or, by operating a valve, may control the flow of fuel to an
engine.
As the embedded system is the combination of both software and hardware
Embedded
System
Software Hardware
ALP Processor
C Peripherals
VB memory
Etc.,
Transport
Domestic service
Communications
Office systems and mobile equipment
Banking, finance and commercial
Medical diagnostics, monitoring and life support
Testing, monitoring and diagnostic systems
Processors are classified into four types like:
Micro Processor (µp)
Micro controller (µc)
Digital Signal Processor (DSP)
Application Specific Integrated Circuits (ASIC)
Micro Processor (µp):
A silicon chip that contains a CPU. In the world of personal computers, the terms microprocessor and
CPU are used interchangeably. At the heart of all personal computers and most workstations sits a
microprocessor. Microprocessors also control the logic of almost all digital devices, from clock radios to
fuel-injection systems for automobiles.
Three basic characteristics differentiate microprocessors:
Instruction set: The set of instructions that the microprocessor can execute.
Bandwidth : The number of bits processed in a single instruction.
Clock speed : Given in megahertz (MHz), the clock speed determines how many instructions
per second the processor can execute.
In both cases, the higher the value, the more powerful the CPU. For example, a 32-bit microprocessor
that runs at 50MHz is more powerful than a 16-bit microprocessor that runs at 25MHz. In addition to
bandwidth and clock speed, microprocessors are classified as being either RISC (reduced instruction set
computer) or CISC (complex instruction set computer).
A microprocessor has three basic elements, as shown above. The ALU performs all arithmetic
computations, such as addition, subtraction and logic operations (AND, OR, etc). It is controlled by the
Control Unit and receives its data from the Register Array. The Register Array is a set of registers used
for storing data. These registers can be accessed by the ALU very quickly. Some registers have specific
functions - we will deal with these later. The Control Unit controls the entire process. It provides the
timing and a control signal for getting data into and out of the registers and the ALU and it synchronizes
the execution of instructions (we will deal with instruction execution at a later date).
ALU
CU
Memory Architecture
There two different type’s memory architectures there are:
Harvard Architecture
Von-Neumann Architecture
Harvard Architecture
Computers have separate memory areas for program instructions and data. There are two or more
internal data buses, which allow simultaneous access to both instructions and data. The CPU fetches
program instructions on the program memory bus.
The Harvard architecture is a computer architecture with physically separate storage and signal
pathways for instructions and data. The term originated from the Harvard Mark I relay-based computer,
which stored instructions on punched tape (24 bits wide) and data in electro-mechanical counters. These
early machines had limited data storage, entirely contained within the central processing unit, and
provided no access to the instruction storage as data. Programs needed to be loaded by an operator, the
processor could not boot itself.
Block Diagram:
Power Motor
Supply
This module comes with a built in USB connector and a rich assortment of pin-outs. With a micro
USB cable, you can connect NodeMCU devkit to your laptop and flash it without any
. Specification:
• Voltage:3.3V.
• Wi-Fi Direct (P2P), soft-AP.
• Current consumption: 10uA~170mA.
• Flash memory attachable: 16M B max (512K normal).
• Integrated TCP/IP protocol stack.
• Processor: Tensilica L106 32-bit.
• Processor speed: 80~160MHz.
• RAM: 32K + 80K.
• GPIOs: 17 (multiplexed with other functions).
• Analog to Digital: 1 input with 1024 step resolution.
• +19.5dBm output power in 802.11b mode
• 802.11 support: b/g/n.
• Maximum concurrent TCP connections: 5.
2. Pin Definition:
The most basic way to use the ESP8266 module is to use serial commands, as the chip is basically a
WiFi/Serial transceiver. However, this is not convenient. What we recommend is using the very cool
Arduino ESP8266 project, which is a modified version of the Arduino IDE that you need to install on
your computer. This makes it very convenient to use the ESP8266 chip as we will be using the well-
known Arduino IDE. Following the below step to install ESP8266 library to work in Arduino IDE
environment.
Select ‘115200’ baud upload speed is a good place to start - later on you can try higher speeds but
115200 is a good safe place to start.
Go to your Windows ‘Device Manager’ to find out which Com Port ‘USB-Serial CH340’ is
assigned to. Select the matching COM/serial port for your CH340 USB-Serial interface.
4.2 IOT Service Segmentation
While the potential impact of the IoT is considerable, a concerted effort is required to move beyond this
early stage. In order to optimise the development of the market, a common understanding of the distinct
nature of the opportunity is required.
Another important characteristic of IoT services can be the deployment of a large number of the same
type of devices and applications. Each device and application performs the same activity and transports
information to a service centre at the same time. Regardless of the amount of data transmitted by each
device, this simple operation could cause network congestion. Mobile networks need to provide several
mechanisms to protect and better utilise their capabilities for delivering such M2M/IoT services.
Mechanisms for remotely managing such devices and applications could allow intelligent scheduling,
which would facilitate an appropriate application development and reduce the vulnerability of the
network to application misbehavior.
An additional feature of the IoT market is, that in some scenarios, devices and applications may be
deployed and actively work for a large number of years, operating on batteries or using limited power.
In this case, the communication module needs to consume very little energy to guarantee a longer device
lifetime.
In summary, the IoT will require mobile networks to offer a much more diversified set of capabilities,
while providing protection mechanisms for identifying and blocking any application misbehaviour and
guaranteeing all other services. Mobile operators are working to identify these requirements and develop
appropriate capabilities in order to support the vast range of IoT applications.
4.3 APPLICATIONS
Internet of Things industry sector categories
For consumers, connectivity provided by the IoT could enhance their quality of life in multiple ways,
such as, but not limited to, energy efficiency and security at home and in the city. In the home, the
integration of connected smart devices and cloud-based services will help address the pressing issue of
energy efficiency and security. Connected smart devices will enable a reduction in utility bills and
outages, while also improving home security via remote monitoring.
CHAPTER-3
HARDWARE COMPONENTS
POWER SUPPLY:
Block diagram:
Figure: Power Supply
Circuit diagram:
Description:
Transformer:
A transformer is a device that transfers electrical energy from one circuit to another through
inductively coupled conductors—the transformer's coils. A varying current in the first or primary
winding creates a varying magnetic flux in the transformer's core, and thus a varying magnetic field
through the secondary winding. This varying magnetic field induces a varying electromotive force
(EMF) or "voltage" in the secondary winding. This effect is called mutual induction.
Figure: Transformer Symbol
(or)
Transformer is a device that converts the one form energy to another form of energy like a transducer.
Figure: Transformer
Basic Principle :
A transformer makes use of Faraday's law and the ferromagnetic properties of an iron core to efficiently
raise or lower AC voltages. It of course cannot increase power so that if the voltage is raised, the current
is proportionally lowered and vice versa.
Figure: Basic Principle
Transformer Working:
A transformer consists of two coils (often called 'windings') linked by an iron core, as shown in figure
below. There is no electrical connection between the coils, instead they are linked by a magnetic field
created in the core.
Alternating current flowing in the primary (input) coil creates a continually changing magnetic field in
the iron core. This field also passes through the secondary (output) coil and the changing strength of the
magnetic field induces an alternating voltage in the secondary coil. If the secondary coil is connected to
a load the induced voltage will make an induced current flow. The correct term for the induced voltage
is 'induced electromotive force' which is usually abbreviated to induced e.m.f.
The iron core is laminated to prevent 'eddy currents' flowing in the core. These are currents produced by
the alternating magnetic field inducing a small voltage in the core, just like that induced in the
secondary coil. Eddy currents waste power by needlessly heating up the core but they are reduced to a
negligible amount by laminating the iron because this increases the electrical resistance of the core
without affecting its magnetic properties.
Transformers have two great advantages over other methods of changing voltage:
1. They provide total electrical isolation between the input and output, so they can be safely used to
reduce the high voltage of the mains supply.
2. Almost no power is wasted in a transformer. They have a high efficiency (power out / power in)
of 95% or more.
Classification of Transformer:
Step-Up Transformer
Step-Down Transformer
Step-Down Transformer:
Step down transformers are designed to reduce electrical voltage. Their primary voltage is greater than
their secondary voltage. This kind of transformer "steps down" the voltage applied to it. For instance, a
step down transformer is needed to use a 110v product in a country with a 220v supply.
Step down transformers convert electrical voltage from one level or phase configuration usually down to
a lower level. They can include features for electrical isolation, power distribution, and control and
instrumentation applications. Step down transformers typically rely on the principle of magnetic
induction between coils to convert voltage and/or current levels.
Step down transformers are made from two or more coils of insulated wire wound around a core made
of iron. When voltage is applied to one coil (frequently called the primary or input) it magnetizes the
iron core, which induces a voltage in the other coil, (frequently called the secondary or output). The
turn’s ratio of the two sets of windings determines the amount of voltage transformation.
An example of this would be: 100 turns on the primary and 50 turns on the secondary, a ratio of 2 to 1.
Step down transformers can be considered nothing more than a voltage ratio device.
With step down transformers the voltage ratio between primary and secondary will mirror the "turn’s
ratio" (except for single phase smaller than 1 kva which have compensated secondary). A practical
application of this 2 to 1 turn’s ratio would be a 480 to 240 voltage step down. Note that if the input
were 440 volts then the output would be 220 volts. The ratio between input and output voltage will stay
constant. Transformers should not be operated at voltages higher than the nameplate rating, but may be
operated at lower voltages than rated. Because of this it is possible to do some non-standard applications
using standard transformers.
Single phase step down transformers 1 kva and larger may also be reverse connected to step-down or
step-up voltages. (Note: single phase step up or step down transformers sized less than 1 KVA should
not be reverse connected because the secondary windings have additional turns to overcome a voltage
drop when the load is applied. If reverse connected, the output voltage will be less than desired.)
Step-Up Transformer:
A step up transformer has more turns of wire on the secondary coil, which makes a larger induced
voltage in the secondary coil. It is called a step up transformer because the voltage output is larger than
the voltage input.
Step-up transformer 110v 220v design is one whose secondary voltage is greater than its primary
voltage. This kind of transformer "steps up" the voltage applied to it. For instance, a step up transformer
is needed to use a 220v product in a country with a 110v supply.
A step up transformer 110v 220v converts alternating current (AC) from one voltage to another voltage.
It has no moving parts and works on a magnetic induction principle; it can be designed to "step-up" or
"step-down" voltage. So a step up transformer increases the voltage and a step down transformer
decreases the voltage.
The primary components for voltage transformation are the step up transformer core and coil. The
insulation is placed between the turns of wire to prevent shorting to one another or to ground. This is
typically comprised of Mylar, nomex, Kraft paper, varnish, or other materials. As a transformer has no
moving parts, it will typically have a life expectancy between 20 and 25 years.
Applications
The ratio of the number of turns on the primary and secondary coils determines the ratio of the
voltages...
...where Vp is the primary (input) voltage, Vs is the secondary (output) voltage, Np is the number of turns
on the primary coil, and Ns is the number of turns on the secondary coil.
Diodes:
Diodes allow electricity to flow in only one direction. The arrow of the circuit symbol shows the
direction in which the current can flow. Diodes are the electrical version of a valve and early diodes
were actually called valves.
A diode is a device which only allows current to flow through it in one direction. In this direction, the
diode is said to be 'forward-biased' and the only effect on the signal is that there will be a voltage loss of
around 0.7V. In the opposite direction, the diode is said to be 'reverse-biased' and no current will flow
through it.
Rectifier
The purpose of a rectifier is to convert an AC waveform into a DC waveform (OR) Rectifier converts
AC current or voltages into DC current or voltage. There are two different rectification circuits, known
as 'half-wave' and 'full-wave' rectifiers. Both use components called diodes to convert AC into DC.
The half-wave rectifier is the simplest type of rectifier since it only uses one diode, as shown in figure .
Figure: Half Wave Rectifier
Figure 2 shows the AC input waveform to this circuit and the resulting output. As you can see, when
the AC input is positive, the diode is forward-biased and lets the current through. When the AC input is
negative, the diode is reverse-biased and the diode does not let any current through, meaning the output
is 0V. Because there is a 0.7V voltage loss across the diode, the peak output voltage will be 0.7V less
than Vs.
While the output of the half-wave rectifier is DC (it is all positive), it would not be suitable as a power
supply for a circuit. Firstly, the output voltage continually varies between 0V and Vs-0.7V, and
secondly, for half the time there is no output at all.
The Full-wave Rectifier
The circuit in figure 3 addresses the second of these problems since at no time is the output voltage 0V.
This time four diodes are arranged so that both the positive and negative parts of the AC waveform are
converted to DC. The resulting waveform is shown in figure 4.
When the AC input is positive, diodes A and B are forward-biased, while diodes C and D are reverse-
biased. When the AC input is negative, the opposite is true - diodes C and D are forward-biased, while
diodes A and B are reverse-biased.
While the full-wave rectifier is an improvement on the half-wave rectifier, its output still isn't suitable as
a power supply for most circuits since the output voltage still varies between 0V and Vs-1.4V. So, if
you put 12V AC in, you will 10.6V DC out.
Capacitor Filter
The capacitor-input filter, also called "Pi" filter due to its shape that looks like the Greek letter pi, is a
type of electronic filter. Filter circuits are used to remove unwanted or undesired frequencies from a
signal.
A typical capacitor input filter consists of a filter capacitor C1, connected across the rectifier output, an
inductor L, in series and another filter capacitor connected across the load.
1. The capacitor C1 offers low reactance to the AC component of the rectifier output while it offers
infinite reactance to the DC component. As a result the capacitor shunts an appreciable amount
of the AC component while the DC component continues its journey to the inductor L
2. The inductor L offers high reactance to the AC component but it offers almost zero reactance to
the DC component. As a result the DC component flows through the inductor while the AC
component is blocked.
3. The capacitor C2 bypasses the AC component which the inductor had failed to block. As a result
only the DC component appears across the load RL.
78xx:’78’ indicate the positive series and ‘xx’indicates the voltage rating. Suppose 7805 produces the
maximum 5V.’05’indicates the regulator output is 5V.
79xx:’78’ indicate the negative series and ‘xx’indicates the voltage rating. Suppose 7905 produces the
maximum -5V.’05’indicates the regulator output is -5V.
Pin3: It is used for output pin. Through this pin we get the output.
Figure: Regulator
The soil moisture sensor is one kind of sensor used to gauge the volumetric content of water
within the soil. As the straight gravimetric dimension of soil moisture needs eliminating, drying, as well
as sample weighting. These sensors measure the volumetric water content not directly with the help of
some other rules of soil like dielectric constant, electrical resistance, otherwise interaction with
neutrons, and replacement of the moisture content. The relation among the calculated property as well as
moisture of soil should be adjusted & may change based on ecological factors like temperature, type of
soil, otherwise electric conductivity. The microwave emission which is reflected can be influenced by
the moisture of soil as well as mainly used in agriculture and remote sensing within hydrology. These
sensors normally used to check volumetric water content, and another group of sensors calculates a new
property of moisture within soils named water potential. Generally, these sensors are named as soil
water potential sensors which include gypsum blocks and tensiometer.
This module also includes a potentiometer that will fix the threshold value, & the value can be evaluated
by the comparator-LM393. The LED will turn on/off based on the threshold value.
Working Principle
This sensor mainly utilizes capacitance to gauge the water content of the soil (dielectric permittivity).
The working of this sensor can be done by inserting this sensor into the earth and the status of the water
content in the soil can be reported in the form of a percent. This sensor makes it perfect to execute
experiments within science courses like environmental science, agricultural science, biology, soil
science, botany, and horticulture.
Specifications
The specification of this sensor includes the following.
It most commonly consists of a number of switches or sensors connected to a control unit that
determines if and which button was pushed or a preset time has lapsed, and usually illuminates a light
on the appropriate button or control panel, and sounds a warning in the form of a continuous or
intermittent buzzing or beeping sound. Initially this device was based on an electromechanical system
which was identical to an electric bell without the metal gong. Often these units were anchored to a wall
or ceiling and used the ceiling or wall as a sounding board. Another implementation with some AC-
connected devices was to implement a circuit to make the AC current into a noise loud enough to drive a
loudspeaker and hook this circuit up to a cheap 8-ohm speaker. Nowadays, it is more popular to use a
ceramic-based piezoelectric sounder like a Son alert which makes a high-pitched tone. Usually these
were hooked up to "driver" circuits which varied the pitch of the sound or pulsed the sound on and off.
In game shows it is also known as a "lockout system," because when one person signals ("buzzes in"),
all others are locked out from signalling. Several game shows have large buzzer buttons which are
identified as "plungers". The word "buzzer" comes from the rasping noise that buzzers made when they
were electromechanical devices, operated from stepped-down AC line voltage at 50 or 60 cycles. Other
sounds commonly used to indicate that a button has been pressed are a ring or a beep.
Water Level Sensor:
The working principle of the ultrasonic water level sensor is that the ultrasonic transducer (probe) sends
out a high-frequency pulse sound wave when it encounters the surface of the measured level (material),
is reflected, and the reflected echo is received by the transducer and converted into an electrical
signal.The water level sensor is a device that measures the liquid level in a fixed container that is too
high or too low. According to the method of measuring the liquid level, it can be divided into two types:
contact type and non-contact type. The input type water level transmitter we call is a contact
measurement, which converts the height of the liquid level into an electrical signal for output. It is
currently a widely used water level transmitter.
Working Principle:
The working principle of the water level sensor is that when it is put into a certain depth in the liquid to
be measured, the pressure on the sensor’s front surface is converted into the liquid level height. The
calculation formula is Ρ=ρ.g.H+Po, in the formula P is the pressure on the liquid surface of the sensor, ρ
is the density of the liquid to be measured, g is the local acceleration of gravity, Po is the atmospheric
pressure on the liquid surface, and H is the depth at which the sensor drops into the liquid.
Uses of water level sensors:
The uses of water level sensors include the following applications:
1. Water level measurement of pools and water tanks
2. Water level measurement of rivers and lakes
3. Marine level measurement
4. Level measurement of acid-base liquids
5. Oil level measurement of oil trucks and mailboxes
6. Swimming pool water level control
7. Tsunami warning and sea-level monitoring
8. Cooling tower water level control
9. Sewage pump level control
10. Remote monitoring of the liquid level
Benefits of water level sensors:
1. Simple structure: There are no movable or elastic elements, so the reliability is extremely high, and
there is no need for regular maintenance during use. The operation is simple and convenient.
2. Convenient installation: When using, first connect one end of the wire correctly, and then put the
other end of the water level probe into the solution to be measured.
3. Ranges are optional: you can measure the water level in the range of 1-200 meters, and other
measurement ranges can also be customized.
4. Wide range of applications: suitable for liquid level measurement of high temperature and high
pressure, strong corrosion, high pollution, and other media.
5. Wide range of measuring medium: High-precision measurement can be carried out from the water, oil
to paste with high viscosity, and wide-range temperature compensation is not affected by the foaming,
deposition, and electrical characteristics of the measured medium.
6. Long service life: Generally, the liquid level sensor can be used for 4-5 years in a normal
environment, and it can also be used for 2-3 years in a harsh environment.
7. Strong function: It can be directly connected to the digital display meter to display the value in real-
time, or it can be connected to a variety of controllers and set the upper and lower limits to control the
water volume in the container.
8. Accurate measurement: The built-in high-quality sensor has high sensitivity, fast response, and
accurately reflects the subtle changes of the flowing or static liquid level, and the measurement accuracy
is high.
9. Variety of types: liquid level sensors have various structural designs such as input type, straight rod
type, flange type, thread type, inductive type, screw-in type, and float type. It can meet the measurement
needs of all different places.
Motors
The motor or an electrical motor is a device that has brought about one of the biggest advancements in
the fields of engineering and technology ever since the invention of electricity. A motor is nothing but
an electro-mechanical device that converts electrical energy to mechanical energy. Its because of
motors, life is what it is today in the 21st century. Without motor we had still been living in Sir Thomas
Edison’s Era where the only purpose of electricity would have been to glow bulbs. There are different
types of motor have been developed for different specific purposes. In simple words we can say a
device that produces rotational force is a motor. The very basic principal of functioning of an electrical
motor lies on the fact that force is experienced in the direction perpendicular to magnetic field and the
current, when field and current are made to interact with each other.
Ever since the invention of motors, a lot of advancements has taken place in this field of engineering
and it has become a subject of extreme importance for modern engineers. This particular webpage takes
into consideration, the above mentioned fact and provides a detailed description on all major electrical
motors and motoring parts being used in the present era.
History of Motor
In the year 1821 British scientist Michael Faraday explained the conversion of electrical energy into
mechanical energy by placing a current carrying conductor in a magnetic field which resulted in the
rotation of the conductor due to torque produced by the mutual action of electrical current and field.
Based on his principal the most primitive of machines a DC (Direct Current) machine was designed by
another British scientist William Sturgeon in the year 1832. But his model was overly expensive and
wasn’t used for any practical purpose. Later in the year 1886 the first electrical motor was invented by
scientist Frank Julian Sprague. That was capable of rotating at a constant speed under a varied range
of load, and thus derived motoring action.
Among the four basic classification of motors mentioned above the DC motor as the name suggests, is
the only one that is driven by direct current. It’s the most primitive version of the electric motor where
rotating torque is produced due to flow of current through the conductor inside a magnetic field. Rest all
are AC electrical motors, and are driven by alternating current, for e.g. the synchronous motor, which
always runs at synchronous speed. Here the rotor is an electro - magnet which is magnetically locked
with stator rotating magnetic field and rotates with it. The speed of these machines are varied by varying
the frequency (f) and number of poles (P), as Ns = 120 f/P.
In another type of AC motor where rotating magnetic field cuts the rotor conductors, hence circulating
current induced in these short circuited rotor conductors. Due to interaction of the magnetic field and
these circulating currents the rotor starts rotates and continues its rotation. This is induction motor which
is also known as asynchronous motor runs at a speed lesser than synchronous speed, and the rotating
torque, and speed is governed by varying the slip which gives the difference between synchronous speed
Ns, and rotor speed speed Nr, It runs governing the principal of EMF induction due to
varying flux density, hence the name induction machine comes. Single phase induction motor like a 3
phase, runs by the principal of emf induction due to flux, but the only difference is, it runs on single
phase supply and its starting methods are governed by two well established theories, namely the Double
Revolving field theory and the Cross field theory.
Apart from the four basic types of motor mentioned above, there are several types Of special electrical
motors like Linear Induction motor(LIM), Stepper motor, Servo motor etc with special features that has
been developed according to the needs of the industry or for a particular particular gadget like the use of
hysteresis motor in hand watches because of its compactness.
Electrical motor in general is an electro-mechanical device that converts energy from electrical domain
to mechanical domain. Based on the type of input we have classified it into single phase and 3 phase
motors. Among 3 phase motors, induction motors and synchronous motors are more widely used.
When a 3 phase electric conductors are placed in a certain geometrical positions (In certain angle from
one another) then an electrical field is generated. Now the rotating magnetic field rotates at a certain
speed, that speed is called synchronous speed. Now if an electromagnet is present in this rotating
magnetic field, the electromagnet is magnetically locked with this rotating magnetic field and rotates
with same speed of rotating field.
Synchronous motors is called so because the speed of the rotor of this motor is same as the rotating
magnetic field. It is basically a fixed speed motor because it has only one speed, which is synchronous
speed and therefore no intermediate speed is there or in other words it’s in synchronism with the supply
frequency. Synchronous speed is given by
Normally it's construction is almost similar to that of a 3 phase induction motor, except the fact that the
rotor is given DC supply, the reason of which is explained later. Now, let us first go through the basic
construction of this type of motor. From the above picture, it is clear that how this type of motors are
designed. The stator is given is given three phase supply and the rotor is given dc supply.
Stator
As the name indicates stator is a stationary part of induction motor. A three phase supply is given to the
stator of induction motor.
Rotor
The rotor is a rotating part of induction motor. The rotor is connected to the mechanical load through the
shaft. The rotor of the three phase induction motor are further classified as-
1. Squirrel cage rotor,
2. Slip ring rotor or wound rotor or phase wound rotor.
Depending upon the type of rotor used the three phase induction motor are classified as-
1. Squirrel cage induction motor
2. Slip ring induction motor or wound induction motor or phase wound induction motor
The construction of stator for both the kind of three phase induction motor remains the same and is
discussed in brief in next paragraph. Stator of Three Phase Induction Motor The stator of the three
phase induction motor consists of three main parts:
1. Stator frame
2. Stator core
3. Stator winding or field winding
4. Stator Frame: It is the outer most part of the three phase induction motor. Its main function is
to support the stator core and the field winding. It acts as a covering and provide protection and
mechanical strength to all the inner parts of the machine. The frame is either made up of die cast
or fabricated steel. The frame of three phase induction motor should be very strong and rigid as
the air gap length of three phase induction motor is very small, otherwise rotor will not remain
concentric with stator which will give rise to unbalanced magnetic pull.
5. Stator Core : The main function of the stator core is to carry alternating flux. In order to reduce
the eddy current losses the stator core is laminated. This laminated type of structure is made up
of stamping which is about 0.4 to 0.5 mm thick. All the stamping are stamped together to form
stator core, which is then housed in stator frame. The stampings are generally made up of silicon
steel, which reduces the hysteresis loss.
6. Stator Winding or Field Winding : The slots on the periphery of stator core of the three phase
induction motor carries three phase windings. This three phase winding is supplied by three
phase ac supply. The three phases of the winding are connected either in star or delta depending
upon which type of starting method is used. The squirrel cage motor is mostly started by star-
delta stater and hence the stator of squirrel cage motor are delta connected. The slip ring three
phase induction motor are started by inserting resistances so, the stator winding can be connected
either in star or delta. The winding wound on the stator of three phase induction motor is also
called field winding and when this winding is excited by three phase ac supply it produces
rotating magnetic field.
MOTOR DRIVER
L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers
since they take a low-current control signal and provide a higher-current signal. This higher current
signal is used to drive the motors.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors
can be driven simultaneously, both in forward and reverse direction. The motor operations of two
motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the
corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions,
respectively. Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start
operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs
become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is
disabled, and their outputs are off and in the high-impedance state.
Pin Diagram:
Pin Description:
Pin
Function Name
No
1 Enable pin for Motor 1; active high Enable 1,2
2 Input 1 for Motor 1 Input 1
3 Output 1 for Motor 1 Output 1
4 Ground (0V) Ground
5 Ground (0V) Ground
6 Output 2 for Motor 1 Output 2
7 Input 2 for Motor 1 Input 2
8 Supply voltage for Motors; 9-12V (up to 36V) Vcc 2
9 Enable pin for Motor 2; active high Enable 3,4
10 Input 1 for Motor 1 Input 3
11 Output 1 for Motor 1 Output 3
12 Ground (0V) Ground
13 Ground (0V) Ground
14 Output 2 for Motor 1 Output 4
15 Input2 for Motor 1 Input 4
16 Supply voltage; 5V (up to 36V) Vcc 1
Working
A power sensor tag with interference reduction for electricity monitoring of two-wire
household appliances consists of transmitter and receiver section separately. Mainly this project is
used for reducing human effect and for increasing water usage in the field of agriculture
automatically.
First these kits are connected to the main supply (230V A.C).then it is step down to 5V d.c
supply. 230V A.C supply is given as input to the step down transformer then it is step down that
voltage to some 18V A.C supply. Then it is given to the Bridge wave Rectifier. This converts A.C to
Pulsating D.C. then this is given to the filter circuit. Here capacitive filter is used. So it converts that
pulsating D.C to pure D.C. next this is connected to 7805 regulator. It produces our required 5V D.C
supply.
Electricity can be monitored by using the parameters like voltage and current these 2
Parameters can be sensed by using the voltage and current sensors. But the controlling of the
devices in the house is not possible in the existing system. To overcome these disadvantages we
are going for proposed method
4.2 ADVANTAGES
4.3 APPLICATIONS
Field Application
Industrial Applications
Protocol based Applications
CHAPTER 4
SOFTWARE IMPLEMENTATION
4.1 Arduino Uno on the Arduino Desktop IDE
If you want to program your Arduino Uno while offline you need to install the Arduino Desktop
IDE The Uno is programmed using the Arduino Software (IDE), our Integrated Development
Environment common to all our boards. Before you can move on, you must have installed the Arduino
Software (IDE) on your PC, as explained in the home page of our Getting Started. Connect your Uno
board with an A B USB cable; sometimes this cable is called a USB printer cable.
The USB connection with the PC is necessary to program the board and not just to power it up.
The Uno automatically draw power from either the USB or an external power supply. Connect the board
to your computer using the USB cable. The green power LED (labelled PWR) should go on.
Libraries.
Figure 4.6: Library Manager
The same happens for the libraries present in additional cores installations. It is also important to note
that the version of the library you put in your sketchbook may be lower than the one in the distribution
or core folders, nevertheless it will be the one used during compilation. When you select a specific core
for your board, the libraries present in the core’s folder are used instead of the same libraries present in
the IDE distribution folder.
Last, but not least important is the way the Arduino Software (IDE) upgrades itself: all the files in
Programs/Arduino (or the folder where you installed the IDE) are deleted and a new folder is created
with fresh content.
The way libraries are chosen during compilation is designed to allow the update of libraries present in
the distribution. This means that placing a library in the “libraries” folder in your sketchbook overrides
the other libraries versions. This is why we recommend that you only install libraries to the sketchbook
folder so they are not deleted during the Arduino IDE update process.
4.8 Third-Party Hardware
Support for third-party hardware can be added to the hardware directory of your sketchbook directory.
Platforms installed there may include board definitions (which appear in the board menu), core libraries,
boot loaders, and programmer definitions. To install, create the hardware directory, then unzip the third-
party platform into its own sub-directory. (Don't use "arduino" as the sub-directory name or you'll
override the built-in Arduino platform.) To uninstall, simply delete its directory [31]. For details on
creating packages for third-party hardware, see the Arduino IDE 1.5 3rd party Hardware specification.
Figure 4.8: IDE Preferences
4.9 Serial Monitor
This displays serial sent from the Arduino or Genuino board over USB or serial connector. To send data
to the board, enter text and click on the "send" button or press enter. Choose the baud rate from the
drop-down menu that matches the rate passed to Serial. begin in your sketch. Note that on Windows,
Mac or Linux the board will reset (it will rerun your sketch) when you connect with the serial monitor.
Please note that the Serial Monitor does not process control characters; if your sketch needs a complete
management of the serial communication with control characters [32], you can use an external terminal
program and connect it to the COM port assigned to your Arduino board.
4.10 Boards
The board selection has two effects: it sets the parameters (e.g. CPU speed and baud rate) used when
compiling and uploading sketches; and sets and the file and fuse settings used by the burn boot loader
command. Some of the board definitions differ only in the latter, so even if you've been uploading
successfully with a particular selection you'll want to check it before burning the boot loader. You can
find a comparison table between the various boards here. Arduino Software (IDE) includes the built in
support for the boards in the following list, all based on the AVR Core. The Boards Manager included in
the standard installation allows to add support for the growing number of new boards based on different
cores like Arduino Due, Arduino Zero, Edison, Galileo and so on. An ATmega168 running at 16 MHz
without auto-reset. Compilation and upload is equivalent to Arduino Diecimila or Duemilanove w/
ATmega168, but the boot loader burned has a slower timeout (and blinks the pin 13 LED three times on
reset); 6 Analog In, 14 Digital I/O and 6 PWM.
4.11 Burning the boot loader
The boot loader is a small piece of software that allows your Arduino board to communicate with the
Arduino IDE when you want to upload a sketch. Normally when you want to load a program on a
microcontroller you need an external programmer, like the Arduino ISP. The boot loader eliminates the
needs of an external programmer because, the protocol that allows your computer to program the flash
memory of the AVR is contained inside the boot loader.
All the AVR-based Arduino boards comes with the boot loader pre-installed but sometimes the upload
process or some sketches can corrupt the memory where the boot loader resides causing the failure of
future upload procedures. Burning again the boot loader with the Arduino ISP can restore the boot
loader and bring back your Arduino to upload using the USB port again. You can also use the Arduino
ISP to burn the boot loader in a brand new ATmega. If you replace the ATmega microcontroller on your
Arduino you will need to burn the boot loader in order to load sketches in the usual way. You can
simply do it with the Arduino ISP. Burning the boot loader is an easy-to-go feature provided by the
Arduino IDE. To upload the boot loader on your board just connect everything as described before and
click on Burn boot loader in the Tools menu.
PROGRAM IMPLEMENTATION