8 - switch control from PC parallel port.

Electronics & Electrical Engineering Topics
Post Reply
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

8 - switch control from PC parallel port.

Post by Rksk » Sun Mar 28, 2010 4:04 pm

The circuit below is a 8 switch controller.
It can only used with a PC's parrallel output and a special programm running the parallel port control program.
It doesn't overoading the pc's port because it use JFET BS250 which acts like a switch.
Those swithes make a short-circuit between Drain - Source when a zero voltage appears in Gate through a 470 Ohm resistance.
When the JFET short-circuited a led lights through a 1K Ohm resistance and the relay change state.
The diode 1N4148 parallel to the relay is for protection.
The resistors R5 and R6 is connected to pin 10 and 21 and is used to simulate that a printer is connected to the parallel port.
Also this electronic circuit is powered by a regulated power supply LM7806 (6Volt output).
If you like to expand this circuit to 8 switch controler you can add 4 more BS250 or built the NPN transistor circuit below.
If you use a 7806 regulator with 8 relays you must add a big enough heatsink or use an external power supply.
Circuit.JPG
Circuit.JPG (73.22 KiB) Viewed 4236 times
port.GIF
port.GIF (12.5 KiB) Viewed 4236 times
If you experience difficulties to find those JFets you can built a transistor controled switch.
A schematic of the switch is shown below.
Notice that in this case parallel port supply more current to the circuit.
relay.gif
relay.gif (2.87 KiB) Viewed 4236 times

You must built 8 of those to control 8 different relays.
Also notice that only Parallel Port Control Program v2.0 can handle 8 different relays.
If you use a 7806 regulator with 8 relays you must add a big enough heatsink.

Use Parallel Port Control Program (ppcp) v2.1 to control parallel port.
software.JPG
software.JPG (42.41 KiB) Viewed 4236 times
There is the VB6 source.
ppcp v.2.1 source.zip
(55.11 KiB) Downloaded 567 times
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: 8 - switch control from PC parallel port.

Post by Neo » Sun Mar 28, 2010 4:59 pm

Interesting....
But you can also use a small microcontroller like PIC 16F877 that comes with about 33 I/O pins.
PIC16F877.jpg
PIC16F877.jpg (4.95 KiB) Viewed 4232 times
PIC16F877_Controller_300b.jpg
PIC16F877_Controller_300b.jpg (35.96 KiB) Viewed 4232 times
image014.jpg
image014.jpg (58.29 KiB) Viewed 4232 times
image016.jpg
image016.jpg (34.13 KiB) Viewed 4232 times
Sample project: Thermometer
thermo.jpg
thermo.jpg (37.34 KiB) Viewed 4231 times
You can make a little programmer like this and use free tools specified in the same post to program the chip.
Post Reply

Return to “Electronics & Electrical Engineering”