Discrete Transistor Computer Is Not Discreet

Every few years, we hear about someone building a computer from first principles. This doesn’t mean getting a 6502 or Z80, wiring it up, and running BASIC. I’m talking about builds from the ground up, starting with logic chips or even just transistors.

[James Newman]’s 16-bit CPU built from transistors is something he’s been working on for a little under a year now, and it’s shaping up to be one of the most impressive computer builds since the days of Cray and Control Data Corporation.

The 10,000 foot view of this computer is a machine with a 16-bit data bus, a 16-bit address bus, all built out of individual circuit boards containing single OR, AND, XOR gates, decoders, multiplexers, and registers.  These modules are laid out on 2×1.5 meter frames, each of them containing a schematic of the computer printed out with a plotter. The individual circuit modules sit right on top of this schematic, and if you have enough time on your hands, you can trace out every signal in this computer.

The architecture of the computer is more or less the same as any 16-bit processor. Three are four general purpose registers, a 16 bit program counter, a stack pointer, and a status register. [James] already has an assembler and simulator, and the instruction set is more or less what you would expect from a basic microprocessor, although this thing does have division and multiplication instructions.

The first three ‘frames’ of this computer, containing the general purpose registers, the state and status registers, and the ALU, are already complete. Those circuits are mounted on towering frames made of aluminum extrusion. [James] already has 32 bytes of memory wired up, with each individual bit having its own LED. This RAM display will be used for the Game of Life simulation once everything is working.

While this build may seem utterly impractical, it’s not too different from a few notable and historical computers. The fastest computer in the world from 1964 to ’69 was built from individual transistors, and had even wider busses and more registers. The CDC6600 was capable of running at around 10MHz, many times faster than the estimated maximum speed of [James]’ computer – 25kHz. Still, building a computer on this scale is an amazing accomplishment, and something we can’t wait to see running the Game of Life.

Thanks [aleksclark], [Michael], and [wulfman] for sending this in.

Imaging And Emulating An HP-IB Disk Drive

If you look on the back of old, old test equipment, you’ll find a weird-looking connector that’s either labeled IEEE-488, GPIB, or HP-IB. It’s a very old interface designed by HP for their test equipment, and it was licensed to other manufacturers for everything from power supplies to logic analyzers. Hewlett-Packard also made computers and workstations once upon a time, and it’s no surprise this interface also made it into these boxes. They even had external hard drives that operated over the HP-IB interface.

[Chris] has a few of these old computers, and wanted to see if he could emulate one of these HP-IB hard drives. There is a project to emulate these hard drives, but the electrical connection is a bit tricky; you need an IEEE-488 card, and those really aren’t made anymore.

Nevertheless, [Chris] found an old ISA IEEE-488 last year, and installed it in the PC system he’s using for all his retro explorations. After getting the card and cable to fit in the case of his PC, [Chris] connected a real HP-IB disk to his modern computer running HPDrive, made an image, and connected an old HP 150 computer. The image was read by the HP 150, and [Chris] had a vintage computer running off an emulated drive.

A Game Pad For The Apple II

[Quinn Dunki] has been hard at work building a Teddy Top – an Apple IIc Plus modified for a road warrior. It has a 3.5 inch disk drive, runs at a blistering four megahertz, and has a beautiful integrated color LCD. It would be a shame to have such a great machine and no way to play games as they were intended, so [Quinn] set about building a game pad for her lovable Apple II.

The Apple II joystick port isn’t as simple as an Atari or Commodore joystick port. Where the bog-standard Atari joystick is basically just a bunch of switches connected to pins, the Apple II joystick is analog. Weird, and even weirder is the value of the pots in these joysticks: 150kΩ. Somehow or another, nobody makes pots in this value any more. Luckily the hardware in these joysticks is well documented, and shoehorning in modern components isn’t that bad.

The Apple joystick has a bit of circuitry – a 556 timer chip that reads the values of each pot and converts that into a stream of 0s and 1s for the Apple. The joystick [Quinn] found for her game pad is an analog thumb stick on a neat breakout board manufactured by Parallax. This analog joystick has 10kΩ pots in it, and that just won’t work with the 556 timer chip. However, since this is just resistors and a 556 chip, adjusting some of the values on the original schematics does the trick. [Quinn] added a few capacitors to her circuit, and everything worked beautifully.

With the electronics down, she turned her attention to the case for her Apple II road warrior enclosure. She recently picked up a 3D printer, which means she’s new to 3D printing. After spending a few hours designing a controller in 123D Design, she sent the files over to the printer. Warping happened. She tried an ABS slurry. The part was stuck to the bed. It took a few tries (purple glue sticks are awesome, [Quinn]), but she eventually got her plastic enclosure printed out, and the circuitry installed. The result is a portable computer, with a custom controller, playing Lode Runner. Can’t beat that.

Phonographs Through The Eye Of An Electron Microscope

Hackaday Prize judge [Ben Krasnow] has been busy lately. He’s put his scanning electron microscope (SEM) to work creating an animation of a phonograph needle playing a record. (YouTube link) This is the same 80’s SEM [Ben] hacked back in November. Unfortunately, [Ben’s]  JSM-T200 isn’t quite large enough to hold an entire 12″ LP, so he had to cut a small section of a record out. The vinyl mods weren’t done there though. SEMs need a conductive surface for imagingphono_anim_1. Vinyl is an insulator. [Ben] dealt with this by using his vacuum chamber to evaporate a thin layer of silver on the vinyl.

