Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
As time is very important for everyone, being busy and engage to lots of work and human
behavior is that task should be completed on time as fast as possible. The completion of
task on time from away i.e. remote is a bit difficult manually own self and may need
assistant to complete that task so to remove such assistant we need a solution for that is
obtained by internet globally and must surfing internet to control and monitor the home
based devices.
Being the era of technology and Internet is being common for everyone. Besides
communicating to person over internet now it’s time to interface and engage the various
electronic equipment, electrical devices, hardware devices over internet and control,
monitor and operate via internet. On remotely it is most flexible and easily control and
monitor the various devices by browsing the specified web page or web site. The status of
devices can also be monitored easily. Impart from that the status of home temperature ,
light intensity, fire sparking, LPG Gas leakage, Automatic water level indicator, Automatic
fan speed and may Automatic windows/door close/open can be also be embedded along
with the our Project entitled “ INTERNET BASED SMART HOME AUTOMATION
SYSTEM”.
Smartest and intelligent system is the demand of modern society which are directly
interrelated to the technology. The time and desire go side by side with the help of
technology which makes life a bit easier and convenient. Convergence of technology with
the environment and human beings may also plays vital roles for the encouragement of
development of new system which reliably changes the life style of human being and
society. World completely moving towards the technology without which none can exist
normally because everyone knowingly or unknowingly a part of technology which plays
role in daily life. This is technology era so must living with technology makes a bit comfort
in life.
1.2 PROBLEM STATEMENT
Element Description
The problem of modern, To control and monitor home based devices remotely within said
luxury, handicapped and time.
disable people
Affects The controlling and monitoring of home based devices from remote
may need assistant and extra charges and security cost too because
modern family can’t remain in home, all of family members engage
to the work or other Purposes none of them are free.
And results in Due to unavailability of family members less security to home and
huge electricity bill may occur respective to improper controlling and
monitoring of home based devices.
Benefits of a Internet based home automation can be used to control and monitor
Solution home based devices remotely.
1.3 Background
This proposed project presents a design and prototype implementation of new home
automation system that uses Wi-Fi technology as a network infrastructure connecting its
parts. The proposed system consists of two main components; the first part is the server
(web server), which presents system core that manages, controls, and monitors users’ home.
Users and system administrator can locally (LAN)/RF remote or remotely (internet)
manage and control system code. Second part is hardware interface module, which provides
appropriate interface to sensors and actuator of home automation system.
Unlike most of available home automation system in the market, the proposed system
is scalable that one server can manage many hardware interface modules as long as it exists
on Wi-Fi network coverage. System supports a wide range of home automation devices
like power management components, and security components.
The proposed system is better from the scalability and flexibility point of view than the
commercially available home automation systems.
An IOT (Internet of thing) is the ground concept of this proposed project. The
controlling and monitoring of home based devices or any hardware devices of any
organization or relevant cases from internet using Wi-Fi technology is the main themes of
this proposed project.
1.5 OBJECTIVES
The current and recent home automation system can be modified to the smart home
automation system by designing it as embedded system controlled application using
internet by Wi-Fi technology. The internet is used to control, monitor and operate the
various electrical and electronic or hardware devices.
The main objective of this project is to provide the convenient and easy way for busy and
modern and handicapped /disabled people for controlling, monitoring and operating the
various devices from remotely in efficient manner.
SYSTEM MODEL
The architectural design consists of two portion, one is the RF remote device and the other is
main board. It also contains two operation mode i.e. Indoor mode and outdoor mode as
explained below.
Indoor mode
The RF remote device is used for signaling radio frequency to the main board. The RF receiver
present with in the mainboard gets signal decodes and works as per the instruction of the
microcontroller. It can also be operated by LAN in the indoor mode via internet.
Outdoor mode
The Wi-Fi module is used for signaling to the main board via MAX-232 IC. The MAX-232
driver/receiver reduces RS 232 inputs which may be as high as + 25 volt to standard 5v TTL
levels.
The other components used here are the ULN IC and Relays for controlling various loads.
The display unit/device (i.e. LCD) is used for displaying the instructions as per the
microcontroller. The Buzzer is used to provide the siren/sound that indicate the status of the
current instructions as provided by the microcontroller.
Smart home automation system is the partial solution to the physically challenged, busiest and
modern people. The smart home automation system has following features:
1. TRANSMITTER SECTION
User RF Remote
PC/Mobile Internet
Phone
RF Remote RF
Receiver
Wi-Fi Sensor
Wi-Fi
Module I/O Board
Module Relay
Driver
Processing
Unit
Temperature
sensor Display
Unit
Buzzer
Fig.2.3 Master Board
AC Step Down
Rectifier Filter
SUPPLY Transformer
DC
Regulator
Voltage
Switch RF
RF
Encoder Antenna
Transmitter
Board
HT12E
ESP8266 Load
MAX-232 Load
12v Power
RF Supply
Receiver MCU
Sensor Board
ATMEGA32
RF
Decoder
LCD 16X2
HT12E
Analog
Temperature
Sensor
Battery
The different house hold devices, hardware devices, electrical and electronic equipment which
is to be controlled and monitored must be interfaced or connected to the Master Board as a
Load. The various sensors are accumulated as a sensor board, which senses the physical
parameters. The parameters which is to be controlled and monitored must be programmed in
to the microcontroller. The different notification components like LCD and Buzzer are used
for the notification different task and signaling the task as prescribed by the microcontroller.
As the system is working on two mode i.e. Indoor and Outdoor mode, it must be operated
synchronously as user demands.
In case of indoor mode, the user is provided with the RF remote or LAN network of the
controlling and monitoring different equipment. The RF remote with the switch board provides
user facility of operation of various devices, which is first encoded by encoder like HT12E and
then the encoded signal passed through the RF transmitter which modulates the signal to RF
and then send via Antenna. In the receiving side, the RF receiver can receives the RF signal
and is decoded via HT12D decoder and the sends to the microcontroller, which decides what
is to do as signal provided by the user.
While in outdoor mode it has only one option i.e. internet for carry out the various
operation. The user is provided with the web page or web browser which is the virtual
representation of the different equipment i.e. physical objects in the internet. The status of
different equipment and physical things can also be monitored by the web browser at the can
be operated by the option provided in the web page. The signal is transmitted via TCP/IP
protocol and which received by the microcontroller through Wi-Fi module via MAX-232 IC
and the desired operation of user can be carried out.
2.4 REQUIREMENTS
The requirement of various electronic components and material required for the project
development can be listed below:
1. RF Remote
i. Switches
ii. RF encoder
iii. RF transmitter
iv. Battery(3-5-12V)
v. Antenna
2. Main Board(Mother/Master Board) or web server
i. Antenna
ii. RF receiver
iii. RF decoder
iv. Microcontroller
v. Wi-Fi module
vi. MAX 232 (RS 232)
vii. ULN IC
viii. Temperature sensors
ix. LPG sensors
x. Light sensors
xi. Fire sensors
xii. LCD
xiii. Relays
xiv. Batteries
xv. CPU fan
xvi. Buzzer
xvii. Power Supply unit
xviii. Transformer: Step down transformer(220/12), 500mA
xix. Diode: IN 4007
xx. Voltage regulator: LM 7805, LM7806, LM7812
xxi. LEDs
xxii. Resistors
xxiii. Capacitors
xxiv. Potentiometer
CHAPTER 3
HARDWARE DESCRIPTION
A transformer is an electrical device that transfers electrical energy between two or more
circuits through electromagnetic induction. Electromagnetic induction produces an
electromotive force across a conductor which is exposed to time varying magnetic fields. A
varying current in the transformer's primary winding creates a varying magnetic flux in the
transformer core and a varying magnetic field impinging on the transformer's secondary
winding. This varying magnetic field at the secondary winding induces a varying electromotive
force (EMF) or voltage in the secondary winding due to electromagnetic induction.
On a step-up transformer there are more turns on the secondary coil than the primary coil.
The induced voltage across the secondary coil is greater than the applied voltage across the
primary coil or in other words the voltage has been “stepped-up”.
Fig.3.1 Step up transformer
A step down transformer has less turns on the secondary coil that the primary coil. The
induced voltage across the secondary coil is less than the applied voltage across the primary
coil or in other words the voltage is “stepped-down”.
In our design 12 volt 500ma step down transformer have been used to provide 12v for
ULN2003A and relay. Further regulator is used to obtain 5v DC for microcontroller, LCD and
sensors, 6v DC for relay and 3v DC for the Wi-Fi module.
Fig.3.4 View of transformer
3.1.2 DIODE
A diode is an electrical device allowing current to move through it in one direction with far
greater ease than in the other. Moreover, a diode is a simple electrical device that allows the
flow of current only in one direction. So it can be said to act somewhat like a switch. A specific
arrangement of diodes can convert AC to pulsating DC, hence it is sometimes also called as a
rectifier. It is derived from "di-ode" which means a device having two electrodes i.e. cathode
and anode. The symbol of diode is as shown in figure below:-
In our design diode is used for the purpose of rectification and protection of MCU. The
rectification means converting AC voltage into DC voltage. The common rectification circuits
are half wave rectifier (HWR), Full wave rectifier (FWR) and bridge wave rectifier and each
have own merits and demerits.
3.1.3 CAPACITOR
A capacitor is a passive electronic component that stores energy in the form of an
electrostatic field. The forms of practical capacitors vary widely, but all contain at
least two electrical conductors (plates) separated by a dielectric (i.e. an insulator
that can store energy by becoming polarized. Capacitors are widely used as parts of
electrical circuits in many common electrical devices.
When there is a potential difference across the conductors (e.g., when a
capacitor is attached across a battery), an electric field develops across the
dielectric, causing positive charge +Q to collect on one plate and negative charge
−Q to collect on the other plate. Energy is stored electro statically in an electric
field. An ideal capacitor is characterized by a single constant value, its capacitance.
Capacitance is defined as the ratio of the electric charge Q on each conductor to the
potential difference V between them. The SI unit of capacitance is the farad (F),
which is equal to one coulomb per volt (1 C/V).
Capacitors are widely used in electronic circuits for blocking direct current
(DC) while allowing alternating current (AC) to pass. In analog filter networks, they
smooth the output of power supplies. In resonant circuits they tune radios to
particular frequencies. In electric power transmission systems, they stabilize
voltage and power flow.
Units of Capacitance
Microfarad (µF) = 1 µF = 1/1,000,000 = 0.000001 = 10-6 F
Nanofarad (nF) = 1 nF = 1/1,000,000,000 = 0.000000001 = 10-9F
Picofarad (pF) = 1 pF = 1/1,000,000,000,000 = 0.000000000001 = 10-12F
A ceramic capacitor is a fixed value capacitor in which ceramic material acts as the dielectric.
It is constructed of two or more alternating layers of ceramic and a metal layer acting as the
electrodes. The composition of the ceramic material defines the electrical behavior and
therefore applications of the capacitors.
Fig.3.16 LM 7833 IC
In our design we have used LM 7833 IC for power supply of 3.3V in Wi-Fi module. It has
output current of 1A. It has many features like, Thermal overload shutdown protection, Short
circuit current limiting, Output transistor SOA (service oriented architecture) protection and
RoHS (Restriction of the Use of Certain Hazardous Substances) Compliance.
2. LM 7805 IC
Fig.3.16LM7805IC
Table No. 3.2 LM7805 Pin Description
In our design LM 7805 IC is used in power supply for microcontroller unit, reset circuit and
LM 35 analog temperature sensor etc. This is most common voltage regulator that is still used
in embedded designs. With proper heat sink these LM 78xx types can handle even more than
1A current. They also have thermal overload protection, short circuit protection.
3. LM 7806 IC
Fig.3.17 LM 7806 IC
Table No. 3.3 LM7806 Pin Description
In our design LM 7806 IC have been used for regulated power supply in relay of 6V.
4. LM 7812 IC
Fig.3.18 LM7812 IC
In our design LM7812 IC have been used for regulated power supply in ULN2003A IC and
Relay of 12V etc.
3.1.5 LED
A light–emitting diode (LED) is semiconductor devices that produce visible light
when an electrical current passed through it. Moreover, a light-emitting diode
(LED) is a two-lead semiconductor light source. It is a p–n junction diode, which
emits light when activated. When a suitable voltage is applied to the leads, electrons
are able to recombine with electron holes within the device, releasing energy in the
form of photons. This effect is called electroluminescence, and the color of the light
(corresponding to the energy of the photon) is determined by the energy band gap
of the semiconductor.
An LED is often small in area (less than 1 mm2) and integrated optical
components may be used to shape its radiation pattern. The light is not particularly
bright, but in most LEDs it is monochromatic, occurring at a single wavelength.
The output from an LED can range from red (at a wavelength of approximately 700
nanometers) to blue violet (about 400 nanometers). Some LEDs emit infrared (IR)
energy (830 nm or longer); such a device is known as an infrared-emitting diode
(IRED).
The structure of the LED is completely different than that of the light bulb.
Amazingly, the LED has a simple and strong structure. The beauty of the structure
is that it is designed to be versatile, allowing for assembly into many different
shapes. The light-emitting semiconductor material is what determines the LEDs
color. LEDs have many advantages over incandescent light sources including lower
energy consumption, longer lifetime, improved physical robustness, smaller size,
and faster switching. Light-emitting diodes are now used in applications as diverse
as aviation lighting, automotive headlamps, advertising, general lighting, traffic
signals, and camera flashes and lighted wallpaper.
In our design LEDs are used in circuit for different purposes like mode of operation,
and status of operation and notification and signaling purposes.
Benefits of LEDs and IREDs, compared with incandescent and fluorescent
illuminating devices, include:
Low power requirement: Most types can be operated with battery power
supplies.
High efficiency: Most of the power supplied to an LED or IRED is converted
into radiation in the desired form, with minimal heat production.
Long life: When properly installed, an LED or IRED can function for decades.
Typical applications include:
Indicator lights: These can be two-state (i.e., on/off), bar-graph, or alphabetic-
numeric readouts.
LCD panel backlighting: Specialized white LEDs are used in flat-panel
computer displays.
Fiber optic data transmission: Ease of modulation allows wide
communications bandwidth with minimal noise, resulting in high speed and
accuracy.
Remote control: Most home-entertainment "remotes" use IREDs to transmit
data to the main unit.
Optoisolator: Stages in an electronic system can be connected together without
unwanted interaction.
Symbol Images
Carbon-composition and carbon film resistors are too small to have the resistance value
printed on their housings. Therefore, bands of color are used to represent the resistance value.
The first and second band represent the numerical value of the resistor, and the color of
the third band specify the power-of-ten multiplier. The color bands are always read from left
to right starting with the side that has a band closer to the edge.
For carbon-composition and carbon film resistors, the common tolerances are 5%, 10%,
and 20%, indicating that the actual value of the resistor can vary from the nominal value by
±5%, ±10% and ±20%. If the band is gold, it specifies a 5% tolerance; silver specifies a 10%
tolerance; if no band is present, the tolerance is 20%.
Table No. 3.5 Resistance color coding
There are different types of resistors. Mainly resistors classified into two broad group i.e.
Linear and Non-linear resistors. Linear are also classified into two groups i.e. Fixed type and
variable type resistors. Carbon composition, thin film, thick film and wire wound are of fixed
type resistors whereas potentiometer, trimmer and wire wound are of variable type resistors.
However thermistor, LDR (Light Dependent Resistor), photo resistor and Varistor are of Non-
linear resistors.
Another special type of resistor is SIP resistor network. SIP means 'single in-line package',
so it is a pack of several resistors, often with one end common. The connections are a series of
pins like one side of a DIP (dual in-line package) as often seen in integrated circuits. The
resistors may be used for a variety of purposes, like bus terminators, resistor ladder networks,
pull-ups or pull-downs, but usually in microprocessor boards.
A potentiometer is an adjustable resistor which consists of a wiper that slides across a resistive
strip to deliver an increase or decrease in resistance. The level of resistance will determine
output of current to the circuit. A potentiometer, informally a pot, is a three-terminal resistor
with a sliding or rotating contact that forms an adjustable voltage divider. If only two terminals
are used, one end and the wiper, it acts as a variable resistor or rheostat.
The measuring instrument called a potentiometer is essentially a voltage divider used for
measuring electric potential (voltage); the component is an implementation of the same
principle, hence its name.
Potentiometers are commonly used to control electrical devices such as volume controls on
audio equipment. Potentiometers operated by a mechanism can be used as position transducers,
for example, in a joystick. Potentiometers are rarely used to directly control significant power
(more than a watt), since the power dissipated in the potentiometer would be comparable to the
power in the controlled load.
In our design potentiometer is used in the interfacing of LCD with the microcontroller.
Fig.3.24 Variable resistor or POT symbol
Fig.3.25 Variable resistor or POT pin mapping
The HT 12E Encoder ICs are series of CMOS LSIs for Remote Control system
applications. They are capable of Encoding 12 bit of information which consists
of N address bits and 12-N data bits. Each address/data input is externally trinary
programmable if bonded out.
HT12E is an encoder integrated circuit of 212 series of encoders. They are
paired with 212 series of decoders for use in remote control system applications.
It is mainly used in interfacing RF and infrared circuits. The chosen pair of
encoder/decoder should have same number of addresses and data format.
Simply put, HT12E converts the parallel inputs into serial output. It encodes
the 12 bit parallel data into serial for transmission through an RF transmitter.
These 12 bits are divided into 8 address bits and 4 data bits.
HT12E has a transmission enable pin which is active low. When a trigger
signal is received on TE pin, the programmed addresses/data are transmitted
together with the header bits via an RF or an infrared transmission medium.
HT12E begins a 4-word transmission cycle upon receipt of a transmission
enable. This cycle is repeated as long as TE is kept low. As soon as TE returns
to high, the encoder output completes its final cycle and then stops.
18 PIN DIP
Operating Voltage : 2.4V ~ 12V
Low Power and High Noise Immunity CMOS Technology
Low Standby Current and Minimum Transmission Word
Built-in Oscillator needs only 5% Resistor
Easy Interface with and RF or an Infrared transmission medium
Minimal External Components
In our design HM-T REV: 3.0 have been used as RF Transmitter Module.
HM-T series FSK receiver module is specially designed for replacing those
applications that used ASK technology module already. It used together with
HM-R series FSK transmission module. Due to the benefits from FSK
technology, the module is robust to interference, and longer working distance
can be achieved. It modulates the frequency ranging from 315, 433, 858, and
915 MHz.
1 2 3 2 1
3
Features:
Typical Application:
3.2.4 Antenna
RF transmitter module i.e. HM-T has built in integrated antenna and has
connection for antenna if necessary and is optional in many cases. It is mainly
used increase the range of wireless connectivity.
3.3Master Board
The Master Board in our design is the heart circuit, it is the main board. It has various
interfacings of RF module and Wi-Fi module and consists of microcontroller unit,
display unit and sensor units.
3.3.1 ATmega32 Microcontroller
3.3.1.1 Description
The ATmega32 is a low-power CMOS 8-bit microcontroller based on the AVR
enhanced RISC architecture. By executing powerful instructions in a single clock
cycle, the ATmega32 achieves throughputs approaching 1 MIPS per MHz allowing
the system design to optimize power consumption versus processing speed. The
high-performance, low-power Atmel 8-bit AVR RISC-based microcontroller
combines 32KB of programmable flash memory, 2KB SRAM, 1KB EEPROM, an
8-channel 10-bit A/D converter, and a JTAG interface for on-chip debugging. The
device supports throughput of 16 MIPS at 16 MHz and operates between 4.5-5.5
volts.
By executing instructions in a single clock cycle, the device achieves throughputs
approaching 1 MIPS per MHz, balancing power consumption and processing speed.
Features
High-performance, Low-power AVR 8-bit Microcontroller
Advanced RISC Architecture
- 131 Powerful Instructions – Most Single-clock Cycle Execution
- 32 × 8 General Purpose Working Registers
- Fully Static Operation
- Up to 16 MIPS Throughput at 16MHz
- On-chip 2-cycle Multiplier
High Endurance Non-volatile Memory segments
- 32Kbytes of In-System Self-programmable Flash program memory
- 1024Bytes EEPROM
- 2Kbytes Internal SRAM
- Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
- Data retention: 20 years at 85°C/100 years at 25°C
- Optional Boot Code Section with Independent Lock BitsIn-System
Programming by On-chip Boot Program True Read-While-Write Operation
- Programming Lock for Software Security
JTAG (IEEE std. 1149.1 Compliant) Interface
- Boundary-scan Capabilities According to the JTAG Standard
- Extensive On-chip Debug Support
- Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG
Interface
Peripheral Features
- Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
- One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and
Capture Mode
- Real Time Counter with Separate Oscillator
- Four PWM Channels
- 8-channel, 10-bit ADC
8Single-ended Channels
7Differential Channels in TQFP Package Only
2 Channels with Programmable Gain at 1x, 10x, or 200x
- Byte-oriented Two-wire Serial Interface
- Programmable Serial USART
- Master/Slave SPI Serial Interface
- Programmable Watchdog Timer with Separate On-chip Oscillator
- On-chip Analog Comparator
Special Microcontroller Features
- Power-on Reset and Programmable Brown-out Detection
- Internal Calibrated RC Oscillator
- External and Internal Interrupt Sources
- Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down,
Standby and Extended Standby I/O and Packages
- 32 Programmable I/O Lines
- 40-pin PDIP, 44-lead TQFP, and 44-pad QFN/MLF
Operating Voltages
- 4.5V - 5.5V for ATmega32
Speed Grades
- 0 - 16MHz for ATmega32
Power Consumption at 1MHz, 3V, 25°C
- Active: 1.1mA
- Idle Mode: 0.35mA
- Power-down Mode: < 1μA
3.3.1.2 PIN CONFIGURATION
VCC
Digital supply voltage, +5V
GND
Ground.
Port A (PA7…PA0)
Port A serves as the analog inputs to the A/D Converter. Port A also
serves as an 8-bit bi-directional I/O port, if the A/D Converter is not used. Port
pins can provide internal pull-up resistors (selected for each bit). The Port A
output buffers have symmetrical drive characteristics with both high sink and
source capability. When pins PA0 to PA7 are used as inputs and are externally
pulled low, they will source current if the internal pull-up resistors are activated.
The Port A pins are tri-stated when a reset condition becomes active, even if the
clock is not running.
Port B (PB7...PB0)
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). The Port B output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port B pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port B pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
Port C (PC7...PC0)
Port C is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). The Port C output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port C pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port C pins are tri-stated when a reset condition becomes active,
even if the clock is not running. If the JTAG interface is enabled, the pull-up
resistors on pins PC5 (TDI), PC3 (TMS) and PC2 (TCK) will be activated even
if a reset occurs. The TD0 pin is tri-stated unless TAP states that shift out data
are entered. Port C also serves the functions of the JTAG interfaces.
Port D (PD7…PD0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). The Port D output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port D pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port D pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
RESET
Reset Input. A low level on this pin for longer than the minimum pulse
length will generate a reset, even if the clock is not running. Shorter pulses are
not guaranteed to generate a reset.
XTAL1
Input to the inverting Oscillator amplifier and input to the internal clock
operating circuit.
XTAL2
AVCC
AVCC is the supply voltage pin for Port A and the A/D Converter. It
should be externally connected to VCC, even if the ADC is not used. If the ADC
is used, it should be connected to VCC through a low-pass filter.
AREF
1. Power-on reset – which resets the ATmega32 when power is turned ON.
3. Manual reset – in which a reset happens only when a push button is pressed manually.
An External Reset is generated by a low level on the RESET pin. Reset pulses longer than the
minimum pulse width will generate a reset, even if the clock is not running.
Shorter pulses are not guaranteed to generate a reset. When the applied signal reaches the
Reset Threshold Voltage – VRST – on its positive edge, the delay counter starts the MCU after
the Time-out period TOUT has expired.
ATmega ATmega
10K 10K
ATmega32 MCU
In our design for indoor mode it can be operated by RF remote or LAN network. It is
composed of RF remote controller and RF receiver module with Decoder and microcontroller
unit for its operation.
In our design HM-R REV: 3.0 have been used as RF Receiver Module.
HM-R series receiver module is specially designed for replacing those applications that used
ASK technology module already. It used together with HM-T/HM-TP series
FSK transmission module. Due to the benefits form FSK technology, the module is robust to
interference, and longer working range can be achieved. It demodulates the frequency ranging
from 315, 433, 858, and 915 MHz.
Fig.
3.3.2.2Pin Description
FEATURES
1. Highly integrated, small size
2. High sensitivity, low power consumption
3. FSK technology, suitable for replacing ASK modules
4. Less interference, longer working range
5. Can be used to replace ASK module pair W/O software modification
6. No manual tuning required during production
Typical Application:
3.3.2.2 RF Decoder
Overview
HT12D is a decoder integrated circuit that belongs to 212 series of decoders. This series
of decoders are mainly used for remote control system applications, like burglar alarm, car door
controller, security system etc. It is mainly provided to interface RF and infrared circuits. They
are paired with 212 series of encoders. The chosen pair of encoder/decoder should have same
number of addresses and data format.
General Description:
The 212 decoders are a series of CMOS LSIs for remote control system applications. They are
paired with Holteks 212 series of encoders (refer to the encoder/decoder cross reference table).
For proper operation, a pair of encoder/decoder with the same number of addresses and data
format should be chosen. The decoders receive serial addresses and data from a programmed
212 series of encoders that are transmitted by a carrier using an RF or an IR transmission
medium. They compare the serial input data three times continuously with their local addresses.
If no error or unmatched codes are found, the input data codes are
decoded and then transferred to the output pins. The VT pin also goes high to indicate a valid
transmission. The 212 series of decoders are capable of decoding information that consist of N
bits of address and 12_Nbits of data. Of this series, the HT12D is arranged to provide
8 address bits and 4 data bits, and HT12F is used to decode 12 bits of address information.
Features:
Operating voltage: 2.4V~12V
Low power and high noise immunity CMOS technology
Low standby current
Capable of decoding 12 bits of information
Binary address setting
Received codes are checked 3 times
Address/Data number combination
HT12D: 8 address bits and 4 data bits
Built-in oscillator needs only 5% resistor
Valid transmission indicator
Easy interface with an RF or an infrared transmission medium
Minimal external components
Pair with Holteks 212 series of encoders
18-pin DIP, 20-pin SOP package
Applications:
Burglar alarm system
Smoke and fire alarm system
Garage door controllers
Car door controllers
Car alarm system
Security system
Cordless telephones
Other remote control systems
3.3.2.3 Antenna
The antenna in our design for both transmitter and receiver has same use. RF
receiver module i.e. HM-R has built in integrated antenna and has connection for
antenna if necessary and is optional in many cases. It is mainly used to increase
the range of wireless connectivity.
In our design for outdoor operation which is main theme of our design and project too. The
accessing of various hardware devices from remote with internet is done in this mode. The
various interfacings are required to carried out this, which is Wi-Fi module interfacing with
MCU via MAX-232 IC and other internet connectivity is done through router by various
computer, network and internet protocols.
Description:
The ESP8266 Wi-Fi Module is a self-contained SOC with integrated TCP/IP protocol stack
that can give any microcontroller access to your Wi-Fi network. The ESP8266 is capable of
either hosting an application or offloading all Wi-Fi networking functions from another
application processor. Each ESP8266 module comes pre-programmed with an AT command
set firmware, and get about as much Wi-Fi-ability as a Wi-Fi Shield offers (and that’s just out
of the box)! The ESP8266 module is an extremely cost effective board with a huge, and ever
growing, community.
This module has a powerful enough on-board processing and storage capability that allows it
to be integrated with the sensors and other application specific devices through its GPIOs with
minimal development up-front and minimal loading during runtime. Its high degree of on-chip
integration allows for minimal external circuitry, including the front-end module, is designed
to occupy minimal PCB area. The ESP8266 supports APSD for VoIP applications and
Bluetooth co-existance interfaces, it contains a self-calibrated RF allowing it to work under all
operating conditions, and requires no external RF parts.
There is an almost limitless fountain of information available for the ESP8266, all of which
has been provided by amazing community support.
Features:
802.11 b/g/n
Integrated low power 32-bit MCU
Integrated 10-bit ADC
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching network
Integrated PLL, regulators, and power management units
Supports antenna diversity
Wi-Fi 2.4 GHz, support WPA/WPA2
Support STA/AP/STA+AP operation modes
Support Smart Link Function for both Android and IOS devices
SDIO 2.0, (H) SPI, UART, I2C, I2S, IR Remote Control, PWM, GPIO
STBC, 1x1 MIMO, 2x1 MIMO
A-MPDU & A-MSDU aggregation & 0.4s guard interval
Deep sleep power <10uA, Power down leakage current < 5uA
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)
+20 dBm output power in 802.11b mode
Operating temperature range -40C ~ 125C
FCC, CE, TELEC, WiFi Alliance, and SRRC certified
3.3.3.2 MAX232
The MAX232 IC is used to convert the TTL/CMOS logic levels to RS232 logic levels
during serial communication of microcontrollers with PC. The controller operates at TTL logic
level (0-5V) whereas the serial communication in PC works on RS232 standards (-25 V to +
25V). This makes it difficult to establish a direct link between them to communicate with each
other.
The transmitters take input from controller’s serial transmission pin and send the output to
RS232’s receiver. The receivers, on the other hand, take input from transmission pin of RS232
serial port and give serial output to microcontroller’s receiver pin. MAX232 needs four external
capacitors whose value ranges from 1µF to 22µF.
Fig. 3. MAX232 Pin out
3.3.3.2.1 Pin Diagram
There are different types of oscillator electronic circuits such as Linear oscillators – Hartley
oscillator, Phase-shift oscillator, Armstrong oscillator, Clapp oscillator, Colpitts oscillator, and
so on, Relaxation oscillators – Royer oscillator, Ring oscillator, Multivibrator, and so on, and
Voltage Controlled Oscillator (VCO). In this article, let us discuss in detail about Crystal
oscillator like what is crystal oscillator, crystal oscillator circuit, working, and use of crystal
oscillator in electronic circuits.
A crystal oscillator is an electronic oscillator circuit that uses the mechanical resonance of a
vibrating crystal of piezoelectric material to create an electrical signal with a precise frequency.
This frequency is commonly used to keep track of time, as in quartz wristwatches, to provide
a stable clock signal for digital integrated circuits, and to stabilize frequencies for radio
transmitters and receivers. The most common type of piezoelectric resonator used is the quartz
crystal, so oscillator circuits incorporating them became known as crystal oscillators, but other
piezoelectric materials including polycrystalline ceramics are used in similar circuits.
Quartz crystals are manufactured for frequencies from a few tens of kilohertz to hundreds of
megahertz. More than two billion crystals are manufactured annually. Most are used for
consumer devices such as wristwatches, clocks, radios, computers, and cellphones. Quartz
crystals are also found inside test and measurement equipment, such as counters, signal
generators, and oscilloscopes.
Symbol Image
A transistor is a device that regulates current or voltage flow and acts as a switch or gate
for electronic signals. Transistors consist of three layers of a semiconductor material, each
capable of carrying a current.
The transistor was invented by three scientists at the Bell Laboratories in 1947, and
it rapidly replaced the vacuum tube as an electronic signal regulator. A transistor regulates
current or voltage flow and acts as a switch or gate for electronic signals. A transistor consists
of three layers of a semiconductor material, each capable of carrying a current. A
semiconductor is a material such as germanium and silicon that conducts electricity in a "semi-
enthusiastic" way. It's somewhere between a real conductor such as copper and an insulator
(like the plastic wrapped around wires).
The most common type of transistor is called bipolar and these are divided into NPN and
PNP types. Their construction-material is most commonly silicon (their marking has the letter
B) or germanium (their marking has the letter A).
Image
Symbol
3.3.6 LCD
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide
range of applications. A 16x2 LCD display is very basic module and is very commonly used
in various devices and circuits. These modules are preferred over seven segments and other
multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have no
limitation of displaying special & even custom characters (unlike in seven segments),
animations and so on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD
each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command
and Data.
The command register stores the command instructions given to the LCD. A command is an
instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting
the cursor position, controlling display etc. The data register stores the data to be displayed on
the LCD. The data is the ASCII value of the character to be displayed on the LCD. Click to
learn more about internal structure of a LCD.
Pin
Function Name
No
1 Ground (0V) VSS
2 Supply voltage; 5V (4.7V – 5.3V) VDD
3 Contrast adjustment; through a variable resistor VEE
4 Selects command register when low; and data register when Register
high Select(RS)
5 Low to write to the register; High to read from the register Read/write(R/W)
6 Sends data to data pins when a high to low pulse is given Enable(EN)
7 D0
8 D1
9 D2
10 D3
8-bit data pins
11 D4
12 D5
13 D6
14 D7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
The voltage VDD and VSS are provided by +5V and ground respectively while VEE is used
for controlling LCD contrast.
RS (register select)
There are two important registers inside the LCD. The RS pin is used for their selection
as follows. If RS=0, the instruction command code register is selected, then allowing to user to
send a command such as clear display, cursor at home etc. if RS=1, the data register is selected,
allowing the user to send data to be displayed on the LCD.
R/W (read/write)
The R/W (read/write) input allowing the user to write information from it.
EN (enable)
The enable pin is used by the LCD to latch information presented to its data pins. When
data is supplied to data pins, a high power, a high-to –low pulse must be applied to this pin in
order, for the LCD to latch in the data presented at the data pins.
The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents
of the LCD internal registers. To displays the letters and numbers, we send ASCII codes for
the letters A-Z, a-z, and numbers 0-9 to these pins while making RS = 1. There are also
command codes that can be sent to clear the display or force the cursor to the home position or
blink the cursor. We also use RS = 0 to check the busy flag bit to see if the LCD is ready to
receive the information. The busy flag is D7 and can be read when R/W = 1 and RS = 0, as
follows:
If R/W =1 and RS =0, when D7 =1(busy flag =1), the LCD is busy taking care of internal
operations and will not accept any information. When D7 =0, the LCD is ready to receive new
information.
LCD accepts two types of signals, one is data, and another is control. These signals are
recognized by the LCD module from status of the RS pin. Now data can be read also from the
LCD display, by pulling the R/W pin high. As soon as the E pin is pulsed, LCD display reads
data at the falling edge of the pulse and executes it, same for the case of transmission.
LCD display takes a time of 39-43 µS to place a character or execute a command. Except for
clearing display and to seek cursor to home position it takes 1.53ms to 1.64ms. Any attempt to
send any data before this interval may lead to failure to read data or execution of the current
data in some devices. Some devices compensate the speed by storing the incoming data to some
temporary registers.
LCD displays have two RAMs, naming DDRAM and CGRAM. DDRAM registers in which
position which character in the ASCII chart would be displayed. Each byte of DDRAM
represents each unique position on the LCD display. The LCD controller reads the information
from the DDRAM and displays it on the LCD screen. CGRAM allows user to define their
custom characters. For that purpose, address space for first 16 ASCII characters are reserved
for users. After CGRAM has been setup to display characters, user can easily display their
custom characters on the LCD screen.
Fig.3. Block diagram of LCD display
15 Set DDRAM address or cursor position on display 0x80 + address* 128 + address*
There is two modes of data transfer are supported by LCD displays. One is 4 bit mode,
another is 8 bit mode. To transfer data in 8 bit mode, first put your data in the 8 bit bus, then
put command bus and then pulse the enable signal.
To send data in 4 bit mode; first put upper 4 bit data bus connected to 4MSB pins of LCD
displays, then put control signals in the control bus, then pulse the E pin once. Next put the
lower 4 bit in the data bus and pulse the E pin again. Here is a flowchart simply describing it.
Character to send
Character to send
APut Upper 4 bit of
Data in 4 bit Data Bus
APut Data in 8 bit Data
Bus
APut Command in 2 bit
Command bus
Before displaying characters on the LCD display, it must be configured first. To configure an
LCD display, four command words must be sent to LCD in either 4 bit mode, or in 8 bit mode.
The commands are:
General Description
The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is
linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage
over linear temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a
large constant voltage from its output to obtain convenient Centigrade scaling. The LM35 does
not require any external calibration or trimming to provide typical accuracies of ±1⁄4°C
at room temperature and ±3⁄4°C over a full −55 to +150°C temperature range. Low cost is
assured by trimming and calibration at the wafer level. The LM35’s low output impedance,
linear output, and precise inherent calibration make interfacing to readout or control circuitry
especially easy. It can be used with single power supplies, or with plus and minus supplies.
LM35 is a precision IC temperature sensor with its output proportional to the temperature (in
oC). The sensor circuitry is sealed and therefore it is not subjected to oxidation and other
processes. With LM35, temperature can be measured more accurately than with a thermistor. It
also possess low self-heating and does not cause more than 0.1 oC temperature rise in still air.
The operating temperature range is from -55°C to 150°C. The output voltage varies by 10mV
in response to every oC rise/fall in ambient temperature, i.e., its scale factor is 0.01V/ oC.
Features
Calibrated directly in ° Celsius (Centigrade)
Linear + 10.0 mV/°C scale factor
0.5°C accuracy guarantee able (at +25°C)
Rated for full −55° to +150°C range
Suitable for remote applications
Low cost due to wafer-level trimming
Operates from 4 to 30 volts
Less than 60 μA current drain
Low self-heating, 0.08°C in still air
Nonlinearity only ±1⁄4°C typical
Low impedance output, 0.1Ωfor 1 mA load
Symbol Image
3.3.9 Relay
A simple electromagnetic relay consists of a coil of wire wrapped around a soft iron core
to form an electromagnet. When an electric current is passed through the coil it generates a
magnetic field that activates the armature, and the consequent movement of the movable
contact(s) either makes or breaks (depending upon construction) a connection with a fixed
contact. If the set of contacts was closed when the relay was de-energized, then the movement
opens the contacts and breaks the connection, and vice versa if the contacts were open.
The electromagnetic relay consists of a multi-turn coil, wound on an iron core, to form an
electromagnet. When the coil is energized, by passing current through it, the core becomes
temporarily magnetized. The magnetized core attracts the iron armature. The armature is
pivoted which causes it to operate one or more sets of contacts. When the coil is de-energized
the armature and contacts can switch high powers such as the mains supply. The relay can also
be situated remotely from the control source. Relays can damage other components in the
circuit. To prevent this diode is connected across the coil. The relay’s switch connections are
usually labeled COM (POLE), NC and NO.
There are 5 pins in a relay. Two pins A and B are two ends of a coil that are kept inside the
relay. The coil is wound on a small rod that gets magnetized whenever current passes through
it.COM/POLE is always connected to NC (Normally connected) pin. As current is passed
through the coil A, B, the pole gets connected to NO (Normally open) pin of the relay.
3.3.10 ULN2003A
The ULx200xA devices are high-voltage, high-current Darlington transistor arrays. Each
consists of seven .NPN Darlington pairs that feature high-voltage outputs with common-
cathode clamp diodes for Simplified Block Diagram switching inductive loads. The collector-
current rating of a single Darlington pair is 500 mA. The Darlington pairs can be paralleled for
higher current capability. Applications include relay drivers, hammer drivers, lamp drivers,
display drivers (LED and gas discharge), line drivers, and logic buffers. For 100-V (otherwise
interchangeable) versions of the ULx2003A devices. The ULN2002A device is designed
specifically for use with 14-V to 25-V PMOS devices. Each input of this device has a Zener
diode and resistor in series to control the input current to a safe limit. The ULx2003A devices
have a 2.7-kΩ series base resistor for each Darlington pair for operation directly with
Image
Symbol
# Features
# Applications
Relay Drivers PART NUMBER PACKAGE BODY SIZE (NOM)
Stepper and DC Brushed Motor Drivers ULx200xD SOIC (16) 9.90 mm × 3.91 mm
Lamp Drivers ULx200xN PDIP (16) 19.30 mm × 6.35 mm
Display Drivers (LED and Gas Discharge) ULN200xNS SOP (16) 10.30 mm × 5.30
mm
Line Drivers ULN200xPW TSSOP (16) 5.00 mm × 4.40 mm
Logic Buffers
3.3.11 Router
A router is a networking device that forwards data from one network to another. This include
residential routers that also use Network Address Translation. A router is a networking device
that forwards data packets between computer networks. Routers perform the "traffic directing"
functions on the Internet. A data packet is typically forwarded from one router to another
through the networks that constitute the internetwork until it reaches its destination node.
A router is connected to two or more data lines from different networks (as opposed to a
network switch, which connects data lines from one single network). When a data packet comes
in on one of the lines, the router reads the address information in the packet to determine its
ultimate destination. Then, using information in its routing table or routing policy, it directs the
packet to the next network on its journey. This creates an overlay internetwork.
Fig. 3. Router
SOFTWARE DESCRIPTION
4.2 Proteus
Proteus ISIS is the best simulation software in the world for various designs with electronics
& microcontroller. It is mainly popular because of availability of almost all microcontrollers
in it. So it is a handy tool to test programs and embedded designs for electronics hobbyist &
expert. You can simulate your programming of microcontroller in Proteus 8 Simulation
Software. After simulating your circuit using Proteus Software you can directly make PCB
design with it so it could be an all in one package for students and hobbyists. So I think now
you have a little bit idea about what is proteus software.
Proteus is software for microprocessor simulation, schematic capture, and printed circuit board
(PCB) design. It is developed by Lab center Electronics.
Proteus PCB design combines the ISIS schematic capture and ARES PCB layout programs to
provide a powerful, integrated and easy to use suite of tools professional PCB design. All
Proteus PCB design products include an integrated shape based auto router and a basic SPICE
simulation capability as standard. More advanced routing modes are included in Proteus PCB
Design Level 2 and higher whilst simulation capabilities can be enhanced by purchasing the
advanced simulation option and/or micro-controller simulation capabilities.
It is fast, accurate, and flexible. It is one to two orders of magnitude faster than comparable
simulators. Proteus provides a modular structure that simplifies customization and independent
replacement of parts of architecture. There are typically multiple implementation of each
module that provide different combinations of accuracy and performance. Finally, Proteus
provides repeatability, nonintrusive monitoring and debugging, and integrated graphical
output.
System Components
Features
Works under multiple platforms. Linux, Mac OS X and Windows are tested.
No special controllers or smd components are needed.
Programming speed is up to 5kBytes/sec.
SCK option to support targets with low clock speed (< 1,5MHz).
Planned: serial interface to target (e.g. for debugging).
Sinaprog is a Hex downloader application with AVR Dude and Fuse Bit Calculator. This is
used to download code/program and to set fuse bits of all AVR based microcontrollers.
Fig4. Sinaprog hex downloader
CHAPTER 5
MOUNTING COMPONENTS
The four main factors to consider when choosing a soldering iron are:
1)wattage
2)type of the soldering iron
3)temperature control
4) tip size and shape
A soldering iron is a hand tool used in soldering. It supplies heat to melt solder
so that it can flow into the joint between two work pieces. A soldering iron is
composed of a heated metal tip and an insulated handle. Heating is often achieved
electrically, by passing an electric current (supplied through an electrical cord or
battery cables) through a resistive heating element. Cordless irons can be heated by
combustion of gas stored in a small tank, often using a catalytic heater rather than
a flame. Simple irons less commonly used than in the past were simply a large
copper bit on a handle, heated in a flame. Soldering irons are most often used for
installation, repairs, and limited production work in electronics assembly.
Solder wire is a fusible metal alloy used to join together metal work pieces and having
a melting point below that of the work piece(s). For electrical and electronics work solder wire
is available in a range of thickness for hand-soldering, and with cores containing flux. It is also
available as paste or as a preformed foil shaped to match the work piece, more suitable for
mechanized mass-production. Alloys of lead and tin were universally used in the past, and are
still available; they are particularly convenient for hand-soldering. Lead-free solder, somewhat
less convenient for hand- soldering, is often to avoid the environmental effect of lead.
Fig.5. Soldering Wire
This is simply the reverse process of soldering. In electronics, disordering is the removal of
solder and components from a circuit board for troubleshooting, repair, replacement, and
salvage. Specialized tools, materials, and techniques have been devised to aid in the disordering
process. We have used a soldering wick; the end of a length of braid is placed over the soldered
connections of a component being removed. The connections are heated with a soldering iron
until the solder melts and is wicked into the braid by capillary action. The braid is removed
while the solder is still molten, it’s used section cut off and discarded when cool. Short length
of cut braid will prevent heat being carried away by the braid instead of heating the joint.
5.1.3 Fluxes
A flux (derived from Latin fluxes meaning “flow”) is a chemical cleaning agent, flowing
agent, or purifying agent. Fluxes may have more than one function at a time. In high-
temperature metal joining processes (welding, brazing and soldering), the primary purpose of
flux is to prevent oxidation of the base and filler materials. Tin-lead solder (e.g.) attaches very
well to copper, but poorly to the various oxides of copper, which form quickly at soldering
temperatures. Flux is a substance which is nearly inert at room temperature, but which becomes
strongly reducing at elevated temperatures, preventing the formation of metal oxides.
Additionally, flux allows solder to flow easily on the working piece rather than forming beads
as it would otherwise.
The role of a flux in joining processes is typically dual: dissolving of the oxides on the metal
surface, which facilitates wetting by molten metal, and acting as an oxygen barrier by coating
the hot surface, preventing its oxidation. In some applications molten flux also serves as a heat
transfer medium, facilitating heating of the joint by the soldering tool or molten solder.
5.2Side-Cutting Plier
A side cutting plier will come in handy as one of the electronic tools when one need to trim off
excess components leads on the printed circuit board. It can also be used to cut shorter length
before being used. Diagonal pliers (or side cutters or wire cutters or diagonal cutting pliers or
diagonal cutters) are pliers intended for the cutting of wire (they are generally not used to grab
or turn anything). The plane defined by the cutting edges of the jaws intersects the joint rivet
at an angle or "on a diagonal", hence the name. Diagonal pliers are useful for cutting copper,
brass, iron, aluminum and steel wire. Lower quality versions are generally not suitable for
cutting tempered steel, such as piano wire, as the jaws are not hard enough. Attempting to cut
such material will usually cause indentations to be made in the jaws, or a piece to break out of
one or both jaws, thus ruining the tool. However higher quality side cutters can cut hardened
steel,
CHAPTER 6
6.5 Conclusion
The growing technology and the convergence of technology with the environment provide
the real platform to achieve new thing in the world. The idea of IoT is not new at all but it
is growing very fast in the world. Many country in the world able to achieve success at top
level in the field of IoT. This project is able to prototype the ground idea of IoT in context
to the Nepal too, which is very back in the field of IoT. Impart from this ever growing
technology and modernization, IoT provide a better place in the world not for the purpose
of convenience and efficient but also for very much security purpose too. Often in the
production, manufacturing industries were banned the camera inside factory or plant site.
Even their staff may leak the privacy or some hidden secret. But IoT operate-able
device/machine has very much security for its operation and its mechanism of operation so
it is secured far away we think.
Ever-growing technology and it has lots of demand in future too. It provides easy living
and brought the world in the room and at a place when we are.
Hence, we can conclude that it will not make efficient and convenient living but provide
the modernization in all the field where it is implemented successfully.