Device Switching Using PC’s Parallel Port

CIRCUIT DESCRIPTION AND WORKING:

The circuit comprises decoder, inverter, latch circuit, and relay driver sections. The circuit, excluding relay drivers and relays, is powered by a 5V DC regulated supply. Relay drivers and relays are driven by a 12V DC regulated supply. Each relay is rated 12V,200-ohm.

The circuit for switching on/off 6 loads is shown in Fig. 2. For more than 6 loads, you can add more ICs in a similar way as shown in this circuit. IC 74LSI54 is a 24-pin, 4-to-16 line decoder IC. This IC is designed to accept four inputs and provide 16outputs. Input addresses Al through A4 to pins 20 through 23 of IC1 and IC2 (IC 74LSI54) each are given from the data lines of the computer parallel port.

In this circuit, only pins 2 through 9 of the parallel port are used, where data lines D0 through D3 form the 4-bit data input and D4 through D7 are address-select or control lines for the circuit. Pins 18 through 25 are shorted to ground. Data lines D0 through D3 are the input addresses for IC2, and data linesD4 through D7 are the input addresses for IC1.

When Enable pins EI and E2 (active low) are high, all the outputs go high irrespective of the address inputs (AI through A4). Enable pins EI and E2 of ICI are grounded and its output pins YO through YI5 are connected to Enable pins of the respective decoder ICs.

Initially all the data inputs (D0 through D7) are low. Thus, except Y0,all the outputs of ICI and IC2 are high. The output Y0 of IC2 is not used, for the reason that when all the input data is low, none of the outputs of IC 74LSI54 is used for switching the loads. Suppose, out of eight input data lines, D0 is high. So, except Y1, all the outputs of IC2 will be high. YI is then inverted using IC4 (IC 74LS05). The output of IC4 at pin 2 is given to pin 3 of IC7 (lC 74LS74). IC 74LS74 is a dual D-type flip-flop used for latching the data.

With an active rising edge of the clock pulse (CP-1 or CP-2), the data input will be locked in IC7 through IC14 until the next rising edge of the input clock pulse. The outputs of ICs 74LS74 are given to relay driver ICs ULN2803 (lC-15 and IC-16), which, in turn, drive the relays. The relays are used to switch on/off the appliances.

Fig 2. Circuit daigam of the project
Fig 2. Circuit diagram of the project


SOFTWARE :

The program to control the appliances is written in C. it is compiled using Turbo C compiler. The flow chart of the program is as follows

  Fig-3: Flow chart for Implementation of Program
Fig-3: Flow chart for Implementation of Program
Fig-4: Flow charts of the functions Used
Fig-4: Flow charts of the functions Used
Editorial Team
Editorial Team

We are a group of young techies trying to provide the best study material for all Electronic and Computer science students. We are publishing Microcontroller projects, Basic Electronics, Digital Electronics, Computer projects and also c/c++, java programs.

26 thoughts on “Device Switching Using PC’s Parallel Port

  1. it can control device, can it be used to montior voltage and some I/O signal and the same time?

    is there RS232 VERSION instead of parallel port?

    thank you

  2. hi.. i want to download the source code of device switching using pc’s parallel port in c#.net sp please forward it to my email-id its urgent require so please please send code to me

  3. I have tried the program but it does not give the desired outpt though it prints what you have showed in your screen shots..Kindly help us as it is related to the filnal year project..Please !!!!

  4. We have taken this project & got selected but now there is a problem…………

    I have tried to make the artwork & layout but it does not succeded.
    Kindly help us as it is related to the third year project as soos as possible..Please send the same on my e-mail id OR give us direction!!!!

    Please help us >>>>>> to download the schematic diagram of device switching using pc’s parallel port.

    we have to submit our project upto end of this month… PLEASE HURRY & HELP US….

  5. I would like to build the circuit and test it. Can you please send me the source code. I also do not have a turbo compiler.
    Regards,
    Iqbal

  6. i want to do the project which is control of electrical appliance such asaaaaaa
    a bulb but i have problem with the programmation how can i sort it?

  7. though i liked the project & wanted to go through the entire project but i could not see the last part of the project..every time i clicked on the page links..only the 1st page is getting re-opened..plzz help…i need it…if possible plzzz send me a copy of the entire project in my email-id

  8. when i run the code, it has a lot of error

    i run it in visual studio
    because i have widow 7 and i don’t know how to download it

  9. I love your blog.. very nice colors & theme. Did you design this website yourself or did you hire
    someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to find out where u got this from. kudos

  10. I think that is one of the such a lot significant info for me.
    And i am satisfied reading your article.
    However should remark on few basic things, The web site taste is great, the articles is in reality nice
    : D. Excellent process, cheers

  11. Ahaa, its fastidious conversation concerning this
    post at this place at this website, I have read all that, so at this
    time me also commenting here.

  12. Every weekend i used to visit this site, for the
    reason that i wish for enjoyment, as this this website conations in fact good funny information too.

  13. Failed to get the source code for device switching using parallel port working.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in