Doing MIDI With Discrete Logic Is Neat, If Not Particularly Useful

MIDI is normally baked into the chipset of a synthesizer, or something you use a microcontroller to handle. But that’s not the only way to speak the language! [Kevin] decided to have some fun doing MIDI with discrete logic instead, with some pretty neat results.

[Kevin] had previously built a control voltage step sequencer called the Baby8, which relied on 4017 counter ICs. He later realized he could repurpose three of his old Baby8 PCBs to create something that could generate MIDI using nothing more than discrete logic. The stack of three boards generate a simple MIDI message—in this case, a two-byte Program Change command. At 8 bits per byte, plus a start and stop bit, that comes out to 20 bits in total. The bits to be sent are configured via the switches on the PCBs, and clocked out through the counter ICs via a clock running at the MIDI baud rate of 31,250 Hz.

Obviously, it’s not very practical to code your MIDI commands manually via DIP switches and then clock them out in this fashion. But—it does work, and you can do it! If you wanted to build an old-school logic circuit that just spits out simple short MIDI commands, this is one way to go about it.

We’ve seen [Kevin]’s work before, too, like this neat musical rotary phone build.

Continue reading “Doing MIDI With Discrete Logic Is Neat, If Not Particularly Useful”

A Simple EMF Detector And Electroscope You Can Make From Junk Box Parts

2N2222 devices used, but practically any junkbox NPN will do

Electromagnetic fields are everywhere, all around us. Some are generated naturally, but in vast majority of cases, it’s we humans that are generating them with artificial, electronic means. Everything from your mobile phone to the toaster will emit some sort of signal, be it intentional or not. So we think it only befits the general electronics-orientated hacker to have some way of sniffing around for these signals, so here is [Mirko Pavleski] with his take on a very simple pair of instruments to detect both static and dynamic electromagnetic fields.

CMOS clock input connected directly to the antenna. Warning! ESD damage risk!

The first unit (a simple electroscope) uses a cascade of 2N2222 NPN bipolar transistors configured to give a high current gain, so any charge near the antenna will result in increasing currents in subsequent stages, finally illuminating the LED. Simple stuff.

The second unit relies on the extremely high input impedance of the old-school CMOS 4017 decade counter, which is likely of the order of 100 MΩ or even more. Normally you would not leave such a CMOS input floating, or even connect it with too long a PCB trace — lest it pick up a stray signal —but for detecting alternating EM fields, this appears to work just fine. Configured as a simple divide-by-ten, when presenting 50 Hz AC, the LED can be seen to flash at 5 Hz.

Simple stuff, and this scribe has all those exact parts in the junk box, so will be constructing these shortly!

We’ve covered electroscopes for years, here’s a modern twist on a famous classic experiment, and some hair-raising experiments to get you started.

Continue reading “A Simple EMF Detector And Electroscope You Can Make From Junk Box Parts”

Why Some Chips Have Inconvenient Pinouts

If you’ve ever handled a chip with a really strange or highly inconvenient pinout and suspected that the reason had something to do with the inner workings, you may be interested to see [electronupdate]’s analysis of why the 4017 Decade Counter IC has such a weirdly nonintuitive pinout. It peeks into an IC design dating from the 1970s to see an example of the kind of design issues that can affect physical layout.

Inside the 4017. Want to make sense of how lines and shapes on a silicon wafer make an IC work? With the right teachers, it’s simple.

In the case of the 4017, once decapped and the inner workings exposed, things became more clear. Inside the chip are a bunch of flip-flops and NAND gates, laid out in a single layer. Some of the outputs (outputs 5 and 1 for example, physically on pins 1 and 2 respectively) share the same flip-flop.

The original design placed the elements in a way that made the most logical sense for routing and layout, which resulted in nice and tidy inner workings but an apparently illogical pinout. A lot of this is probably feeling familiar to anyone who has designed and routed a single-layer PCB, where being limited to one layer makes it important to get the most connections as directly near one another as possible.

Chip design has of course come a long way since the 70s, but there is forever some level of trade-off to be made between outward tidiness and inner design harmony. The next time you’re looking at a part with an apparently illogical pinout, there’s a fair chance it makes far more sense on the inside.

If any of you are interested in decapping ICs yourselves to see what’s inside, we saw that it’s possible with commonly available chemicals, not just nasty ones.

Continue reading “Why Some Chips Have Inconvenient Pinouts”

Tricking A Vintage Clock Chip Into Working On 50-Hz Power

Thanks to microcontrollers, RTC modules, and a plethora of cheap and interesting display options, digital clock projects have become pretty easy. Choose to base a clock build around a chip sporting a date code from the late 70s, though, and your build is bound to be more than run-of-the-mill.