Just imaging the record wouldn’t be enough; [Ben] wanted an animation of a needle traveling through the record grove. He tore apart an old phonograph needle and installed it in on a copper wire in the SEM. Thanks to the dual stage setup of the JSM-T200, [Ben] was able to move the record-chip and needle independently. He could then move the record underneath the needle as if it were actually playing. [Ben] used his oscilloscope to record 60 frames, each spaced 50 microns apart. He used octave to process the data, and wound up with the awesome GIF animation you see on the left. 

pits[Ben] wasn’t done though. He checked out a few other recording formats, including CD and DVD optical media, and capacitance electronic disc, an obscure format from RCA which failed miserably in the market. The toughest challenge [Ben] faced was imaging the CD media. The familiar pits of a CD are stored on a thin aluminum layer sandwiched between the lacquer label and the plastic disc. He tried dissolving the plastic with chemicals, but enough plastic was left behind to distort the image. The solution turned out to be double-sided tape. Sticking some tape down on the CD and peeling it off cleanly removed the aluminum, and provided a sturdy substrate with which to mount the sample in the SEM.

We’re curious if stereo audio data can be extracted from the SEM images.  [Oona] managed to do this with a mono recording from a toy robot.  Who’s going to be the first one to break out the image analysis software and capture some audio from [Ben’s] images?

Continue reading “Phonographs Through The Eye Of An Electron Microscope”

A Revolutionary Input Device, 30 Years Too Late

Way before you kids had touch screens and mice, we had to walk uphill both ways to tell a computer where we were pointing at on the screen. I speak, of course, of light pens. When these photodiodes in a pen were pointed at a CRT, the display driver would tell the computer where the pen was pointing. It’s a pretty incredible video hack today, and these things were around in the 1970s. You could, of course, use a light pen with most of the old 8-bit home computers, including the Commodore 64.

[Jan] has a soft spot for the light pen on the C64. So much so he made a new input device using this tech. It’s great, and if this existed in 1985, all the cool kids would have known about it.

The build is called the LightHammer. It’s a light pen, inside the head of a plastic hammer, with a few springs, nuts, and washers to tell the computer to read the light pen input. The light pen itself is just a photodiode with a few transistors; it was a simple circuit in the 80s, and it’s a simple circuit today.

A new input device isn’t worth anything without an app to show off the tech, and [Jan] is about three steps ahead of us here. He wrote a game for this LightHammer – a digital version of Whac-A-Mole and Simon. They’re exactly what you think they are: the classic ‘repeat the computer’ and ‘murder rodents’ games.

If that’s not enough, [Jan] also built an arcade cabinet for his C64 setup, with the monitor, joysticks, a 1541, and a TV mounted in a cabinet that would look great in a bar. You can check out a video of that and the games using the LightHammer below.

Continue reading “A Revolutionary Input Device, 30 Years Too Late”

Neural Networks And MarI/O

Minecraft wizard, and record holder for the Super Mario World speedrun [SethBling] is experimenting with machine learning. He built a program that will get Mario through an entire level of Super Mario World – Donut Plains 1 – using neural networks and genetic algorithms.

A neural network simply takes an input, in this case a small graphic representing the sprites in the game it’s playing, sends that input through a series of artificial neurons, and turns that into commands for the controller. It’s an exceedingly simple neural network – the network that can get Mario through an entire level is less than a dozen neurons – but with enough training, even simple networks can accomplish very complex tasks.

To train the network, or weighting the connections between inputs, neurons, and outputs, [SethBling] is using an evolutionary algorithm. This algorithm first generates a few random neural networks, watches Mario’s progress across Donut Plains 1, and assigns a fitness value to each net. The best networks of each generation are combined, and the process continues for the next generation. It took 34 generations before MarI/O could finish the level without dying.

A few members of the Internet’s peanut gallery have pointed to a paper/YouTube video by [Tom Murphy] that generalized a completely different technique to play a whole bunch of different NES games. While both [SethBling]’s and [Tom Murphy]’s algorithms use certain variables to determine its own success, [Tom Murphy]’s technique works nearly automatically; it will play about as well as the training data it is given. [SethBling]’s algorithm requires no training data – that’s the entire point of using a genetic algorithm.

Continue reading “Neural Networks And MarI/O”

Retro Edition: The LAN Before Time

Ethernet has been around since the mid-70s, but if you think it was always Cat5 and 10BaseT, you’d be sorely mistaken. The first ethernet was built with coaxial cable, vampire taps, AUI adapters, and a whole bunch of other network hardware that will make wizened networking veterans cringe. [Matt] had heard about these weird physical layers back when he started building networks in 1997, but he had never seen one. Now it’s an ancient and forgotten footnote in the history of computer networking. Is it possible to build a Thicknet in this modern era? It turns out, yes, it’s possible. It’s not easy, though.

The network [Matt] is building is a true 10Base5, or Thicknet, network. The backbone of this network is a coaxial cable 9.5mm in diameter. [Matt] discovered that while the common belief that Thicknet used RG-8/U cable. This appears to be incorrect, as the connectors for this cable – vampire taps that pierced the insulation and shield of the cable – are designed for cable manufactured by Belden, part number 9880.

[Matt] assembled the cable, vampire taps, AUI cables, and even found a few ISA NICs that would still work with a reasonably modern computer. He even went so far as to build a USB Ethernet adapter with an AUI interface. This impossibly retro device uses a standard USB to 10BaseT Ethernet adapter, with a chip designed to convert 10BaseT to AUI hacked onto a circuit board. That in itself is an incredible piece of engineering, with a handful of power supplies to get the correct 2.5, 3.3, 5, and 12 Volts to the right places.

As far as exercises in computing history go, [Matt] is at the top of his game. In the process of building it, he also figured out why no one uses Thicknet anymore; once it’s in place, you can’t change it, the cable is big, bulky, and the connectors are terrible. Still, it’s an amazing example of how far we’ve come.