6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 4:32 am

All times are UTC




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Tue Apr 30, 2024 8:02 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
Martin_H wrote:
BigDumbDinosaur wrote:
On close inspection, it appears he used standard “cube” relays, which are relatively slow, as relays go.  If I were ever to become sufficiently deranged to undertake such a project, I would use cradle-style relays, which are three-to-four times faster (and more expensive).

Relays seem to have more varieties than transistors. They differ in voltages, number of contacts, AC versus DC, and now they even have different switching speeds!?

What I want are decorative relays with clear cases that make noise as they switch! Plus some blinkenlights.

The P&B R10 and Panasonic relays I earlier referenced have clear cases.  Individually, neither is noisy, but a panel full of them, especially if said panel is made of sheet metal, should make quite a bit of noise while computing.  Of the two types, the Panasonic relays are faster and consume less coil power.  Also, their pin layout is conducive to use on printed circuit boards—the R10’s pin layout is awkward.

DC relays with integral LED indicators are available, but tend to be overpriced.  If I were building this contraption, I’d use regular LEDs.

Quote:
At the suggestion of Dr. Matt Regan I took a look at Dieter Mueller's relay ALU which is here: http://www.6502.org/users/dieter/a3/a3_4.htm
It is a marvel of economical design.

Speaking of relay circuits, most complex designs are drawn using detached contact notation.  I gave an example of that in the relay flip-flop circuit I earlier posted.  Dieter’s drawing is in attached contact notation, which can quickly become unwieldy as complexity increases.

The style I use parallels electromechanical telephone PABX practice, which, in turn, apparently borrowed its style from late 19th century railroad signaling circuits.  In PABX notation, a relay coil is depicted as a rectangle with a fraction next to it and an integer within the rectangle boundaries.  The integer is the cold DC resistance of the coil.  The fraction’s numerator is the relay’s name, and the corresponding denominator is the number of active (not total) contact sets in the relay.

Individual contact sets are notated with the relay’s name and a number.  So a 4-Form-C relay designated “ABC/3” would have three active contact sets named “ABC1”, “ABC2” and “ABC3”.  The fourth contact set would not be connected to anything.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 5:45 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
I've noodled ideas for relay logic in the past (I was trained by the BBC, and an awful lot of signal switching (1970s) was done with 48v relays) and I see that relays in small bulk are available for around 20 cents each for SPST types. It's always a trade-off between voltage and current - most seem to be around the same power (for similar types) so I'd probably work with 12v types to keep the current manageable.

A little lateral thought might tempt you to make a clocked system which has a higher voltage at the start of the clock pulse and then a lower holding voltage, to save power - in many cases, the holding voltage is only about 60-70% of the pull-in voltage. Designing such a circuit might be, um, interesting...

The other main thought: do you use a single type of relay throughout (spst?) or do you experiment with dpst (or more poles) or with latching relays? Do you use a single logic 'gate' type, or do you get creative with routing voltages (and directions!)? The opportunities are endless.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 6:24 am 
Online
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
barnacle wrote:
A little lateral thought might tempt you to make a clocked system which has a higher voltage at the start of the clock pulse and then a lower holding voltage, to save power - in many cases, the holding voltage is only about 60-70% of the pull-in voltage. Designing such a circuit might be, um, interesting...

