24-02-2011, 09:42 AM
PRESENTED BY:
KUMAR GAURAV
RUSTAM ANSARI
QUYAMUDDIN KHAN
RAJIV KUMAR BARIK
[attachment=9047]
CONTROLING THE ELECTRICAL APPLIANCES USING PC’S
INTRODUCTION
It can be used to control the printer as well as house hold and other electrical appliances.
The computer program included as part of the project controls ‘RELAYS’ through the interface circuit,which in turn, switch the appliances ‘ON’ or ‘OFF’.
The parallel port has 12 output including 8 data lines and 4 control lines
THE PARALLEL PORT
The parallel port or line printer terminal is found on the back of a PC as a D –type 25 pin female connector.
* The port is composed of:-
-> 4 control lines
-> 5 status lines and
-> 8 data lines
*The original parallel port is a bundel of three ports.
These are
-> data port
-> status port and
-> control port
* Each of them having specific addresses assigned to them
PIN DIAGRAM FOR PARALLEL PORT
We are using DB25 connector for parallel port.
Pins 2 through 9 from the 8 –bit data output port.
Pins 1, 14, 16, and 17 from the control port which is capable of reading / writing.
Pins 10 through 13 and pin 15 together form the status port.
IDENTIFY THE MEMORY LOCATION FOR A PARTICULAR MACHINE.
To identify the assingments for a particular machine:-
->the DOS debug program can be used to display memory locations.
For example:- >debug- d 0040:0008 L 80040:0008
78 03 78 02 00 08 00 00
Thus according to the addresses displayed it follows that the address of the data port is 0*0378 and so on.
The basic circuit has the following components
Relay
One 470 ohm resistance
One 4.7k ohm resistance
One opto-couplar IC numbered MCT2E.
One transister numbered BC148
A diode numbered IN4007.
COMPONENT DESCRIPTION
OPTO-COUPLER
-> is an integrated circuit.
-> number of the IC used is MCT2E
-> it is a combination of a light source and a photosensitive detector.
-> MCT2E opto-coupler IC is used in this circuit is a 6 pin IC.
THE PIN-NUMBERING AND THE CORRESPONDING FUNCTION ARE AS FOLLOWS:-