Counting Transistors In The Playstation

Over in Russia there are a few people doing extremely in-depth technical teardowns, and the latest is one of the most ambitious ever seen. The PSXDEV team is tearing into the heart of the original PlayStation (Google translatrix), looking at 300,000 transistors, and re-implementing the entire console in a logic level simulator.

While the CPU in the PSX is unique to that specific piece of hardware, a lot of this custom silicon can be found in other places. The core – a RISC LSI LR33300 – is documented in a few rare tomes that are somehow available for free on the Internet. Other parts of this chip are a little stranger. There is a bizarre register that isn’t documented anywhere, a Bus Unit that handles the access between various devices and peripherals, and a motion picture decompressor.

The reverse engineering process begins by de-encapsulating the CPU, GPU, sound processing unit, and CD-ROM controller, taking very high magnification photos of the dies, and slowly mapping out the semiconductors and metals to figure out what cells do what function, how they’re connected, and what the big picture is. It’s a painstaking process that requires combing through gigabytes of die shots and apparently highlight gates, wires, and busses with MS Paint.

The end result of all this squinting at a monitor is turning tracings of chips into logic elements with Logisim. From there, the function of the CPU can be understood, studied, and yes, eventually emulated down to the gate level. It’s an astonishing undertaking, really.

If this sort of thing sounds familiar, you’re right: the same team behind PSXDEV is also responsible for a similar effort focused on the Nintendo Entertainment System. There, the CPU inside the NES – the Ricoh 2A03 – was torn down, revealing the 6502 core, APU, DMA, and all the extra bits that made this a custom chip.

Thanks [Rasz] for the tip.

Hackaday Video: Wire Wrap 101 with Bil Herd

Wire Wrap 101

You might notice that many of my writings start with “Back in the day”. Not wanting to disappoint I will say that back in the day we used to use wire wrap technology when we needed a somewhat solid, somewhat reliably assembly. Given a readable schematic a good tech could return a working or near-working unit in a day or two depending on the completeness and accuracy of the schematic.

wire-wrap2

Properly done a wire wrap assembly is capable of fairly high speed and acceptable noise when the alternative option of creating a custom PCB would take too long or not allow enough experimentation.  Wire wrap is also used in several types of production, from telco to NASA, but I am all about the engineer’s point of view on this.

My first wire wrap tool and wire wrap wire came from Radio Shack in the mid 1970’s.  I still have the wire, because frankly its kind of cheap wire and I use it when it’s the only thing I can reach quickly when I need to make a jumper on a PCB. The tool is still around also, given the fact that I can’t find it at the moment the one shown here is my new wire wrap tool which is good for low quantity wrapping, unwrapping and stripping.

ww-tool2The skinny little wrap tool is okay for hobbyist as the wraps are fine with a little practice.  But I do recommend investing in high-quality wire.  A common wire available is Kynar® coated, a fluorinated vinyl that performs well as an insulator.

Before I go too much further, here’s the video walkthrough of wire wrap, its uses, and several demonstration. But make sure you also join me after the break where I cover the rest of the information you need to start on the road to wire wrap master.

Continue reading “Wire Wrap 101”

Meme Themed Pinball Machine – Much Flipping, Y U No Win?!

Summoning 4chans, 9gags, Reddits and other denizens of easily-digested content, Liberty Games stripped apart a dilapidated “Baby Doll” pinball arcade machine and turned it into this meme-spouting monstrosity. A complete redo of the vinyl and graphics to sport dozens of familiar internet tropes was first, then they had Shapeways create internal scenery and finally some electronics were added to spice things up.

We have seen PINMAME-based digital machines but this took a different path. Pinball machines this old pre-date common transistors so they rely on electro-mechanicals for everything. This made hacking the machine challenging so the team intercepted most of the signals and tied them into a Raspberry Pi with a Pi-face interface board. A videoscreen was added to the scoreboard, triggering all manner of memey videos and sounds according to actions performed and unlocked on the screen.

If you yearn for expired pranks of years gone by and are bad at pinball, you are in luck. Losing the game gets you Rickrolled – over and over again. On the plus side, Nyan Cat rockets away to bonuses and even the Admiral himself warns you of impending danger.

We resisted the urge to write this article as a chain of one meme to the next, you will get plenty of that from the well-documented project conversion and the following video. Someone in the comments will probably make a list of all memes.

Continue reading “Meme Themed Pinball Machine – Much Flipping, Y U No Win?!”

Towards More Interesting Instant Cameras

When [Ch00f] was getting jeans rung up at Nordstroms, he noticed how fast thermal receipt printers can put an image on a piece of paper. This observation isn’t unique to the circles [Ch00f] frequents – there are a few small receipt paper printers out there that connect to the Internet, iPhones, and a whole bunch of other Kickstarter-friendly keyword devices.

