Documente Academic
Documente Profesional
Documente Cultură
A PROJECT REPORT
Submitted by
Of
BACHELOR OF TECHNOLOGY
IN
BANGALORE 560035
MAY-2017
AMRITA VISHWA VIDYAPEETHAM
AMRITA SCHOOL OF ENGINEERING, BANGALORE, 560035
BONAFIDE CERTIFICATE
Submitted by
BL.EN.U4ECE13012 A.SHIVA KUMAR
BL.EN.U4ECE13135 B.CHAKRADHAR REDDY
BL.EN.U4ECE13141 C.SANDEEP
In partial fulfilment of the requirements for the award of the degree of
BACHELOR OF TECHNOLOGY in ELECTRONICS AND COMMUNICATION
ENGINEERING is a bonafide record of the work carried out under my guidance
and supervision at Amrita School of engineering, Bangalore during the academic
year 2016-2017.
Dr.Shikha Tripathi
Chairperson
Department of ECE
This project report was evaluated by us on………………………............
EXAMINER 1 EXAMINER 2
ACKNOWLEDGEMENT
For successful and timely completion of the project we owe a great many thanks to
AMMA and many people who helped and supported us during this project.
We would like to express our sincere gratitude towards our Associate Dean, Dr.
Rakesh S.G. for giving opportunity to manifest our ideas into real-time project.
We would also like to express our sincere gratitude towards all the teachers of
Electronics and Communication Department who have always been a great source
of help, support and strength throughout the project. Last but not the least we
express our sincere thanks to all our friends and family who have patiently extended
all sorts of help for accomplishing this undertaking.
1 INTRODUCTION………………………………………………...1
2 LITERATURE………………………………………………….....2
3 HARDWARE DESCRIPTION…………………………………...4
3.1 MICROCONTROLLER………………………………………………….4
3.1.3 BUS…………………………………………………………………..7
3.1.7 WATCHDOG………………………………………………………..8
3.1.9 RESET……………………………………………………………...11
3.1.13 ACCUMULATOR………………………………………………...12
3.1.14 B REGISTER……………………………………………………….13
3.1.19 INTERRUPTS………………………………………………………13
3.1.20 TIMERS…………………………………………………………….14
3.3.1 FEATURES………………………………………………………….15
3.3.2 ADVANTAGES……………………………………………………..16
3.3.3 APPLICATIONS…………………………………………………….16
3.4.2 FEATURES………………………………………………………….18
3.4.3 ADVANTAGES……………………………………………………..19
3.4.4 APPLICATIONS…………………………………………………….19
3.5 RECTIFIERS……………………………………………………………...19
3.7.1 FEATURES………………………………………………………….23
3.7.2 ADVANTAGES……………………………………………………..23
3.7.3 APPLICATIONS…………………………………………………….23
5.1 EXPERIMENTATION………………………………………………….32
5.2 RESULT………………………………………………………………….33
CONCLUSION……………………………………………………..34
FUTURE SCOPE……………………………………………..........34
REFERENCES………………………………………………..........35
LIST OF FIGURES
Fig 3.1 8051 Functional Block Diagram………………………………4
Fig 3.2 PIN Diagram of 8051 Microcontroller………………………..9
Fig 3.3 Voice Recognition Module V3…………….………………...14
Fig 3.4 PS4 Development Board Pin Diagram………………………17
Fig 3.5 Zigbee TX & RX…………………………………………….18
Fig 3.6 Rectifier or AC to DC Converter…………………………….20
Fig 3.7 4-Bit Relay Module…………………………………………..22
Fig 3.8 Peltier plate Pin Diagram…………………………………….23
Fig 3.9 Water Block…………………………………….……………25
Fig 3.10 Water Cooling Fan Device…………………………………25
Fig 4.1 Transmission Module Block Diagram………………………26
Fig 4.2 Transmission Module………………………………………..27
Fig 4.3 Receiver Module Block Diagram……………………….……28
Fig 4.4 Receiver Module…………………………………………….29
Fig 4.5 Flow Chart of Implemention of Voice Controlled Peltier Ac..30
LIST OF TABLES
Table 1 Working Table………………………………………….......31
Table 2 Efficiency of Voice Recognition Module V3 Under Ideal
Conditions…………………………………………………………...32
Table 3 Efficiency of Voice Recognition Module V3 Under Noisy
Conditions…………………………………………………………...32
CHAPTER 1
INTRODUCTION
INTRODUCTION MAY-2017
1 INTRODUCTION
In recent years there have been various researches and developmental work in the
area of voice recognition and home automation. This system is designed to combine
both these domains to come up with A Voice Controlled Peltier AC Wireless Home
Automation System. The system mainly consists of three independent stand-alone
embedded systems which can be interfaced with each other through wired or
wireless media. The embedded system comprises of a Voice recognition module,
encoding and transmission module along with decoding and receiving module.
The voice recognition based home automation system uses Voice recognition
module V3 to identify the voice speech or commands of a user. The command
recognized by the device is being checked and verified with that of the stored voice
speech database from the Microcontroller in order to confirm the user identity. Once
the identity is found, the corresponding data is being sent from the microcontroller
to the encoder for specific encoding techniques to be applied. The encoded data is
transferred to the modulator for generation of FSK signal in order to transmit it
through an antenna to a remote or far away receiver. The FSK modulated signal is
received by the receiving unit for demodulation and successive decoding purpose
so as to obtain the desired voice command of the user. The decoded data obtained
from the output of the decoder is again compared with the predefined set of data for
further checking of valid transmission. If matching is established, the corresponding
relay module is either energized or de-energized through a relay driver for turning
ON or OFF the desired electrical appliance in accordance with the voice command.
The relay module is connected to the Peltier Ac module, when the relay module is
turned ON or OFF Peltier ac’s in the Peltier AC Module is turned ON or OFF
increasing or decreasing the Temperature of the surrounding Environment.
2 LITERATURE SURVEY
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with
in system programmable Flash memory which allows the program memory to be
reprogrammed in system or by a conventional nonvolatile memory programmer
with the help of keil µvision software used for compiling the typed embedded c
coding used in our system and speech signal is given to the MCU and it is
transmitted through zigbee transmitter and the information received from zigbee
receiver MCU passes control signal to the relay which is connected to our home
appliances[1]. This is done with the help of three independent stand alone modules
voice recognition module, transmitting module and receiving module. The
microcontroller acts as central processing unit along with other peripheral devices
for encoding, decoding, transmission and reception of the data over a
communication link. The microphone connected to the voice recognition module
serves the purpose of the sensing unit which senses the voice command of the
individual[2]. Recognition of voice is done with the help of Voice Recogination
Module-V3. Recognizer a container where acting voice commands were loaded. It
is core part of voice recognition module[3].The reception module is connected to a
driver based relay system which is connected to several different electrical
appliances which are to be controlled by voice commands through relay,Relay is an
electromagnetic switch which is activated when a current is passed to the relay
circuit, it turns the appliances on/off. The high/low signal is supplied from the ps4
development board microcontroller. When a low voltage is given to the relay of an
appliance it is turned off and when a high voltage is given it is turned on[4].
3 HARDWARE DESCRIPTION
3.1 MICROCONTROLLER
Microcontroller, as the name suggests, are small controllers. They are like single
chip computers that are often embedded into other systems to function as
processing/controlling unit. For example, the remote control you are using probably
has microcontrollers inside that do decoding and other controlling functions. They
are also used in automobiles, washing machines, microwave ovens, toys .etc, where
automation is needed. The key features of microcontrollers include:
(ii) Microcontrollers sometimes are called single-chip computers because they have
on-chip memory and I/O circuitry and other circuitries that enable them to function
as small standalone computers without other supporting circuitry.
(v) Easy to Use Assembly language is often used in microcontrollers and since they
usually follow RISC architecture, the instruction set is small. The development
package of microcontrollers often includes an assembler, a simulator, a programmer
to "burn" the chip and a demonstration board. Some packages include a high level
language compiler such as a C compiler and more sophisticated libraries. Most
microcontrollers will also combine other devices such as:
(vi) A Timer module to allow the microcontroller to perform tasks for certain time
periods.
(vii) A serial I/O port to allow data to flow between the microcontroller and other
devices such as a PC or another microcontroller.
(viii) An ADC to allow the microcontroller to accept analogue input data for
processing
Memory components are exactly like that. For a certain input we get the contents
of a certain addressed memory location and that's all. Two new concepts are brought
to us: addressing and memory location. Memory consists of all memory locations,
and addressing is nothing but selecting one of them. This means that we need to
select the desired memory location on one hand, and on the other hand we need to
wait for the contents of that location. Besides reading from a memory location,
memory must also provide for writing onto it. This is done by supplying an
additional line called control line. We will designate this line as R/W
(read/write).Control line is used in the following way: if r/w=1,reading is done and
if opposite is true then writing is done on the memory location memory is the first
element, and we need a few operations of our microcontroller . The amount of
memory contained within a microcontroller varies between different
microcontrollers. Some may not even have any integrated memory (e.g. Hitachi
6503, now discontinued). However, most modern microcontrollers will have
integrated memory. The memory will be divided up into ROM and RAM, with
typically more ROM than RAM. Typically, the amount of ROM type memory will
vary between around 512 bytes and 4096 bytes, although some 16 bit
microcontrollers such as the Hitachi H8/3048 can have as much as128 Kbytes of
ROM type memory. ROM type memory, as has already been mentioned, is used to
store the program code. ROM memory can be ROM (as in One Time Programmable
memory), EPROM, or EEPROM. The amount of RAM memory is usually
somewhat smaller, typically ranging between 25 bytes to 4Kbytes.RAM is used for
data storage and stack management tasks. It is also used for register stacks (as in
the microchip PIC range of microcontrollers).
3.1.3 BUS
That "way" is called "bus". Physically, it represents a group of 8, 16, or more wires.
There are two types of buses: address and data bus. The first one consists of as many
lines as the amount of memory we wish to address and the other one is as wide as
data, in our case 8 bits or the connection line. First one serves to transmit address
from CPU memory, and the second to connect all blocks inside the microcontroller
and ones onto the transmitter line in the order from a bit of the lowest value to a bit
of the highest value. Let each bit stay on line for a time period which is equal to T,
and in the end, or after the 8th bit, let us bring the logical unit "1" back on the line
which will mark the end of the transmission of one data. The protocol we've just
described is called in professional literature NRZ (Non-Return to Zero)
As we have separate lines for receiving and sending, it is possible to receive and
send data (info.) at the same time. So called full-duplex mode block which enables
this way of communication is called a serial communication block. Unlike the
parallel transmission, data moves here bit by bit, or in a series of bits what defines
the term serial communication comes from. After the reception of data we need to
read it from the receiving location and store it in memory as opposed to sending
where the process is reversed. Data goes from memory through the bus to the
sending location, and then to the receiving unit according to the protocol.
3.1.7 WATCHDOG
One more thing is requiring our attention is a flawless functioning of the
microcontroller during its run-time. Suppose that as a result of some interference
(which often does occur in industry) our microcontroller stops executing the
program, or worse, it starts working incorrectl.Figure2.8: Watchdog Of course,
when this happens with a computer, we simply reset it and it will keep working.
However, there is no reset button we can push on the microcontroller and thus solve
our problem. To overcome this obstacle, we need to introduce one more block
called watchdog. This block is in fact another free-run counter where our program
needs to write a zero in every time it executes correctly. In case that program gets
"stuck", zero will not be written in, and counter alone will reset the microcontroller
upon achieving its maximum value. This will result in executing the program again,
and correctly this time around. That is an important element of every program to be
reliable without man's supervision.
Ground
External Access: EA 31
• Connected to Ground for external ROM containing the code Input Pin
Four ports P0, P1, P2, P3 with 8 pins each, making a total of 32 input/output pins.
PORT 0:
•Pins 32-39
•Can be used as both Input or Output •External pull up resistors of 10K need to
be connected •Dual role: 8051 multiplexes address and data through port 0
to save pins .AD0-AD7
PORT 1:
•Pins 1 through 8
PORT 2:
•Pins 21 through 28
PORT 3:
•Pins 10 through 17
•No external pull up resistors required We have 4 ports in 8051 micro controller.
They are port0, port1, port2, port3 which can be accessed as i/o ports.
3.1.9 RESET
It resets total 8051 micro controller. RXD: It receives data in serial communication.
TXD: It transmits data in serial communication.INT0: External interrupt for timer
0.INT1: External interrupt for timer1T0: Timer0.T1: Timer1.RD: To read into
external memory. WR: To write into external memory.XTAL1 & XTAL2: To
connect the crystal oscillator. ALE: Address latch enable which is used to access
the address locations from external memory. PSEN: Program store enable which is
used for storing programming code into the external memory. EA: External Access:
64 KB of ROM is the limit for external memory. RAM Architecture The 8051 has
a bank of 128 bytes of Internal RAM. This Internal RAM is found on-chip on
the8051 so it is the fastest RAM available, and it is also the most flexible in terms
of reading, writing, and modifying its contents. Internal RAM is volatile, so when
the 8051 is reset this memory is cleared. The 128 bytes of internal ram is subdivided
as shown on the memory map. The first 8 bytes (00h - 07h) are "register bank 0".
These alternative register banks are located in internal RAM in addresses 08h
through 1Fh.Bit memory actually resides in internal RAM, from addresses 20h
through 2Fh. The 80 bytes remaining of Internal RAM, from addresses 30hthrough
7Fh, may be used by user variables that need to be accessed frequently or at high-
speed. This area is also utilized by the microcontroller as a storage area for the
operating stack.
3.1.13 ACCUMULATOR
The Accumulator, as its name suggests, is used as a general register to accumulate
the results of a large number of instructions. It can hold an 8-bit (1-byte) value and
is the most versatile e register. The "R" registers are a set of eight registers that are
named R0, R1, etc. up to and including R7.These registers are used as auxiliary
registers in many operations.
3.1.14 B REGISTER
The "B" register is very similar to the Accumulator in the sense that it may hold an
8-bit (1-byte) value. The "B" register is only used by two 8051 instructions: MUL
AB and DIV AB.
3.1.19 INTERRUPTS
An interrupt is a special feature which allows the 8051 to provide the illusion of
"multitasking," although in reality the 8051 is only doing one thing at a time.
3.1.20 TIMERS
Timers are one of the categories of hardware time delays. Time delays are used to
keep a system in to halting System or sleepy mode. We have two timers-timer0,
timer1.Hardware time delays are used to generate exact time delays.
Pins on the board could generate several kinds of waves while corresponding voice
command was recognized.
Voice Recognition Module requires an input of 4.5-5.5 Volts and less than 40mA
current. For Communication it uses 5V TTL level for UART protocol as Digital
Interface and 3.5mm mono-channel microphone connector, microphone pin
interface as Analog Interface.
3.3.1 FEATURES
• RS232 TX, Rx interface with MAX232 IC on socket
• ULN 2803 to Drive Stepper Motor Relays
• I2C ADC8591
• Quartz crystal 11.0592 MHz
• Reset button
• Power plug-in jack
• Extension slot on every uC pin
• 5v Vcc bus.
• 12v Vcc bus.
• Four mounting holes 3.3 mm (0, 13")
3.3.2 ADVANTAGES
• Easy to connect to PC or other embedded hardware through the RS232 port.
• ULN2803 interfacing available to run motors.
• I2c based ADC8591 gives accurate output.
• Extended ports allow any device to be interfaced with this board.
• On board dual power supply covers the requirements of almost all devices.
• On board Quartz Crystal 0f 11.0592 available.
3.3.3 APPLICATIONS
• Development and testing of 8051 microcontroller based industrial and educational
applications and devices.
• A good product for educational Institutions can be widely used to train students
on microcontrollers.
• Medical Devices: Handy medicinal gadgets such as glucose & blood pressure
monitors bring into play micro-controllers, to put on view the measurements, as a
result, offering higher dependability in giving correct medical results.
3.4.2 FEATURES
• RS232 Interface ( 3.3V/5V TTL level)
• Frequency range: 2402~2482MHz
• Transmit power: 20dBm(100mw);
• Receiver sensitivity: -87dBm;
• Operating temperature: -40~+85 ° c;
• Transparent transmission mode baud rate:
2400,4800,9600(Default),14400,19200,38400,57600,115200,12800,25600
3.4.3 ADVANTAGES
• Very Sensitive
• Operating voltage: 5V DC
• Fast Response
• Anti-pollution ability
3.4.3 APPLICATIONS
• 2402-2482MHz ISM/SRD band systems
• Consumer electronics
• Access control, Attendance, Logistics
• Smart Furniture
• Robert
• Wireless sensor
• Smart Home
3.5 RECTIFIER
A rectifier is an electrical device that converts alternating current (AC), which
periodically reverses direction, to direct current (DC), which flows in only one
direction. The process is known as rectification. Physically, rectifiers take a number
of forms, including vacuum tube diodes, mercury-arc valves, copper and selenium
oxide rectifiers, semiconductor diodes, silicon-controlled rectifiers and other
silicon-based semiconductor switches.
Rectifiers have many uses, but are often found serving as components of DC power
supplies and high-voltage direct current power transmission systems. Rectification
may serve in roles other than to generate direct current for use as a source of power.
As noted, detectors of radio signals serve as rectifiers. In gas heating systems flame
rectification is used to detect presence of a flame.
Because of the alternating nature of the input AC sine wave, the process of
rectification alone produces a DC current that, though unidirectional, consists of
pulses of current. Many applications of rectifiers, such as power supplies for radio,
television and computer equipment, require a steady constant DC current (as would
be produced by a battery). In these applications the output of the rectifier is
smoothed by an electronic filter (usually a capacitor) to produce a steady current.
High-power rectifiers, such as those used in high-voltage direct current power
transmission, employ silicon semiconductor devices of various types. These are
thyristors or other controlled switching solid-state switches, which effectively
function as diodes to pass current in only one direction.
A relay is an electrical switch that opens and closes under the control of another
electrical circuit. In the original form, the switch is operated by an electromagnet to
open or close one or many sets of contacts. Because a relay is able to control an
output circuit of higher power than the input circuit, it can be considered to be, in a
broad sense, form of an electrical amplifier.
1. Normally - open (NO) contacts connect the circuit when the relay is activate;
the circuit is disconnected when the relay is inactive. It is also called a FORM A
contact or “make” contact.
2. Normally - closed (NC) contacts disconnect the circuit when the relay is
activated; the circuit is connected when relay is inactive. It is also called FORM B
contact or” break” contact.
3.7 PELTIER AC
Peltier is a device which is used in thermoelectric cooling to create a heat flux
between the junctions of two different types of materials. A Peltier cooler, is a solid-
state active heat pump which transfers heat from one side of the device to the other,
with consumption of electrical energy, depending on the direction of the current.
The high performance of the thermoelectric coolers, are due to Peltier. Peltier
increases the rate of cooling and reach a larger temperature difference in relation to
the environment. Thermoelectric coolers are optimized for source voltage 12 V and
perform high cooling power at low power consumption. Peltier coolers are solid
state heat pumps used in applications where temperature stabilization, temperature
cycling, or cooling below ambient are required. There are many products using
Peltier coolers, including CCD cameras (charge coupled device), laser diodes,
blood analyzers and portable picnic coolers. Although there are a variety of
applications that use thermoelectric devices, all of them are based on the same
3.7.1 FEATURES
• Ultra-thin design.
• Low voltage consumption.
• Works with 12V DC
3.7.2 ADVANTAGES
• Low cost.
• Portable.
• Low power usage.
• High Efficiency.
• Make-up mini refrigerators.
3.7.3 APPLICATIONS
• Portable automobile refrigerators and picnic boxes
• Drinking water and tonic coolers
• Thermoelectric refrigerators and minibars
A heat sink usually consists of a metal structure with one or more flat surfaces to
ensure good thermal contact with the components to be cooled by the water entering
the water block increase the surface contact with the water, and thus the rate of heat
dissipation is done and the hot surface is cooled down.
In order to train the voice module through commands with the help of a program
which is stored in AT89S52 Microcontroller, the microcontroller displays the
message ‘speak now’ on the LCD screen. We should give the voice command when
the red light on the voice recognition module is ON, when the yellow light5is on
the voice command is sent to the microcontroller and is stored there, then the
Microcontroller displays message ‘speak again’ on LCD screen we should speak
again and the voice command is stored permanently in microcontroller. when the
voice commands are matched red and yellow lights on voice recognition module
blink at a time. Like this we have to train command we wanted to train commands
we wanted to train. In this project we have to train the voice recognition module
with four commands and those commands are used for switching the peltier A.C
module.
After the training of voice commands is done, when the command is given to the
voice recognition module, microcontroller sends the specific command to the
microcontroller in the receiving module through the wireless Zigbee module.
The relay module in the receiver module is connected to the outputs of the
microcontroller. When the command is matched then the microcontroller sends the
output to the relay module. Relay module will be ON and it acts as the switching
circuit to the Peltier AC module. The peltier ac module includes Four Peltier Plates,
aluminium heat sink, pipes, water cooling fan device, Normal Fan.
Water Block is the hallow block through which water flows. The input to the water
block on one side aluminium heat sink is taken from water source through water
motor pump. The output of this water block is given as input to the water block on
the other side of the aluminium heat sink. The output of this water block will flow
to the water cooling fan device. Water cooling fandevice cools the water from the
other water block and pumps it to the water source and the process is repeated.
When the relay module is ON the peltier plates will get on and the aluminium heat
sink will get cold. The back side of the aluminium sink is attached with the Fan
through which the cool air flows out.
5.1 EXPERIMENTATION
Commands 1 2 3 4 5 Total
1’st Peltier 1 1 0 1 1 4
Ac ON
2nd Peltier 1 1 1 1 1 5
Ac ON
3rd Peltier 1 1 1 0 1 4
Ac ON
All Peltier 1 0 1 1 1 4
Ac’s OFF
Commands 1 2 3 4 5 Total
1’st Peltier 1 1 0 1 0 3
Ac ON
2nd Peltier 1 0 1 1 1 4
Ac ON
3rd Peltier 0 1 1 0 1 3
Ac ON
All Peltier 1 0 1 1 0 3
Ac’s OFF
5.2 RESULT
1. For Table 2,
From table, there are 17 over 20 commands recognized by the VR-03 speech
recognition circuit. The percentage of the accuracy of VR-03 speech recognition
circuit in silent condition is 85%. Calculation for percentage is shown as below.
Accuracy = (17/20) X100% = 85%
2. For Table 3,
From table, there are 13 over 20 commands recognized by the VR-03 speech
recognition circuit. The percentage of the accuracy of VR-03 speech recognition
circuit in silent condition is 65%. Calculation for percentage is shown as below.
Accuracy = (13/20) X100% = 65%
CONCLUSION
This can be implemented in home for many home appliances and also in industries
& institutions that requires more manpower. Since the Zigbee can be used for longer
distance & since multiple nodes can be controlled be same Zigbee transmitter unit,
this can be implemented in industries. This module can be implemented in any
industries based on their needs, since this module is very flexible to use it can be
used based on their needs. In industries this can create a revolution. This will help
in reducing the cost as well as it can replace the manpower for such basic needs.
This will also help in increasing the speed of operation & also reduces the
possibilities of errors.
FUTURE SCOPE
REFERENCES
[1]. Avishek Paul, Madhurima Panja, Monalisa Bagchi, Nairit Das, Rudrabrata
Mitra Muzumdar, Soumya Ghosh, “Voice Recognition Based Wirelesss Room
Automation System”.International conference on intelligent Control Power and
Instrumentation(ICICPI), 2016.
[2]. Yash Mittal, Paridhi Toshniwal, Sonal Sharma, Deepika Singhal, Ruchi Gupta
and V.K.Mittal. “A Voice Controlled Multi-Functional Smart Home Automation
System” . IEEE INDICON, 2015
[4]. R.Orpwood, C.Gibbs, T.Adlam. “The design of smart homes for people with
dementia-user-interface aspects”. Universal Acess in the Information society, 2005.