In our aircraft intercoms, I always put a resistor in series with the coil, and a capacitor across the resistor, so the relay coil would get the full voltage for the pull-in, tapering off to just a holding voltage after that.  It might not be appropriate though for a relay computer where the cycle times might not be much longer than time needed to pull the armature in, let it settle, and release it again.  (Remember that the capacitor also needs time to discharge through the resistor after you release the relay; otherwise it won't allow a full-strength pulse for the next pull-in.)  Sure, you could make a more-complex circuit to pulse the armature voltage; but then what's the point in making a relay computer.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 7:11 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
Yes, that's always the trade-off - simplicity against efficiency.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 1:44 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
barnacle wrote:
... I see that relays in small bulk are available for around 20 cents each for SPST types.

Do you have a link? The cheapest I have seen is $0.99. I have enough for this project, but if it goes well I might do something crazy (e.g. The world's worst math coprocessor for the 6502). Even a modest decrease in cost would make it more approachable.

barnacle wrote:
The other main thought: do you use a single type of relay throughout (spst?) or do you experiment with dpst (or more poles) or with latching relays? Do you use a single logic 'gate' type, or do you get creative with routing voltages (and directions!)? The opportunities are endless.

Most of the relay projects I have seen online standardize on a single relay to ease PCB design and construction. That way you don't get confused and wire something wrong because the relay had a different pinout. Latching relays would seem a natural fit for building registers, but I haven't seen them used.

Harry Porter's machine standardized on four pole double throw relays because he could use two relays for the enable logic to control the bus. He also had a standard wiring that allowed a single relay to have multiple logic function outputs. I imagine that came in handy because sometimes it's handy to have both the AND, NOT, and OR simultaneously available.

True story. I discovered his machine because of a typo. Years ago I was trying to search for Harry Potter, and replaced a t with an r. I then spent hours studying his machine, and never redid my original search. I emailed him and he got a laugh out of it.

@Garth, wow, that capacitor coupled with a resistor is a really flexible circuit element.


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 2:34 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
Try this: https://www.lcsc.com/product-detail/Sig ... 02426.html

There are other voltages in the same series.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Wed May 01, 2024 2:55 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
@Neil, thanks. Wow, I thought I had a good price, but I could have brought over a hundred for what I paid.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2024 10:06 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
I have been reading the design documents for the Mercia computer and it is interesting. He has a diode ROM, whichever isn't too crazy. But he has two types of RAM, static RAM built from relays for page zero, and dynamic RAM using capacitors with relays to charge and read values. The later is really interesting as I have never heard of it before.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2024 10:38 pm 
Offline

Joined: Fri May 05, 2017 9:27 pm
Posts: 895

What about core memory?


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2024 10:42 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
Martin_H wrote:
I have been reading the design documents for the Mercia computer and it is interesting. He has a diode ROM, whichever isn't too crazy. But he has two types of RAM, static RAM built from relays for page zero, and dynamic RAM using capacitors with relays to charge and read values. The later is really interesting as I have never heard of it before.

I’ve not seen the schematic for the Mercia unit, but I think the capacitors may be acting as surge devices to allow the relays to be operated at reduced coil power.  Most DC relays will pull at 80 percent of nominal coil voltage, but will maintain state down to around 10 percent.  So it is possible to operate the relay through a series resistor that is the same resistance as the coil resistance, with a fairly large capacitor in parallel with the resistor.

On voltage application, the (discharged) capacitor momentarily “shorts out” the resistor, applying full voltage to the coil.  As the capacitor charges, the coil voltage decays, but stays in the range that will maintain the relay.  Continuous coil power is reduced to about 25 percent of what it would be at full voltage.

The one disadvantage of this arrangement is the maximum cycle rate of the relay is significantly reduced, since voltage must be removed long enough for the capacitor’s charge to dissipate through the resistor.  If voltage is reapplied too soon, the capacitor’s shunting effect will be insufficient and the relay may not pull.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sat May 04, 2024 1:30 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
JimBoyd wrote:

What about core memory?

Core memory is still available and the Mercia design docs say he considered it. But the circuitry requirements were too complicated.

As I understand it, core memory has a destructive read, so a write back after read is required. The process of reading and writing is also difficult because it is essentially a form of magnetic media.


Top
 Profile  
Reply with quote  
PostPosted: Tue May 07, 2024 8:47 pm 
Offline

Joined: Fri May 05, 2017 9:27 pm
Posts: 895

Although it's a form of magnetic media, there are no moving parts such as a spinning disk or rotating drum; therefore, there is no seek time.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 13, 2024 12:28 am 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
I have a prototype working on a bread board, and I have replicated some of it on a protoboard with point-to-point wiring. I know protoboard is inadequate for high-speed digital circuits, but this isn't high speed. If fact the first draft switched to fast and just made a hum instead of a clackity clack. So, I put some large capacitors across the relay coil leads which slowed the charging and discharging. This resulted in much slower switching and the sound I was looking for. But this raises two questions:

* I know capacitors have an inrush current. I haven't measured it, but is this something I should be concerned with? I have seen some schematics with a 10 ohm resistor before the capacitor, which I imagine slows the charging speed and limits the inrush current.

* I don't have any resistor to aid in discharging the capacitor across the relay coil leads. I'm just letting the nature take its course with the LC circuit. It seems to work, but is there anything I should worry about here?

* Currently I am manually generating the control signals. When I interface this to my digital logic, I intend to isolate the contraption with some transistors. Both for the current demands and any current from the relays working its way back to the inputs. But should I consider something like optical isolators to definitely keep the two circuits isolated?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 13, 2024 5:11 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
Martin_H wrote:
But this raises two questions:

* I know capacitors have an inrush current. I haven't measured it, but is this something I should be concerned with? I have seen some schematics with a 10 ohm resistor before the capacitor, which I imagine slows the charging speed and limits the inrush current.

At the instant voltage is applied to a fully-discharged capacitor, it essentially looks like a short circuit to the device that is doing the switching.  Without some series resistance to limit inrush current, you stand a good chance of ending up with stuck contacts if using a switch or another relay for control, or a semiconductor converting itself to full-time conductor.  The resistor value to use will depend on the capabilities of the device doing the switching—basic Ohm’s law calculations.

Quote:
* I don't have any resistor to aid in discharging the capacitor across the relay coil leads. I'm just letting the nature take its course with the LC circuit. It seems to work, but is there anything I should worry about here?

No.  Since it’s a DC circuit, you have a simple R-C time-constant situation, with the relay coil acting as the R.  When the capacitor voltage decays to about 10 percent of the relay’s nominal coil rating, contact transfer will occur with alacrity.

Quote:
* Currently I am manually generating the control signals. When I interface this to my digital logic, I intend to isolate the contraption with some transistors. Both for the current demands and any current from the relays working its way back to the inputs. But should I consider something like optical isolators to definitely keep the two circuits isolated?

Assuming you don’t operate the transistors outside of their recommended ratings, I see no reason to use opto-isolation.  Just keep in mind that whatever drives the transistors’ bases must supply enough current to drive the transistor into full saturation.

Also, if a transistor is going to drive a relay coil, don’t forget the flyback diode.  I recommend a 1N4001 for that job.  The instantaneous current pulse when a relay coil is de-energized can be in the hundreds of milliamps for a fraction of a second when shunted through a diode, which current level will eventually take out a low-signal diode like a 1N4148 or 1N4152.

BTW, that was three questions.  :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 13, 2024 6:29 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
@BDD, thanks for the answers, and answering the bonus question. You get extra credit for it. :)

For the resistor I will look at the datasheet and calculate a reasonable value. Update: I did the math, and it looks like 25 ohms would be a reasonable value. In another schematic I saw a 10 ohm resistor, so it sounds like I am in the ballpark. I will bread board it to verify.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: