You are on page 1of 13

HOME APPLIANCE CONTROL USING COMPUTER PARALLEL PORT

GUIDED BY:Mr. SANTOSH JANGIR Mr. DINESH SONI

SUBMITED BY:LOKESH KUMAR PANWAR RAJESH MALI

Introduction : PC parallel port can be used I/O channel for connecting our own circuits to PC. The PC's parallel port can be used to perform some very amusing hardware interfacing experiments. The port is very easy to use. Note:Before connecting hardware , isolate hardware and parallel port by isolator example optocoupler.

Block diagram of working

Controlling software:For controlling we use C language function. C as we know is a middle level programming language. It offers extreme flexibility in interacting with the hardware. In C there are following functions which are used for accessing the ports. outportb( PORTID, data); data = inportb( PORTID); These function is present in dos.h header file in C. In this inportb is used to take input and outportb is use to take output throw port. Example:-

Flowchart of program

Parallel port and C interfacing software:Today we are using so many Windows in our computer like window 95, 98, 2000, Xp etc. They did not allow us to read and write operation on ports. So we install driver for read and write operation on parallel port. Example:- port95.exe

Port 95 .exe window

OPERATING CIRCUIT : -

For operating equipment we are using relay because our operating equipment is work on high voltage about 250v it is necessary isolate to our circuit. By programming we produce signal at the parallel port this signal is not sufficient for relay operating, So for operating relay we are using relay driving circuit. Which driving circuit is operating by separate voltage source.

MAIN COMPONENT
Opto-coupler IC EL 817 Series NPN switching transistors 2N2222 Parallel port Relay [12v]

I.NPN switching transistors 2N2222 FEATURES High current (max. 800 mA) Low voltage (max. 40 V). . Max temperature limit (max 90 C) APPLICATIONS Linear amplification and switching.

2. OPTOCOUPLER [EL817 Series] Description The EL817 series contains a infrared emitting diode optically coupled to a phototransistor. It is packaged in a 4-pin DIP package and available in wide-lead spacing. Features: Current transfer ratio (CTR:MIN.50% at Ic =5mA ,VCE =5V) High isolation voltage between input and output

III. Parallel port:The Parallel Port is the most commonly used port for interfacing homemade projects. This Port will allow the input of up to 9 bits or the output of 12 bits at any one given time, thus requiring minimal external circuitry to implement many simpler tasks. The port is composed of 4 control lines, 5 status lines and 8 data lines. It's found commonly on the back of your PC as a D-Type 25 Pin female connector.

IV.RELAY :A relay is an electrically operated switch. Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits), or where several circuits must be controlled by one signal SPDT Single Pole Double Throw. A common terminal connects to either of two others. Including two for the coil, such a relay has five terminals in total.

Result: We have successfully implemented this software and hardware. It is working as per our requirement. This software had been made using C language programming. For making this software easy and interactive we have used graphics in C language. And for interfacing between parallel port and relay operating circuit we use port95.exe software. Hardware operate by 9 volt dc battery supply and for isolating purpose we have used optocoupler which isolate parallel port and external supply.

THANK YOU

You might also like