Driving Relay from Parallel Port (LPT)

Once we learn how to control the parallel port, then we can use the parallel port to control relay.

It’s very easy. We simply replace the LED on LED Connecting to LPT with relay. In order for the data port can be used to control the relay, we need an an NPN transistor, for example C9013. as shown below:

Controlling Relays through the LPT

Controlling Relays through the LPT

You can still use the LPTTest program to enable the relay mounted on LPT like the picture above. To activate the relay, please check the CheckBox. As for turning off the relay, uncheck the CheckBox. Relays can be used to control electrical appliances to suit your needs.

With a little modification done on the program LPTTest, you can make the control electrical appliances automatically. For example, create Automatic Bell for school and others.

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.
Please notice that comment or question submitted should match the topic. Otherwise, we will delete that comment or question :!:

2 Comments
  1. kalau relay nya sekitar 50 an bagaimana pak?

    • Kalau jumlah relay banyak ya sebaiknya jangan menggunakan LPT, lebih baik menggunakan RS232 dan dikendalikan oleh mikrokontroler, atau bahkan menggunakan ethernet

Leave a comment

Before making a comment, make sure you have read the previous comments. Do not make the questions have been asked. Note also the links in the article. Take a look at those links before you create the questions, as it may be an explanation of your questions have been answered in that link.

Comments that do not follow these rules will be deleted!

(required)

(required)



4 + = nine

Notify me of followup comments via e-mail. You can also subscribe without commenting.