Blacksmith Forge Made From The Bathroom Sink

The sweltering heat had finally moved on and Giant Tick season was coming to a close (not kidding, they are HUGE here), when I decided to fire up my hacked together blacksmith forge made out of an old bathroom sink and aquarium stand.

In the age-old formula I needed to supply an air source to a fuel to create enough heat to make iron malleable. I got the idea that this particular bathroom sink might be a good candidate for a fire bowl after I banged my shin with it and then cursed at it. It was clearly made of cast iron and as proof it was clearly unfazed by my tirade of words which I hope my son has learned from the Internet and not from listening to me remodel the bathroom.

Continue reading “Blacksmith Forge Made From The Bathroom Sink”

Programmable Logic: Build Yourself A CPLD Module

A Complex Programmable Logic Device (CPLD) is a great piece of hardware to have in your repertoire. As its name implies, you can program these chips to serve the logic functions you need. This might be replacing an obsolete chip, or maybe just a way to learn and try different techniques. What better way to learn than to get your hands on a CPLD and give it a try?

I created a CPLD module with the intent of being able to plug it into lots of things including solderless breadboards, but I screwed up. It seems that the plugin space available on a solderless breadboard is 1.1”, I had made the footprint 1” wide leaving no room for a row of wires on both sides. Duh.

But let me back up and show more about what I’m doing , I wanted to make a programmable piece of logic that could be built as a kit one could easily solder at home, could be programmed in-circuit, and could work at 3.3 or 5 volts.

Image5bTo implement an easily solderable kit I went with an older CPLD part that also has 3.3v and 5v versions that will maintain its programming regardless of power. The logic itself is a CPLD IC from the Altera Max family with two versions that fit the board with either 32 or 64 macrocells. A macrocell is the basic logic building block and it is programmed with logic “terms” and then interconnected to other macrocells through a programmable interconnect.

Continue reading “Programmable Logic: Build Yourself A CPLD Module”

Learn And Build A High Side Switch

As electronics engineer I have a mental collection of circuits that I’ve gathered over the years, much like a mechanic collects specialized tools as they work. All engineers do this and the tools in their tool boxes usually represent their project history and breadth.

A useful circuit to have in designer’s toolbox is the “high side switch”. Like it sounds, this is a circuit that switches the “high side” or positive voltage to a load.

We usually tend to switch things to ground as seen by outputs such as an Open Collector output, the reason being that ground usually is a known entity and is usually low impedance and is at a known voltage. But there are advantages to using a high-side switch in your circuits.

Continue reading “Learn And Build A High Side Switch”

Gates To FPGAs: TTL Electrical Properties

On the path to exploring complex logic, let’s discuss the electrical properties that digital logic signals are comprised of. While there are many types of digital signals, here we are talking about the more common voltage based single-ended signals and not the dual-conductor based differential signals.

Simulated "Real Life"
Single-ended Logic Signal

I think of most logic as being in one of two major divisions as far as the technology used for today’s logic: Bipolar and CMOS. Bipolar is characterized by use of (non-insulated gate) transistors and most often associated with Transistor Transistor Logic (TTL) based logic levels. As CMOS technology came of age and got faster and became able to drive higher currents it began to augment or offer an alternative to bipolar logic families. This is especially true as power supply voltages dropped and the need for low power increased. We will talk more about CMOS in the next installment.

TTL was a result of a natural progression from the earlier Resistor Transistor Logic (RTL) and Diode Transistor Logic (DTL) technologies and the standards used by early TTL became the standard for a multitude of logic families to follow.

Continue reading “Gates To FPGAs: TTL Electrical Properties”

From Gates To FPGA’s – Part 1: Basic Logic

It’s time to do a series on logic including things such as programmable logic, state machines, and the lesser known demons such as switching hazards. It is best to start at the beginning — but even experts will enjoy this refresher and might even learn a trick or two. I’ll start with logic symbols, alternate symbols, small Boolean truth tables and some oddball things that we can do with basic logic. The narrative version is found in the video, with a full reference laid out in the rest of this post.

Invert

1The most simple piece of logic is inversion; making a high change to low or a low change to high. Shown are a couple of ways to write an inversion including the ubiquitous “bubble” that we can apply almost anywhere to imply an inversion or a “True Low”. If it was a one it is now a zero, where it was a low it is now a high, and where it was true it is now untrue.

AND

2Moving on to the AND gate we see a simple truth table, also known as a Boolean Table, where it describes the function of “A AND B”. This is also our first opportunity to see the application of an alternate symbol. In this case a “low OR a low yields a low”

NAND

3Most if not all of the standard logic blocks come in an inverted form also such as the NAND gate shown here. The ability to invert logic functions is so useful in real life that I probably used at least three times the number of NAND gates as regular AND gates when doing medium or larger system design. The useful inversion can occur as spares or in line with the logic.

Continue reading “From Gates To FPGA’s – Part 1: Basic Logic”

Weekend Proves Hardware Wins Hackathons

Teams hacking on hardware won big this weekend in New York. There were ten teams that answered Hackaday’s call as we hosted the first ever hardware hackathon at the Tech Crunch Disrupt NYC. These teams were thrown into the mix with all of the software hackers TC was hosting and rose to the top. Eight out of our ten teams won!

As we suspected, having something physical to show off is a huge bonus compared to those showing apps and webpages alone. Recipe for awesome: Mix in the huge talent pool brought by the hardware hackers participating, then season with a dash of experience from mentors like [Kenji Larson], [Johngineer], [Bil Herd], [Chris Gammell], and many more.

Out of over 100 teams, first runner-up went to PicoRico, which built a data collection system for the suspension of a mountain bike. The Twillio prize went to Stove Top Sensor for Paranoid, Stubburn Older Parents which adds cellphone and web connectivity to the stove, letting you check if you remembered to turn off the burns. The charismatic duo of fifteen-year-olds [Kristopher] and [Ilan] stole the show with their demonstration of Follow Plants which gives your produce a social media presence which you can then follow.

We recorded video and got the gritty details from everyone building hardware during the 20-hour frenzy. We’ll be sharing those stories throughout the week so make sure to check back!

VCF East: [Bil Herd] And System Architecture

Last Friday the Vintage Computer Festival was filled up with more than a dozen talks, too many for any one person to attend. We did, however, check out [Bil Herd]’s talk on system architecture, or as he likes to call it, the art and science of performance through balance. That’s an hour and fifteen minute talk there; coffee and popcorn protocols apply.

The main focus of this talk is how to design a system from the ground up, without any assumed hardware, or any specific peripherals. It all starts out with a CPU, some memory (it doesn’t matter which type), and some I/O. That’s all you need, whether you’re designing a microwave oven or a supercomputer.

The CPU for a system can be anything from a 6502 for something simple, a vector processor for doing loads of math, or have a RISC, streaming, pipelined, SIMD architecture. This choice will influence the decision of what kind of memory to use, whether it’s static or dynamic, and whether it’s big or little endian. Yes, even [Bil] is still trying to wrap his head around endianness.

MMUs, I/O chips, teletypes, character displays like the 6845, and the ANTIC, VIC, and GTIA make the cut before [Bil] mentions putting the entire system together. It’s not just a matter of connecting address and data pins and seeing the entire system run. There’s interrupts, RTCs, bus arbitration, DTACK, RAS, and CAS to take care of that. That will take several more talks to cover, but you can see the one last Friday below.

Continue reading “VCF East: [Bil Herd] And System Architecture”