Embedded Systems Conference
Breaking News
Comments
Newest First | Oldest First | Threaded View
<<   <   Page 5 / 5
betajet
User Rank
Author
Re: Ladder logic should work
betajet   7/12/2013 7:16:08 PM
NO RATINGS
You can do a very nice XOR using just two of those Mock Relays.  First a ladder diagram:

|---[ A]----[/B]--+--( )----|

|---[/A]----[ B]--+

We get conduction if A & !B or !A & B.  Next, we use the fact that the relay can conduct in either direction through the NO and NC connections and use one set of SPDT contacts for both A and !A (connect COM to the terminal on the left) and one set of SPDT contacts for B and !B (connect COM to the relay coil on the right).  Then you just wire the NO/NC contacts of the two relays to each other.  You can swap the NO/NC wires to get XNOR.

This is the same switching you use for an electric light that's controlled from two locations.  If you want more than two locations, you need DPDT switches for the middle switches which require pairs of the Mock Relays.  This gives you the odd or even parity function, depending on how you hook it up.

Gates?  Pfui.  Relay networks are a lot more fun.

betajet
User Rank
Author
Re: Ladder logic should work
betajet   7/12/2013 6:44:45 PM
NO RATINGS
So, what does this rung do?

|---[/]---------( )---|

     /K1          K1

"Buzz, buzz", as Hamlet would say?

rjs20
User Rank
Author
Ladder logic should work
rjs20   7/12/2013 6:01:54 PM
NO RATINGS
+(supply)                 -(return)

|---[ ]----[ ]----( )----|

|     A       B      K1    |

|---[ ]---- . . .           |

|    K1  = A & B          |

|---[/]---- . . .           |

|    K1 = /(A & B)       |

|                              |

|---[ ]------------( )---|  

|     A    |           K1   |

|---[ ]---|                 |

|     B                       |

|---[ ]---- . . .           |

|    K1   = A + B        |

|---[/]---- . . .           |

|    K1   = /(A + B)    |

 

Contacts in series implement the "and" function.

Contacts in parallel implement the "or" function.

When relays are energized they close their normally-open contacts (and open their normally-closed contacts).

 

http://en.wikipedia.org/wiki/Ladder_logic

 

So, what does this rung do?

|---[/]---------( )---|

     /K1          K1

 

 

 

 

betajet
User Rank
Author
FYI
betajet   7/12/2013 5:21:36 PM
NO RATINGS
Harry Porter's Relay Computer


Awfully new relays, but we don't all have a Mock Electronics handy :-)

Max The Magnificent
User Rank
Author
Re: I'm sorry...
Max The Magnificent   7/12/2013 5:03:33 PM
@studleylee: I find this relay interesting in the mechanical implemantion.

When I was a student I'm afraid to say that I was more interested in the electronics and I paid little attention to the mechanical side of things.

As the years have gone by, I have developed a much greater appreciation for the way in which things are put together -- and I love looking at a well-made assembly like the one shown in this relay...

studleylee
User Rank
Author
Re: I'm sorry...
studleylee   7/12/2013 4:56:05 PM
I find this relay interesting in the mechanical implemantion.

The relay contacts and arm tension are adjustable. By

taking things apart you can get into the mindset of the

item's designer. My early electronics career was in repair.

I would not trade the design style inspection experience

I got from that era. You see many good and bad practices that

you can improve upon or avoid.

So I say HackAway :-) -Lee Studley

Max The Magnificent
User Rank
Author
Re: Claude Shannon explains it all to you
Max The Magnificent   7/12/2013 3:07:30 PM
NO RATINGS
@betajet: If anyone wants to cheat...

The reasers of my columns aren't like that -- these are the people who scoff ("Ha!") at instruction manuals and prefer to work it out for themselves (no matter HOW long it takes :-)

