computer controled relay - diyAudio
Go Back   Home > Forums > General Interest > Everything Else

Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools......

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 21st December 2002, 08:28 AM   #1
diyAudio Member
 
Join Date: Dec 2001
Location: SIUE, Illinois, USA
Default computer controled relay

Ok, i am a second year EE student. that being said, dumb down any conversations on digital circuts or semiconductors or whatnot. also don't suggest things that are expensive!

problem: i have 2 cold cathodes in my computer case. they have a switch. i have to open the case to turn the switch off.

what i want: i want to control the switch via computer. my plan is to run some kinda signal to a transistor that will turn on a relay, or turn off a relay. the signal will come from the serial or parellel port.

what i had thought: some kinda Xor gate where the serial port is one input, and the ouptut is the other input. i don't have any idea why this would really work, and figure it is probably the hard way to do this all.
__________________
if only it could be used for good, not evil...
  Reply With Quote
Old 21st December 2002, 10:29 AM   #2
Banned
 
Join Date: Nov 2002
Location: Adelaide, Australia
Send a message via MSN to SkinnyBoy
Why don't you just put a switch on the outside of the case?

Do you have a USB printer? or no printer at all?

Serial wouldn't be possible....

Parallel... EASY!!!

Just a sec..
  Reply With Quote
Old 21st December 2002, 10:30 AM   #3
Banned
 
Join Date: Nov 2002
Location: Adelaide, Australia
Send a message via MSN to SkinnyBoy
http://www.aaroncake.net/circuits/interfac.htm
  Reply With Quote
Old 22nd December 2002, 05:21 AM   #4
diyAudio Member
 
Join Date: Dec 2001
Location: SIUE, Illinois, USA
hmm, i had wanted something a little more dumbed down then that. I did think of something though. it involves 3 transistors involved as switches, and 1 op amp as a comparator, and a few resistors and a relay. possibly a coulple diodes. i'll attach the likely very wrong version. like i said, i'm new to semi-conductors.
Attached Images
File Type: png computlight1.png (5.6 KB, 55 views)
__________________
if only it could be used for good, not evil...
  Reply With Quote
Old 22nd December 2002, 08:44 PM   #5
Banned
 
Join Date: Nov 2002
Location: Adelaide, Australia
Send a message via MSN to SkinnyBoy
lol, I have a confession.. I don't even get the circuit I posted.. lol..... I have a circuit in magazine somewhere for a single parallel port controlled relay.... Don't know where it is though... as for the schematic you posted.. . umm.... I dunno..
  Reply With Quote
Old 23rd December 2002, 06:12 AM   #6
diyAudio Member
 
Join Date: Dec 2001
Location: SIUE, Illinois, USA
see, my idea is that when the on signal is passed, it will make the transistor into a switch, and this will turn on the drive transistor. this will begin charging the relay. this will also send a signal to the op amp, which should be a non-inverting comparator. since the signal voltage is above 0, the opamp will send a signal to the drive transistor. once the "on" signal is let off, the drive transistor will still be on because it is controlled by the opamp, and the opamp will stay on because the drive transistor is on, so it will stay on. once the off signal is sent, the "off" transistor should act like a switch, and allow the same voltage to reach both terminals of the op amp, which will cuase the op amp to stop sending the signal to the drive transistor, which will cause the transistor to turn off, and the opamp should stay off.

i am wondering if it will work and if i drew it correctly, and if the relay's inductor will supply a signal to turn the op amp back on, which would mean that the thing would be hard to turn off.
__________________
if only it could be used for good, not evil...
  Reply With Quote
Old 23rd December 2002, 10:35 AM   #7
Banned
 
Join Date: Nov 2002
Location: Adelaide, Australia
Send a message via MSN to SkinnyBoy
Ummm... okay.. lol... so, what exactly are you trying to do with this? have a program that you can use to toggle the relay on and off?? or what?? :P lol
  Reply With Quote
Old 23rd December 2002, 11:08 AM   #8
diyAudio Member
 
jackinnj's Avatar
 
Join Date: Apr 2002
Location: Llanddewi Brefi, NJ
Default controlling a relay via parallel port

Microsoft was never happy about controlling things on the outside from inside windows, thus you are going to have to noodle around a little in Visual Basic and perhaps get the DLL's which allow you to work around the operating system. The circuit below will control several relays or switches.

Be careful with the parallel port. You can fry your entire machine if you draw too much current on any pin.
Attached Images
File Type: gif relay.gif (66.8 KB, 148 views)
  Reply With Quote
Old 23rd December 2002, 11:15 AM   #9
Banned
 
Join Date: Nov 2002
Location: Adelaide, Australia
Send a message via MSN to SkinnyBoy
Well, as for software.. someone already wrote a rather nice Windows program....


http://www.aaroncake.net/files/index.html


To go with this circuit....
Click the image to open in full size.

Also...

How To Program The Parallel Port In QBasic

How To Program The Parallel Port In Visual Basic
  Reply With Quote
Old 27th December 2002, 08:08 PM   #10
diyAudio Member
 
Join Date: Dec 2001
Location: SIUE, Illinois, USA
hmm. I'll look into these. I am new at semiconductors, so i don't know how to get these things to work for me. I wanted something where you would supply a pulse, and the relay would turn on. another pulse on another terminal would turn the relay off.

could someone explain how circut with the octal something with inverted output works?
__________________
if only it could be used for good, not evil...
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple envelope controled LP-filter tRasH Instruments and Amps 2 12th July 2005 03:20 PM
Computer controled volume control madmax14304 Chip Amps 5 21st December 2004 11:23 AM
128 step volume controled by relays roger-k Solid State 4 31st March 2004 08:42 PM
Can I use a SIL relay ? Ryssen Solid State 8 29th December 2003 10:45 PM
Dsp controled digital amp? partyjups Solid State 3 6th October 2001 03:41 PM


New To Site? Need Help?

All times are GMT. The time now is 10:05 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2