FPGA Metastability Solutions

Gisselquist Technology recently posted a good blog article about metastability and common solutions. If you are trying to learn FPGAs, you’ll want to read it. If you know a lot about FPGAs already, you might still pick up some interesting tidbits in the post.

Don’t let the word metastability scare you. It is just a fancy way of saying that a flip flop can go crazy if the inputs are not stable for a certain amount of time before the clock edge and remain stable for a certain amount of time after the clock edge. These times are the setup and hold times, respectively.

Normally, your design tool will warn you about possible problems if you are using a single clock. However, any time your design generates a signal with one clock and then uses it somewhere with another clock, metastability is a possible problem. Even if you only have one clock, any inputs from the outside world that don’t reference your clock — or, perhaps, any clock at all — introduce the possibility of metastability. Continue reading “FPGA Metastability Solutions”

RADAR Controlled Speakers

[Scott] had a simple problem – he was tired of leaning over his work bench to change the volume on his speakers. He desired a system that would readily allow him to switch the speakers on and off from a more comfortable distance. Not one to settle for the more conventional solutions available, [Scott] whipped up a RADAR-activated switch for his speaker system.

The build relies on a surprisingly cost-effective RADAR module available off the shelf, running in the 5.8GHz spectrum. At under $10, it’s no big deal to throw one of these into a project that requires some basic distance sensing. [Scott] decided to keep things simple – instead of going with a full-fat microcontroller to control the speakers, a 74HC590 IC was used to create a latch. Each time the RADAR module senses an object in close proximity, it toggles the state of the latch. The latch then controls a transistor that switches the power for the speakers.

Overall it’s a build that combines a modern integrated RADAR module with some very simple control logic to create a functional build. Of course, there’s so much more you can do with some 74-series logic. Video after the break.

Continue reading “RADAR Controlled Speakers”

Classic IBM TR-2 Flip-Flop Reproduction

As useful as computers are, most of them have all the design charm of a rubber doorstop. Oh, for the heady early days of computing, when vacuum tubes ruled, hardware was assembled by hand, and engineers always wore a tie.

Looking to recreate an elegant bit of computing hardware from that more civilized age, [updatebjarni] built a reproduction of a 1948 IBM TR-2 flip-flop module — 1,250 of which once formed the memory of the IBM Model 604 Calculating Punch. Admittedly more of a high-speed adding machine than a computer, the 604 is still an important piece of computing history, and [updatebjarni]’s scrap-bin reproduction of the field-replaceable module served as part of a computer history exhibit.

With a single 6J6 double triode tube nestled inside a bent aluminum frame, the goal was to reproduce the appearance of the original TR-2 module, and so the passive components wired up point-to-point style below the tube socket were chosen for their vintage look. That’s not to say the flip-flop won’t function. Although [updatebjarni] hasn’t tested it, he’s built other functional flip-flops from vintage components before, so this one should work too. Only 1,249 left to build and he’ll have enough for a working 604.

If you like this kind of build, you should probably check out some of our Vintage Computer Festival coverage. VCF East in April was a huge success, and VCF West is coming up in August in Mountain View. Hackaday will be well represented there, so stop by.

[via r/geekporn]

ENIAC: The Way We Were

When I first got interested in computers, it was all but impossible for an individual to own a computer outright. Even a “small” machine cost a fortune not to mention requiring specialized power, cooling, and maintenance. Then there started to be some rumblings of home computers (like the Mark 8 we recently saw a replica of) and the Altair 8800 burst on the scene. By today’s standards, these are hardly computers. Even an 8-bit Arduino can outperform these old machines.

As much disparity as there is between an Altair 8800 and a modern personal computer, looking even further back is fascinating. The differences between the original computers from the 1940s and anything even remotely “modern” like an Altair or a PC are astounding. If you are interested in that kind of history, you should read a paper entitled “Electronic Computing Circuits of the ENIAC” by [Arthur W. Burks].

These mid-century designers used tubes and were blazing new ground. Part of what makes the ENIAC so different is that it had a different design principle than a modern computer. It was less a general purpose stored-program computer and more of a collection of logic circuits that could be configured to solve problems — sort of a giant vacuum tube FPGA, if you will. It used some internal representations that proved to be suboptimal which also makes it seem strange. The EDSAC — a later device — was closer to what we think of as a computer. Yet the ENIAC was a major step in the direction of a practical digital computer.

Cost and Size

eniac
Programming the ENIAC in 1951 (±4 years)
[Image Source: Public Domain]
The size of ENIAC is hard to imagine. The device had about 18,000 tubes, 7,000 diodes, 70,000 resistors, 10,000 capacitors, and 6,000 switches. There were 5 million hand-soldered joints! ([Thomas Haigh] tells us that while this is widely reported, the real number was about 500,000.) Physically, it stood 10 feet tall, 3 feet deep, and 100 feet long. The tube filaments alone required 80 kW of power. Even the cooling system consumed 20 kW. In total, it took 150 kW to run the beast.