betajet
User Rank
Author
Claude Shannon explains it all to you
betajet   7/12/2013 2:48:53 PM
NO RATINGS
You can get the functionality of the relay with a 2:1 bus switch such as the Fairchild Semi NC7SB3257.  Like the relay, you get bidirectional flow between the common terminal Y and the NC/NO terminals A and B.

I remember playing with relay boxes in high school.  Lots of noise, loads of fun.  I took another look at relay logic when I studied VLSI design, since pass transistors let you do things like the controlling a single light from any number of DPDT switches instead of a bunch of TTL gates.  If anyone wants to cheat, the theory behind relay logic is contained in Claude Shannon's 1937 Master's Thesis A Symbolic Analysis of Relay and Switching Circuits, also published in a 1938 issue of Transactions of the AIEE.

 

Max The Magnificent
User Rank
Author
I'm sorry...
Max The Magnificent   7/12/2013 10:18:35 AM
NO RATINGS
I must admit to feeling bad ever since I posted this, because I have to confess to being deliberately misleading.


The reason I used quotes when talking about "input" A and "input" B and "output" Y is that the whole concept of inputs and outputs is a bit nebulous (or perhaps we should say "subjective") when it comes to working with relays.

There, you see, I'm not being too mean... I'm giving you a clue (well, a hint of a sniff of a clue LOL)

<<   <   Page 5 / 5


Most Recent Comments
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Life
Frankenstein's Fix, Teardowns, Sideshows, Design Contests, Reader Content & More
Max Maxfield

ESC Boston 2015 Sneak Peek! Embedded Systems That Glow in the Dark
Max Maxfield
Post a comment
Some time ago, I asked my mom what she knew about radiation. She replied that she didn't know much about it at all; all she did know was that she didn't want to be in the same room as ...

Chris Wiltz, Managing Editor, Design News

10 Greatest Hoaxes in the History of Engineering
Chris Wiltz, Managing Editor, Design News
5 comments
You'll probably be reading your fair share of fake headlines on April 1, but phony tech news - both for scams and humor - aren't anything new. The history of science and technology is rife ...

Bernard Cole

A Book For All Reasons
Bernard Cole
3 comments
Robert Oshana's recent book "Software Engineering for Embedded Systems (Newnes/Elsevier)," written and edited with Mark Kraeling, is a 'book for all reasons.' At almost 1,200 pages, it ...

latest comment mjlinden Thanks for your input!
Martin Rowe

Leonard Nimoy, We'll Miss you
Martin Rowe
5 comments
Like many of you, I was saddened to hear the news of Leonard Nimoy's death. His Star Trek character Mr. Spock was an inspiration to many of us who entered technical fields.

Special Video Section
After a four-year absence, Infineon returns to Mobile World ...
A laptop’s 65-watt adapter can be made 6 times smaller and ...
An industry network should have device and data security at ...
The LTC2975 is a four-channel PMBus Power System Manager ...
In this video, a new high speed CMOS output comparator ...
The LT8640 is a 42V, 5A synchronous step-down regulator ...
The LTC2000 high-speed DAC has low noise and excellent ...
How do you protect the load and ensure output continues to ...
General-purpose DACs have applications in instrumentation, ...
Linear Technology demonstrates its latest measurement ...
10:29
Demos from Maxim Integrated at Electronica 2014 show ...
Bosch CEO Stefan Finkbeiner shows off latest combo and ...
STMicroelectronics demoed this simple gesture control ...
Keysight shows you what signals lurk in real-time at 510MHz ...
TE Connectivity's clear-plastic, full-size model car shows ...
Why culture makes Linear Tech a winner.
Recently formed Architects of Modern Power consortium ...
Specially modified Corvette C7 Stingray responds to ex Indy ...
Avago’s ACPL-K30T is the first solid-state driver qualified ...
NXP launches its line of multi-gate, multifunction, ...
Radio
LATEST ARCHIVED BROADCAST
EE Times Senior Technical Editor Martin Rowe will interview EMC engineer Kenneth Wyatt.
Flash Poll