Sei sulla pagina 1di 9

Appliance control by Voice

K626
This is the PC based Relay controller, which can be controlled by your voice
commands, using PC based voice recognition and micro controller interface. You c
an
control appliance by voice.
Think about a control home appliance, which would be controlled by your voice. B
y
giving a command, the device will be on and off. the voice recognition algorithm
we
used could be applied to daily life; for example it would be most helpful to dis
abled
people to perform their daily work. We created a speech-controlled appliance usi
ng
various electrical and mechanical domains such as digital Speech recognition des
ign,
and interfacing the projects with the Micro controller.
Project will work as an aid towards understanding the concepts of Speech
recognition and interfacing using micro controller and PC RS232. PC recognition
your
voice command (light on, light off, fan on, fan off etc) and send the data to mi
cro
controller. Micro controller decodes data and control the eight relays using rel
ay driver
chip.
Technical Specification
Working Voltage 12V AC/DC
Operating Current - 500ma Aprox
Contact Rating 230V AC / 500W
PC Serial Port (RS232) Interface
Soft wear for win95, 98, 2000, XP
Eight 12V relay
For up to eight device to be connected
On board relay LED indicator
On board Power LED indicator
Application:-
Home automation
Road light controlling
In hospital
Industrial control system
Railway signal controlling
Home automation system
How it s Work?
1] Serial Data Decoder
The full circuit of the projects is shown in schematic diagram the brain of the
switcher is
the Pre programmed micro controller use as serial to parallel converter. It s used
to
decoding data and operates a relay. On the computer there is an application prog
ram.
In that there are 8 buttons switch on or off different devices. When click anyon
e button
the specific code is generated and this code will pass to the circuit using seri
al port.
RX DATA
TO PC
Device 4
Device 3
Relay 1
12V _ 5V Power Supply
Device 1
Serial Data
Decoder (MCU)
MIC IN
Relay 3
Device 6
Device 5
TX DATA
Microphone
Device 7
Relay 2
Relay 6
Relay 7
Relay
Driver
Device 2
Device 8
Relay 4
PC
Relay 8
Relay 5
The function of the micro controller is to receive commands (serial data) throug
h port RA1 from
the PC serial port and control eight relays via relay driver IC ULN2803. RA0 and
RA1 as
RS232 in / out, it s connect with the PC via current limiting resistor. A 4 MHZ Re
sonator
Connect with OSC1 and OSC2 PIN (15 and 16). It s generates the clock pulse, which
fixes the
operation speed. Putting the capacitors the crystal (or ceramic) oscillator outs
ide does the
oscillation operation. When having the oscillation with the high stability, it u
ses the crystal.
Generally, the circuit becomes simple when using the resonator, which incorporat
ed the
ceramic and the capacitors into the one
Relay interface board
The circuit is programmed for 'on'/ 'off control by voice. It is very compact us
ing few
components and can be implemented for several applications including air-conditi
oners, light ,
fan, TV, CD player etc.
The PCB contains eight identical switched relay. A single pole dabble throw (SPD
T)
relay is connected to pin 6 to 13 (RB0 to RB7) of the micro controller through a
driver IC
ULN2803. The relay requires 12 volts at a current of around 50 ma, which can not
provided by
the micro controller. So the driver IC OR transistor is added. The relay is used
to operate the
external electrical device. Normally the relay remains off. As soon as pin of th
e micro controller
goes high, the relay operates. The connected LED will glow to show that this rel
ay is on. When
the relay is switch on it is cutoff and signals are directly provided to the con
nected device
through AC power supply.
PC SERIAL PORT (RS232)
RS-232 is simple, universal, well understood and supported but it has some serio
us
shortcomings as a data interface. The standards to 256kbps or less and line leng
ths of 15M
(50 ft) or less but today we see high speed ports on our home PC running very hi
gh speeds
and with high quality cable maxim distance has increased greatly. The rule of th
umb for the
length a data cable depends on speed of the data, quality of the cable.
Electronic data communications between elements will generally fall into two bro
ad categories:
single-ended and differential. RS232 (single-ended) was introduced in 1962, and
despite
rumors for its early demise, has remained widely used through the industry.
Independent channels are established for two-way (full-duplex) communications.

The RS232 signals are represented by voltage levels with respect to a system com
mon
(power / logic ground). The "idle" state (MARK) has the signal level negative wi
th respect to
common, and the "active" state (SPACE) has the signal level positive with respec
t to common.
RS232 has numerous handshaking lines (primarily used with modems), and also spec
ifies a
communications protocol.
The RS-232 interface presupposes a common ground between the DTE and DCE. This
is a reasonable assumption when a short cable connects the DTE to the DCE, but w
ith longer
lines and connections between devices that may be on different electrical busses
with different
grounds, this may not be true.
RS232 data is bi-polar.... +3 TO +12 volts indicates an "ON or 0-state (SPACE)
condition" while A -3 to -12 volts indicates an "OFF" 1-state (MARK) condition..
.. Modern
computer equipment ignores the negative level and accepts a zero voltage level a
s the "OFF"
state. In fact, the "ON" state may be achieved with lesser positive potential. T
his means
circuits powered by 5 VDC are capable of driving RS232 circuits directly, howeve
r, the overall
range that the RS232 signal may be transmitted/received may be dramatically redu
ced.
The output signal level usually swings between +12V and -12V. The "dead area"
between +3v and -3v is designed to absorb line noise. In the various RS-232-like
definitions
this dead area may vary. For instance, the definition for V.10 has a dead area f
rom +0.3v to 0.3v.
Many receivers designed for RS-232 are sensitive to differentials of 1v or less.

RS232 is a voltage loop interface for two-way (full-duplex) communication repres


ented
by voltage levels with respect to system ground (common). A common ground betwee
n the PC
and the associated device is necessary. Maximum serial cable length is defined:
75 feet at
9,600 bps, but today cables up to 1,000 feet are used successfully. The interfac
e is single
ended (connecting only two devices with each other), the data rate is less than
20 kbps.
Pin Signal Pin Signal
1 Data Carrier Detect 6 Data Set Ready
2 Received Data 7 Request To Send
3 Transmitted Data 8 Clear To Send
4 Data Terminal Reedy 9 Ring Indicator
5 Signal Ground
PC SOFTWARE SCREEN SHOT

PART (COMPONENTS) LIST [Appliance Control by Voice K626]


R1 ~ 10 - 1K [Brown, Black, Red] [10 nos]
R11 - 10K [Brown, Black, Orange]
R12 - 220E [Red, Red, Brown]

C1 - 1000UF / 16V
C2 - 10UF / 16V
C3 - 100N (0.1UF / 104)
Y1 - 4MHZ OR 8 MHZ RESONATOR

D1 ~ 4 - 1N4007 DIODE [4 Nos]


L1 ~ 9 - 5mm OR 3mm RED LED {9 Nos}
L10 - 5mm OR 3mm GREEN LED

U1 - ULN2803 RELAY DRIVER


U2 - PIC16F628 PRE PROGRAMMED MICRO CONTROLLER (Tx)
U3 - LM7805 5V VOLTAGE REGULATOR

CN2 - 9 PIN D CONNECTOR


RL1 ~ 8 - 12V SPDT RELAY (PCB MOUNT) [8 Nos]
2nos - 18 Pin IC SOCKET
1nos - PC Micro Phone (Mic)
1nos - RS232 data cable

Potrebbero piacerti anche