Chapter 3
Chapter 3
Chapter 3
CHAPTER 3
HARDWARE AND SOFTWARE DESCRIPTION
Rectifier
Arduino Cables
UNO
Step-down
Transfor
Programming
Switches
AC
supply
Regulator
Rectifier
Step-
down
AC
supply
Analog: The area of pins under the “Analog in” label (A0 through A5 on the UNO) is
Analog in pins. These pins can read the signal from an analog sensor (like a
temperature sensor) and convert it into a digital value that we can read.
Digital: Across from the analog pins are the digital pins (0 through 13 on the UNO).
These pins can be used for both digital input (like telling if a button is pushed) and
digital output (like powering an LED).
PWM: The digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as normal
digital pins, but it can also be used for something called Pulse-Width Modulation
(PWM).
AREF (Stands for Analog Reference): Most of the time you can leave this pin alone.
It is sometimes used to set an external reference voltage (between 0 and 5 Volts) as
the upper limit for the analog input pins.
lines each having 16 Characters a), 20X4 LCD Displays (4 lines, 20 characters). It has
14 pins.
3.2.4. Relay
A relay is electromechanical switch which is used in industrial application to
provide isolation between high voltage and low voltage circuits. These two circuits
have different voltage rating. One might be a low voltage side and other high voltage
side. Electrical mechanical relay has three main components coil, spring and contact.
When coil is energized, internal spring of electro mechanical relay attract or pulls
contact towards other point and complete the circuit. An electromechanical relay can
be either normally open or normally closed. In our project, normally open electro
mechanical relay is used. A voltage is required to energize the coil, vary from relay to
relay. Voltage may vary from 5 volts to 50 volts and current may vary from 10mA to
20mA. The relays also have minimum voltage rating. Its means below the voltage
rating, relay will not operate. One can check minimum operating voltage of relay in
its data sheet. But current requirements are not specified in date sheets. Coil resistance
is usually provided in data sheet of relay which can be used to find current
requirement of relay using Ohm’s law formula V= IR. Relays are used in a wide
variety of applications like electric power systems, home appliances, automobiles,
industrial equipment, digital computers, etc.
20
3.2.6. Resistors
The resistor is a passive electrical component that creates resistance the flow
of electric current in the electronic circuit. In a direct-current (DC) circuit, the current
through a resistor is inversely proportional to its resistance, and directly proportional
to the voltage across it. In alternating-current (AC) circuits, this rule also applies as
long as the resistor does not contain inductance or capacitance. Resistors are used for
many purposes, for example limiting electric current, voltage division and adjusting
signal levels etc. Resistance value based on the color code can be read from left to
right and silver or gold color usually exists at the right end.
1kΩ
Vdrop
5V dc
1kΩ 1kΩ 1kΩ 1kΩ
G
Supply voltage, Vs = 5 V
Vdrop = ?
By voltage division rule or Kirchhoff’s voltage law,
3
8 ×10
Vdrop = 5 x 3
9 ×10
= 4.44 V
4.44
By converting the analog voltage 4.44 V to digital value = ×1023
5
= 908.42
Due to some tolerance, set maximum and minimum limit of voltage at 4 km;
890≥ V drop ≤920
At 3km,
1kΩ 1kΩ 1kΩ
1kΩ
Vdrop
5V dc
1kΩ 1kΩ 1kΩ
Supply voltage, Vs = 5 V
Vdrop = ?
By voltage division rule or Kirchhoff’s voltage law,
23
3
6 ×10
Vdrop =5x 3
7 ×10
= 4.28V
4.28
By converting the analog voltage 4.28V to digital value = × 1023
5
=875.68
Due to some tolerance, set maximum and minimum limit of voltage at 3km;
850≥ V drop ≤890
At 2km,
1kΩ 1kΩ
1kΩ
Vdrop
5V dc
1kΩ 1kΩ
Supply voltage, Vs = 5 V
Vdrop = ?
By voltage division rule or Kirchhoff’s voltage law,
3
4 × 10
Vdrop = 5 x 3
5 ×10
= 4V
4
By converting the analog voltage 4.00V to digital value = ×1023
5
=818.4
Due to some tolerance, set maximum and minimum limit of voltage at 2km;
At 1km,
1kΩ
1kΩ
Vdrop
5V dc
1kΩ
24
Supply voltage, Vs = 5 V
Vdrop = ?
By voltage division rule or Kirchhoff’s voltage law,
3
2× 10
Vdrop = 5 x 3
3× 10
= 3.33 V
3.33
By converting the analog voltage 3.33V to digital value = ×1023
5
=681.31
Due to some tolerance, set maximum and minimum limit of voltage at 1km;
600≥ V drop ≤750
3.4. Software
There are two types of software used in this project. they are Arduino IDE
software for writing and uploading the program and the other one proteus simulation
software that can design simulate numerous kinds of electronics devices.
comes with a C / C++ library called “Wiring” which makes many common
input/output operations much easier. Arduino programs are written in C/C++,
although users only need to define two functions in order to make a run able program:
setup () – a function run once at the start of a program which can be used for
initializing settings and loop () – a function called repeatedly until the board is
powered off. Since the IDE is pin oriented, we can quickly achieve our desired logic
and build a working mode.