Thursday, May 29, 2014

Another rack completed

Initially I thought this rack would be a few potentiometers in an otherwise rather empty box, but of course it turned out to be a bit more involved...



Well, that completes all the main electronics - for the time being - special functions are next - but before that I'll do a bit of the hardware to hold the three completed racks, plus making up the bus cable interconnects and some miscellaneous wiring (e.g. the two meter outputs are buffered and will appear at BNC sockets on the rear panel...)

Saturday, May 3, 2014

Coefficient Attenuators

Allows coefficients to be set in the range -1 to +1. There are fifteen of these circuits. Each uses a 10 turn potentiometer. Based on the circuit from Ulmann's book, Fig 4.26, right.

Of course nothing being as straightforward as it seems, it turned out that there was a problem when the gain is set to zero - i.e. with the potentiometer wiper halfway along its track. Had my retrospectoscope been fully operational maybe this would have been obvious (i.e. the op amp is attempting to find difference of two large voltages - not a problem at DC, but...). At several kHz noise becomes a big problem and the output isn't zero, but a noisy, relatively large amplitude (> 100 mV) waveform. Oddly, it doesn't seem connected with the fact the potentiometers are wire wound (and hence inductive).

Apparently, making an op amp circuit with zero gain is not as easy as it sounds, at least at several kHz. After much thought and some experimentation, the problem was solved with the addition of a small amount of capacitance from the non-inverting pin to ground. It's very specific - an 82 pF plus trimmer (5 - 60 pF) in parallel does the job. Adjusting the trimmer gets the output noise right down to a few mV, with the 10 turn potentiometer set halfway.


The switching (via relays) allows the op amp's output to be sent to the panel meter with either (a) input switched to an internal reference voltage (1 V or 10 V), or (b), input from panel jack. There is an (on) off (on) momentary switch on front panel to do this, which switches the relays. One switch for each op amp. Relays needed because an (on) on (on) double pole switch seemed impossibly difficult to procure, whereas I could obtain a huge number of dpdt relays via eBay at about 20 pence each(!). 

The switching idea is taken from Jackson (Analog Computation, 1960), Fig 12-41 (c).


And here's one of the trimmers, with 82 pF capacitor behind...


Sunday, April 20, 2014

Friday, April 18, 2014

The Butterfly Effect

Integrator rack completed. Banana plugs purchased and leads made up.

And now for a first attempt at a serious bit of programming. Following in the footsteps of many others suggests solving the Lorenz equations...three coupled, first-order, nonlinear differential equations which describe the trajectory of a particle through time, originally derived by Edward N. Lorenz (1963) as a model of atmospheric convection (there's even part of MIT named after him). (It's either that or 'hello world'!)

The equations describe the evolution of the spatial variables x, y, and z, given the parameters σ, β, and ρ, through the specification of the time-derivatives of the spatial variables:

dx/dt = σ(yx)
dy/dt = x(ρ − z) − y
dz/dt = xy − βz .

Now, given I haven't built the potentiometer rack yet (it's next on my list), I am a bit limited as to parameter choice, and I can't readily use the values Mr Lorenz used (σ = 10, β = 8/3 and  ρ = 28). After some thought, I've opted for σ = 5, β = 1, and ρ = 7. These I can effect without the potentiometer rack: σ and β are integrator/summer input multiplicands and and ρ = 7 volts (which I can cook up from 2 x 3 V plus 1 V). Also, these values give a solution which (I thought) lies within +/- 10 volts, and also it's a reasonably interesting solution.

To get (minus) x we just integrate the first equation and so on. Two multipliers are used to create the xy and x(ρ − z) parts respectively, and all the bits are added together as required. Here's a sketch of my thinking:

...and here's the plugged up integrator rack:


which yields the plot, below right:


The left hand plot is taken from a very useful online resource written by Andrew Baxter:

http://highfellow.github.io/lorenz-attractor/attractor.html

for the above parameter values, the squares are 2.5 units (i.e. volts) for the left hand plot, and the oscilloscope is set at 2 V per division.

I think the discrepancy on the right side of output from the analog computer is because the thing went outside the -10 V limit on summing amplifier number 2 (this cooks up the xy − βz term). Clearly I have yet to get to grips with the mysterious business of scaling problems on the analog computer.





  

Sunday, April 6, 2014

Hooking up

In the midst of a lot of wiring...


...but eventually in a position to plug up my first program on the new front panel. This is Programming Example 8.1 from Ulmann's book Analog Computing (this is the example I used to test the integrator/summer boards back in October)...two integrators (left hand side) and one inverter (right hand side). It worked.

It really is beginning to look like an analogue computer!


Next step is to hook up the final four integrators (top left of panel)...trouble is that each integrator has a three way connector (null potentiometer), a nine way connector (toggle switch - selects INT or SUM mode), twelve banana jack connections plus three LED connections..that's a lot of soldering!

Sunday, March 30, 2014

Cable plano Cable cinta

1. Ribbon cable...makes it look almost digital!


2. To quote Wikipedia: Depending on the programming environment, zero divide may generate positive or negative infinity by the IEEE 754 floating point standard, generate an exception, generate an error message, cause the program to terminate, or result in a special not-a-number value. Or light up an LED...this is correct in this instance, since nothing is connected to the four quadrant divider's denominator jacks (violet).


(The OVR MASK switch allows the user to ignore the zero divide (and other) error conditions connected with the divider.)


Saturday, March 29, 2014

First Calculation

Integrator rack front panel in progress. Multiplier board wired up to banana sockets. And 2 x 3 = 6 apparently - or, rather, (2 x 3) / 10 = 0.6 .

Cool huh?