The cost of the machine was about $487,000. Almost a half-million dollars in 1946 is plenty. But that’s nearly seven million dollars in today’s money. What was worth that kind of expenditure? The military built firing tables for shell trajectories. From the [Burks] paper:

“A skilled computer with a desk machine can compute a 60-second trajectory in about twenty hours…”

Keep in mind that in 1946, a computer was a person. [Burks] goes on to say that a differential analyzer can do the same job in 15 minutes. ENIAC, on the other hand, could do it in 30 seconds and with a greater precision than the differential analyzer.

Continue reading “ENIAC: The Way We Were”

555 Teardown And Analysis

If you are even remotely interested in electronics, chances are the number ‘555’ is immediately recognizable. It is, after all, one of the most popular IC’s ever built, with billions of units sold to date. Designed way back in 1970 by Hans Camenzind, it is still widely available and frequently used for various applications. [Ken Shirriff] does a teardown and analysis of a 555 and gives us a look at the internal structure of this oldie.

A metal can package allowed him to just chop off the top and get access to the die, which was way safer and easier than to etch out the black epoxy of a DIP package. He starts by giving us a quick run down on how the chip works, showing us the two comparators, the output flip-flop and the capacitor discharge circuitry that make up most of the chip. He then puts the die under a metallurgical microscope, and starts identifying the various sections of the chip. Combining pictures of individual elements with cross-sectional diagrams, he identifies the construction of the transistors and resistors, the use of a current mirror to replace bulky resistors, and the differential pair that makes up the comparators.

He wraps it up by providing an interactive map of the die and the schematic, where you can click on various parts and the corresponding component is highlighted along with an explanation of what it does. There’s some interesting trivia about how a redesigned, improved version – the ZSCT1555 – couldn’t survive the popularity and success of the 555. He wraps it up with a useful list of notes and references. While de-capping blog posts are interesting on their own, [Ken] does a great job by giving us a detailed look at the internals.

Thanks [Vikas] for sending in this tip.

Clap On! A Breadboard

The Clapper™ is a miracle of the 1980s, turning lights and TVs on and off with the simple clap of the hands, and engraving itself into the collective human unconsciousness with a little jingle that implores – nay, commands – you to Clap On! and Clap Off! [Rutuvij] and [Ayush] bought a clap switch kit, but like so many kits, this one was impossible to understand; building the circuit was out of the question, let alone understanding the circuit. To help [Rutuvij] and [Ayush] out, [Rafale] made his own version of the circuit, and figured out a way to explain how the circuit works.

While not the most important component, the most obvious component inside a Clapper is a microphone. [Rafale] is using a small electret microphone connected to an amplifier block, in this case a single transistor.

The signal from the microphone is then sent to the part of the circuit that will turn a load on and off. For this, a bistable multivibrator was used, or as it’s called in the world of digital logic and Minecraft circuits, an S-R flip-flop. This flip-flop needs two inputs; one to store the value and another to erase the stored value. For that, it’s two more transistors. The first time the circuit senses a clap, it stores the value in the flip-flop. The next time a clap is sensed, the circuit is reset.

Output is as simple as a LED and a buzzer, but once you have that, connecting a relay is a piece of cake. That’s the complete circuit of a clapper using five transistors, something that just can’t be done with other builds centered around a 555 timer chip.

Hackaday Links: December 5, 2012

PS1 hombrew competition

code

The PlayStation Development Network is hosting a six-month long competition to develop homebrew games for the original PlayStation.We don’t get many homebrew games for old systems in our tip line, so if you’d like to show something off, send it in.

This is how you promote a kickstarter

snes

[Andy] has been working on an SNES Ethernet adapter and he’s finally got it working. Basically, it’s an ATMega644 with a Wiznet adapter connected to the second controller port. The ATMega sends… something, probably not packets… to the SNES where it is decoded with the help of some 65816 assembly on a PowerPak development cartridge. Why is he doing this? To keep track of a kickstarter project, of course.

What exactly is [Jeri] building?

jeri

[Jeri] put up an awesome tutorial going over the ins and outs of static and dynamic flip-flops. There’s a touch of historical commentary explaining why dynamic registers were used so much in the 70s and 80s before the industry switched over to static designs (transistors were big back then, and dynamic systems needed less chip area). At the end of her video, [Jeri] shows off a bucket-brigade sequencer of sort that goes through 15 unique patterns. We’re just left wondering what it’s for.

Finally, a camera for the Raspberry Pi

camera

In case you weren’t aware, the camera board for the Raspberry Pi will be released sometime early next year. Not wanting to wait a whole month and a half, [Jouni] connected a LinkSprite JPEG serial camera to his Raspberry Pi. The whole thing actually works, but [Jouni] didn’t bother posting the code. Maybe we can encourage him to do so?

Blatant advertising? Yes, but fireballs

Nintendo gave [MikenGary] a Wii U and asked them to make a film inspired by 30 years of Nintendo lore and characters. They did an awesome job thanks in no small part to Hackaday boss man [Caleb](supplied the fire), writer [Ryan] (costume construction) and a bunch of people over at the Squidfoo hackerspace.