Professional Documents
Culture Documents
Ijetae 1012 30
Ijetae 1012 30
Ijetae 1012 30
Future Institute of Engineering and Management, Kolkata-700150 3 Techno India, Kolkata-700150 Microcontroller [AT89C51] Voice recording and playback device[APR9600] DTMF receiver [MT8870] Relay [ULN2003] Power supply LED Resistors Capacitors Diodes Switch Crystal Oscillator Electric mic Speaker Cellphone with headset Software Components: Software components comprises of the following: BASCOM microcontroller programming software Assembly language B. Introduction To Embedded Systems I) Definition: Embedded System Any sort of device which includes a programmable computer, but itself is not intended to be a general-purpose computer[1]. II) What is an Embedded System An embedded system is a microcontroller / digital signal microprocessor based system that is designed to be flexible and built to control or monitor the functions of equipment, machinery, plant and many devices in common use today. III) Desktop vs. Embedded System In contrast to Desktops that performs a Variety of tasks an Embedded System performs a Single, Well-Defined Task. The System has a Processor, Associated Peripherals, and Software for a Specific Purpose. For example, in a Mobile Phone the Embedded Processor needs to Process Voice (to Send and Receive Speech Signals) as well as implement Communication Protocols. The Hardware is Custom Built for the Specific Purpose. Unlike a PC, embedded system is not designed to be programmed by an end user. Embedded system always runs a fixed application.
Abstract In this paper we have presented a circuit that lets one to operate home appliances like light and water pump from office or any other remote place. So if one forgets to switch off light or other appliances while going out, it helps to turn off them with your cell phone.The cell phone works as the remote control for home appliances.One can control the desired appliance by pressing the corresponding key. The system also gives you voice acknowledgement of the appliance status. Keywords Microcontroller,Embedded System, Circuit Description, Detailed Pin Description.
I. INTRODUCTION In recent years, there has been a rapid increase in wireless network deployment and mobile device market penetration. With various research that promises higher data rates, future wireless networks will likely become an integral part of the global communication infrastructure. Ultimately, wireless users will demand the same reliable service as today's wire-line network provides. Through our device controller we can represent a safe & secure wireless communication with proper authentication and less loss of data. The circuit of our proposed project has two parts: (i)The hardware part (ii)The software part The hardware part comprises of microcontroller AT89C51, DTMF decoder MT8870, voice recording/playback device APR9600 and a few discrete components. Microcontroller AT89C51 is the heart of the circuit. It is a low-power, high performance, 8bit microcontroller with 4 KB of flash programmable and erasable read only memory used as on-chip program memory, 128 bytes of RAM, 32 individually programmable input/output lines, a five vector two-level interrupt architecture, on-chip oscillator and clock circuitry. The software part consists of a program for the microcontroller is written using BASCOM microcontroller programming software. A. Components Required Hardware Components: Hardware components comprises of the following:-
169
Status Indicator
Microphone
Speaker
DTMF Decoder
Relay Driver
Cellphone
170
B.
Circuit Description
It comprises of microcontroller AT89C51, DTMF decoder MT8870, voice recording/playback device APR9600 and a few discrete components. Microcontroller AT89C51 is at the heart of the circuit. It is a low power, high-performance, 8-bit microcontroller with 4kB of PEROM used as on-chip program memory, 128 bytes of RAM used as internal data memory, 32 individually programmable I/O lines divided into four 8-bit ports, two 16-bit programmable timers/counters, a five-vector twolevel interrupt architecture, on-chip oscillator and clock circuitry .A 11.0859 MHZ crystal (Xtal1) is used to provide basic clock frequency of microcontroller. Capacitor C3 and resistor R3 from the power-on reset circuit, while push-toon switch S20 is used for manual reset .Port pins P1.0 through P1.7 of the microcontroller are configured to get the input from switches S1 through S8.pins from port P1 are pulled high via resistor network RNW1.
Port pins P2.0 through P2.4 are configured to receive the decoded DTMF signal from DTMF receiver MT8870.The DTMF decoder is used for decoding the mobile signal. It gets DTMF tone from the mobile headsets speaker pins and decodes it into 4-bit digital signal. The DTMF decoder is operated with a 3.579MHz crystal (Xtal2).In DTMF receiver MT8870 (IC3), capacitor C12 is used to filter the noise and resistors R6 and R7 helps to amplify the input signal using the internal amplifier. Pin 16 of IC3 connected to resistor R5 provides the early steering output. It goes high immediately when the digital algorithm detects a valid tone pair (signal condition). Any momentary loss of signal condition causes ESt to return to low state. Pin 17 of Ic3 connected to capacitor C11 is bidirectional, acting as steering input/guard time output (St/Gt). A voltage greater than threshold of the steering logic Vtst detected at St causes the device to register the detected tone pair.
171
Here, we are using two control sources, switches and mobile's key. DIP switches S17 & S18 select the control sources. Pin 2.5 of Port P2 is configured to show the rest status. That is, if none of the control sources is selected by DIP switches S17 & S18, LED1 glows. Resistor R14 limits the current through LED1. Voice acknowledgement is provided by APR9600 (IC2). It is a single-chip voice recording and play back device that can record and play multiple message at random or in sequential mode for 60 seconds. The user can select sample rates with corresponding-quality recording lengths. Microphone amplifier, automatic gain control circuits, internal output amplifier and message management are some of the features of the APR9600.Here the APR9600 is configured in random-access mode, which supports two, four & eight messages of fixed durations. The length of each message is the total recordings length available divided by the total number of memory segments/tracks enabled. Audio processor can store up to eight voice messages. Port P0 pins & P2.7 are configured to communicate with IC2. Port P0pins trigger selection of the message. Port pin P2.7 is the input signal to identify whether the voice message is playing or not. Pins P3.0 through P3.5 of port P3 control the devices with the help of relays RL1 through RL6 via relay IC4.A speaker is connected to IC2 for audio output. The speaker output drives the microphone input of the mobile for audio acknowledgement. An electrets microphone MIC1 is connected to IC2 to record the voice in IC2. Led2 flashes to show the busy status of IC2 during recording & playback. The audio message to be recorded in APR9600, by using trigger switches S9 through S16. SPST switch S19 is closed for recording and switch S19 is opened for playback.
APR9600
MT8870
5V 5%
7806
6v
1N4007 diode
Resistors
W, 5% CARBON
7 8
Capacitors Capacitors
9 10
11
Speaker
1W
172
(II)
VCC Supply voltage. GND Ground Port 0 Port 0 is an 8-bit open drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as highimpedance inputs. Port 0 can also be configured to be the multiplexed low-order, address/data bus during accesses to external program and data memory. In this mode, P0 has internal pull-ups. Port 0 also receives the code bytes during Flash programming and outputs the code bytes during program verification. External pull-ups are required during program verification.
173
174