control RELE by parallel port of pc

nanopoylos

Feb 19, 2004
25
Joined
Feb 19, 2004
Messages
25
Hi
I would like to construct a device that will be connected to the parallel port of my pc , and i would be able to control RELE's .
I dont know if i can find something like that ready or i should construct it from scratch .
The device must be controlled by a windows programm, that i must construct .This programm would control the device as i want , for example , to enable the rele's as i want , for as long that i want .It should be able to accept schedule for seconds , minutes , or hours .
I dont know wich language should i use to build the program .
If someone knows what should i do at all , please reply, i must construct it since it is part of a medical machine i like to construct.
ThANK U

 

mixos1

Administrator
Jul 13, 2003
581
Joined
Jul 13, 2003
Messages
581
Check this project:

The 8Way Relay Board
http://www.electronics-lab.com/projects/pc/005/index.html

If you develop a new software, share it with us!

 

billy2

Oct 23, 2003
101
Joined
Oct 23, 2003
Messages
101
Check this as well :

http://www.southwest.com.au/~jfuller/noalimba/noalimba1.htm

it is much simpler, I have made it many times and works very well indeed. Don't forget the diode parallel to the relay !

If you have win95/98[me=billy]you can control the parallel port directly with the 'out' command. For win2k/xp you need a special driver depending on the language you will use. I have resources for delphi.[/me]

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
As Billy has stated, you will need resources for the software. It also depends upon the language you use. C does not do anything you do not tell it to do. Visual Basic sends an automatic line feed and new page unless you tell it not to. If you want to communicate to the outside world from Windows, you will normally need a DLL which will pass the information to the device. If you are using Win XP, you have more problems as you have to get past the built in security. I am assuming you want two way communication.

A search on the web will give you the DLL and how to incorporate it into your code. Look for outport or inpout or combinations of these keywords as I have seen free versions of these on websites in the past.

If this is for medical devices, how are you checking that the relay is closed or open or is not false triggering? Sometimes the parallel port data pins are energized when the computer is turned on. This could be a problem if you are not wanting to turn on a relay that is connected to the port during a reboot or when the computer comes back on from a power failure.

Just some thoughts.

MP

 

electrodoc2

Feb 11, 2004
57
Joined
Feb 11, 2004
Messages
57
hi use msdos 6.2's qbasic.. type,



10 out 888,1


this will send the left hand side top output from the socket to 5 volts , out 888,0 will send it back to 0 volts.. you will need a buffer inthe shape of an opto isolator or a transistor to run a relay but it's easy.

 

electrodoc2

Feb 11, 2004
57
Joined
Feb 11, 2004
Messages
57
didn't have much time on last post to explain clearly but look at my other thread where i've posted a few notes and a diagram/explanation.

http://www.electronics-lab.com/forum/index.php?board=13;action=display;threadid=333

 
Top