This is the boat that [Fran Blanche] finds herself in with one of her ongoing projects. The chip in question is a Mostek MK50250 digital alarm clock chip, and her first hurdle was find a way to run the clock on 50 Hertz with North American 60-Hertz power. The reason for this is a lesson in the compromises engineers sometimes have to make during the design process, and how that sometimes leads to false assumptions. It seems that the Mostek designers assumed that a 24-hour display would only ever be needed in locales where the line frequency is 50 Hz. [Fran], however, wants military time at 60 Hz, so she came up with a circuit to fool the chip. It uses a 4017 decade counter to divide the 60-Hz signal by 10, and uses the 6-Hz output to turn on a transistor that pulls the 60-Hz output low for one pulse. The result is one dropped pulse out of every six, which gives the Mostek the 50-Hz signal it needs. Sure, the pulse chain is asymmetric, but the chip won’t care, and [Fran] gets the clock she wants. Pretty clever.

[Fran] has been teasing this clock build for a while, and we’re keen to see what it looks like. We hope she’ll be using these outsized not-quite-a-light-pipe LED displays or something similar.

Continue reading “Tricking A Vintage Clock Chip Into Working On 50-Hz Power”

Using A Decade Counter To Make LEDs Flash

[Andrea De Napoli] created a LED display consisting of a half-dozen LEDs connected to the inverted signals of a CD4017 decade counter, giving the effect that a dark LED is running back and forth. The CD4017 works by activating 10 outputs, one at a time, as controlled by a clock signal sent to pin 14.

The first and last LEDs are lit by outputs 0 and 5 with the help of a PNP transistor and a 12K resistor. The middle four LEDs are switched by two outputs each and go dark when one of them goes high. [Andrea] really delves into the CD4017 and he shares a lot of detail in the project page.

Hackaday publishes a lot of posts about obscure ICs: Project 54/74 aims to create a database of die images of 5400 and 7400 series ICs. In a remix of a classic, the Baby 10 uses a 4017 to make a music sequencer. Continue reading “Using A Decade Counter To Make LEDs Flash”

Oh Baby, Baby10 – Build A Classic Analog Music Sequencer

Recently I’ve been learning more about classic analog music synthesizers and sequencers. This has led me to the Baby10, a classic and simple analog sequencer design. In this article I’ll introduce its basic operation, and the builds of some awesome hackers based on this design.

Sequencers produce, a sequence of varying voltages. These control voltages (CV) can then be use to control other components. Often this is a simple tone generator. While the concept is simple, it can produce awesome results:

A basic sequencer is a great beginners project. It’s easy to understand the basic operation of the circuit and produces a satisfyingly entertaining result. The Baby 10 was originally published in a column called “Captain’s Analog”, but has now been widely shared online.

baby10
The original Baby10 article.

The circuit uses the 4017, a simple CMOS decade counter. The 4017 takes an input clock signal then sequentially outputs a high pulse on each of 10 output pins. As such, the 4017 does almost everything we need from a sequencer in a single IC! However, we want our sequencer to output a varying voltage which we can then use to generate differing tones.

To accomplish this variable resistors are connected to each of the output pins. A diode in series with the variable resistor stops the outputs fighting against each other (in layman’s terms).

To make the sequencer more visually attractive (and give some feedback) LEDs are often also added to the output of the 4017. A complete Baby 10 sequencer is shown in the schematic below. The original circuit used 1N917s, these are no longer available but the part has been replaced by the 1N4148.

Continue reading “Oh Baby, Baby10 – Build A Classic Analog Music Sequencer”

Diode Steering And Counting With A 555

While you’re not likely to see this technique used very much today, there’s a lot you can do with a 555, some logic chips, and a handful of diodes. [Fran] is here with a great example of using these simple parts to build a circuit that counts to zero, using parts you can probably find under your workbench.

[Fran] was inspired to build this diode counter from one of [Dave]’s Mailbags and [Colin Mitchell]’s 555 circuit book. The 555 is the standard component found in every parts drawer, but since we have tiny microcontrollers that cost the same as a 555, we’re not seeing the artistry of a simple timer chip and a few logic chips much these days.

This circuit began with a 555 attached to a 4017B decade counter. Simply by tying a few LEDs to the output of the 4017, [Fran] made a bunch of LEDs light up in sequence. Cool, but nothing unexpected. The real trick uses a few diodes and six LEDs to build a scanner – a line of LEDs that will blink from left to right, then right to left. Impressive, and with a little more circuitry it’s a Larson Scanner, as seen in Battlestar Galactica and Knight Rider.

The real trick for this technique comes when [Fran] pulls out a piece of protoboard, several dozen diodes, and seven old transistors to have a seven-segment display count from zero to nine. The 4017 simply counts out on ten pins, and each of these pins is wired to a bunch of diodes for each segment in the display. Add in a few resistors and a transistor, and [Fran] replicated what’s inside a seven-segment driver with discrete parts.

If counting to zero isn’t enough proof that you can do a whole lot with some diodes and logic chips, how about programming an Atari 2600 with one?

Video below.

Continue reading “Diode Steering And Counting With A 555”