Nevertheless, a device that can make a hard copy of an image quickly and cheaply isn’t something you just stop thinking about. After rolling the concept around in his head for a few years, [Ch00f] finally came up with the perfect build – a camera.

The hardware for the build is based around an STM32F4 Discovery board. It’s a bit overpowered for this sort of application, and this is one of [Ch00f]’s first adventures in ARM-land. The rest of the hardware consists of a thermal receipt printer and a JPEG camera, the latter of which replaced a cellphone CMOS camera module that was lost in a move.

A custom camera requires a custom enclosure, and for this [Ch00f] made something remarkable. The entire enclosure is CNC milled out of a beautiful piece of figured walnut. The end result looks far too good for a prototype, but it does polish up nicely with a bit of linseed oil.

Now [Ch00f] has an instant camera that takes the idea of a Polaroid and turns it into something that produces a print for tenths of a cent. There’s a time-lapse function – just a zip tie on the shutter button – filters with the help of highlighters, and the ability to record movies in flipbook format.

It’s a great project, and also something that will make for a great crowdfunding campaign. [Ch00f] has already started work on this. He already has a sleek, modern-looking website that requires far too much scrolling than should be necessary – the first step to a winning Kickstarter. [Ch00f] also learned a lot about ARMs, DMA, dithering, gamma correction, and the JPEG format, but that’s not going to get anyone to open up their wallet. You know what will? A slick video. You’ll find that below.

Continue reading “Towards More Interesting Instant Cameras”

Edge Lit Plastic Bike

Edge-Lit Clear Plastic Bike Combines Nighttime Riding Safety With Aurora Borealis Flair

Several years ago [dan] saw some plastic frame bikes designed by MIT students. Ever since he saw those bikes he thought it would be cool to make an edge-lit plastic framed bike.

The frame is made from 1/8″ and 3/8″ thick polycarbonate sheet. The parts were designed with tongue and grooves so they fit together nicely. The joints were glued to hold everything together. Holes were drilled in the edge of the plastic large enough to fit an LED. Once the LED was inserted in the hole, it was wired up and secured with hot glue. There are about 200 LEDs on the bike, powered by a constant current LED driver circuit that [dan] designed specifically for this project.

The build process was certainly not flawless. For example, the plastic holding the bottom bracket (where the crank and pedals attach) broke. This can be avoided by increasing the amount of material in that area prior to cutting out the pieces. [dan] was able to fiberglass his broken parts back together.

[dan] admits that the bike is heavy and a little wobbly, but is definitely ride-able. He did us a favor and made all his CAD files available to anyone that wants to make one themselves. If polycarbonate is too expensive for your blood, check out this bike make from cardboard.

Repairing A Router Plagued By Capacitors

[psgarcha]’s modem/router comes straight from his internet provider, is on 24/7, and is built with the cheapest components imaginable. Eventually, this will be a problem and for [psgarcha], this problem manifested itself sooner than expected. Fortunately, there was a soldering iron handy.

The problems began with a boot loop – starting the router up, watching the blinking LEDs, and watching these lights follow the same pattern forever. Initially thinking this would be a problem with the firmware, [psgarcha] did the only thing he could do – take it apart. Inside, he found some bulging capacitors. Unsheathing his iron and replacing the obviously faulty components, [psgarcha] plugged the router in and had everything work. Great. Until those caps failed again a few months later.

There was obviously something wrong with the circuit, or wrong with the environment. Figuring it was hot out anyway, [psgarcha] replaced those caps again and added a fan and a small heatsink to the largest chip on the board. This should solve any overheating problems, but the real testing must be done in summer (or putting the router in a well-insulated enclosure). It’s an easy fix, a good reminder of exactly how often caps fail, and a great example of reducing the electronic cruft building up in landfills.

SingLock

SingLock Protects Your Valuables From Shy People

Two Cornell students have designed their own multi-factor authentication system. This system uses a PIN combined with a form of voice recognition to authenticate a user. Their system is not as simple as speaking a passphrase, though. Instead, you have to sing the correct tones into the lock.

The system runs on an ATMEL MEGA1284P. The chip is not sophisticated enough to be able to easily identify actual human speech. The team decided to focus their effort on detecting pitch instead. The result is a lock that requires you to sing the perfect sequence of pitches. We would be worried about an attacker eavesdropping and attempting to sing the key themselves, but the team has a few mechanisms in place to protect against this attack. First, the system also requires a valid PIN.  An attacker can’t deduce your PIN simply by listening from around the corner. Second, the system also maintains the user’s specific voice signature.

The project page delves much more deeply into the mathematical theory behind how the system works. It’s worth a read if you are a math or audio geek. Check out the video below for a demonstration. Continue reading “SingLock Protects Your Valuables From Shy People”