ZX81 Revival

In a fit of nostalgia I unearthed some of my old childhood computers….

One of the most memorable/important to me was my ZX81..

The ZX81 with RAM pack
The ZX81 with RAM pack

It wasn’t the first computer I programmed, but it was the first I had a real attachment to, I’d been excited about it’s launch, I’d got the kit for my birthday and soldered it myself in my room. I set it up with a little black and white television, and I spent hours typing in and running programs on it.

The case wasn’t screwed together, so I was expecting the worst…. opening it up I saw the keyboard ribbon was dead, I recall “back then” I’d built, plugged in and used a homemade mechanical keyboard. Oh and the Z80 was AWOL🤦, clearly that had been scavenged for some other project a long time ago….

A dead flex strip
A dead flex strip

I considered a repair on the flex, but then discovered it’s possible to buy a brand new keyboard membrane. I pondered a running repair but thought better of it looking at the rest of the membrane, “it’s dead jim”, and ordered a “new old stock” NEC Z80C…

Firstly… can we appreciate and savor the introduction to BASIC and the ‘Learning Lab’ package…

Price list
Price list

While I wait for my parts to arrive I decide to pop open the PSU to check it out… I’m not dumb enough (any more) to power up old unused mains devices without checking them first… (says the person who got a 240v shock off an old oven I was checking/fixing for an elderly relative that should have been turned off, only a few weeks ago)

Opening up there’s the distinctive smell of magic smoke… and whoa… at some point “bad things” happened here.

The diodes are blown and the PCB is fried.

Burn baby
Burn baby
burn
burn

This is such an old primitive PSU I’m not going to use it… but I decide it would be nice to repair this anyway and keep the original PSU as a curiosity…. It’s such a simple board. I can make one of those, and I have replacement diodes. Time to get the acid out!!! I haven’t done this for YEARS.

The patient
The patient
Marking the pads
Marking the pads
Drawing the traces
Drawing the traces
Redrew after smudging and dissolved in acid
Redrew after smudging and dissolved in acid
Spot the mistake between this and the first one
Spot the mistake between this and the first one
The mistake
The mistake
Ready hmm
Ready hmm
Spotted the mistake only after assembling
Spotted the mistake only after assembling
Fixed the mistake but forgot to take a picture!
Fixed the mistake but forgot to take a picture!

(yes there’s actually a mistake on the circuit there I made when I redrew a smudge! I had to fix the board before getting it working and forgot to take a picture of the fixed one)

After assembling it still didn’t work… ah there was a thermal fuse on the transformer winding, replacing that and checking the voltages and IT LIVES!

No smoke
No smoke

Reassembled
Reassembled

After installing the replacement keyboard and new/old Z80 chip it’s time to fire it up… somehow. I don’t have an analog RF TV to try it with. I contemplate hunting down an old TV from somewhere, but can’t bring myself to convince myself I need another bit of ancient kit. I attempt a basic “composite” output modification with a transistor… but this is the very early original “Issue One” ZX81 which had a known “bug” at the time in the video ULA

Issue one
Issue one

Nineteen eighty
Nineteen eighty

Square waves
Square waves

Back porch
Back porch

I suspect this is the issue, but confirm it with the oscilloscope, there’s no “back porch” in the video signal. The only screen I have that will display the image is my main 4K screen, which isn’t ideal for tinkering… I mean the 4k screen does sync to a perfect crisp image though, which is impressive for the video processing circuitry.

There are a few options to consider. It’s possible to get a modification board for the UHF modulator that will create a reasonable composite signal using a 555 timer. I also see there are options for replacing the original ULA with an FPGA and consider it. But that just feels a bit too intrusive. I don’t think the basic modulator replacement is excessive, after all analog UHF is basically obsolete now, and the replacement is just a few components that fit into the same space, but adding an FPGA to emulate the ULA feels wrong somehow…. I decide to stick to changing the modulator so I can output composite video from the rear socket.

The original board
The original board

Replaced modulator
Replaced modulator

The only other fix I decide to carry out is to replace the old power 7805 linear regulator transistor with a modern replacement switched regulator. Again this doesn’t require significant changes, it’s pin compatible and fits neatly into the same space, but means we have a much cleaner/safer power line.

Modifications
Modifications

Firing up the modulator replacement needs a little tweaking to create a signal I can view… finally I can see the image using a basic video capture box.