Electronics (alt.electronics)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default xor switching for mains input

I'd like to make a box which accepts 2 mains inputs and outputs mains
if either one of the inputs is on but not if both are on. Any ideas?

Failing this, how would I achieve the same effect with 2 low voltage
inputs?
  #2   Report Post  
Chris
 
Posts: n/a
Default xor switching for mains input

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark wrote:

I'd like to make a box which accepts 2 mains inputs and outputs
mains if either one of the inputs is on but not if both are on. Any
ideas?

Failing this, how would I achieve the same effect with 2 low voltage
inputs?


Hi,
For low-voltage inputs to a low-voltage output, just buy a (VERY
cheap) XOR-gate IC, such as the 74135.

To use mains-voltage instead of ~4.5 volts, although there is perhaps
a better way to do this, I personally would convert the high voltages
to low voltages, use the IC, and then turn them back into a high
voltage output.

To turn mains voltage into a digital logic 1/0 signal, use a
transformer to drop it down to probably, say, about 12V, bridge
rectifier, and a filter capacitor of some kind, followed by a ~5V
zener diode. This'll give you 0V or 5V. You'll need one for each
input.

To turn the output back into mains voltage, use an optoisolated triac.
A basic triac switching circuit is shown he

http://computerchristmas.com/domains...-Schematic.jpg

although I would suggest connecting the input labeled "+5VDC" to the
output of your XOR gate, and the input labeled "to controller" to
common ground. Everything else can stay the same. The MOC-3010 is an
optoisolator; if you get a different optoisolator, you may need to
change the values of the resistors. TR1 is your triac; the diagonal
line is the gate, while the two vertical lines are the main
terminals. It'll probably only work with the main terminals connected
one or the other way around, so if it should be on but isn't, try
switching the main terminals. As the schematic shows, just put in
series with the circuit that would normally consist of the mains
supply and the load.

- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAhxAhnwjA8LryK2IRAswaAJ424ys4AuQrbncK+OJ44k 4GYX+94gCcCqSn
1jKMydnnrSK9rIPkH8Um6P4=
=UaPp
-----END PGP SIGNATURE-----
  #3   Report Post  
Roy
 
Posts: n/a
Default xor switching for mains input

Feed input 1 to relay 1's activating coil which has normally closed contacts, the
input
2 power goes to the contacts of relay 1. Feed input 2 to relay 2's activating coil
which also has normally closed contacts, the input 1 power goes to the contacts of relay
2. If both power inputs are on, both relays will be activated and no power will be
received by the output which is connected to the contacts of both relays. If input 1
is off, relay 1 will not be activated and input 2 will flow to the output, and vice
versa.
QED Roy
"Mark" wrote in message
m...
I'd like to make a box which accepts 2 mains inputs and outputs mains
if either one of the inputs is on but not if both are on. Any ideas?

Failing this, how would I achieve the same effect with 2 low voltage
inputs?







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
please help: tv with no composite input Louie Electronics 1 September 2nd 03 01:26 AM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"