Accurately Track Your Mains Frequency

Depending upon where in the world you live, AC mains frequency is either 50Hz or 60Hz, and that frequency is maintained accurately enough over time that it can be used as a time reference for a clock. Oddly it’s rarely exactly that figure though, instead it varies slightly with load on the network and the operators will adjust it to keep a constant frequency over a longer period. These small variations in frequency can easily be measured, and [jp3141] has created a circuit that does exactly that.

It’s a surprisingly straightforward device, in which a Teensy takes its power supply from a very conventional if now a little old-school mains transformer, rectifier, and regulator. A sample of the AC from the transformer passes through a low-pass filer and a clamp, and thence to the Teensy where it is fed into one of the on-board comparators from which its period is measured using one of the timers. Even then the on-board crystal isn’t considered accurate enough, so it is in turn disciplined by a 1 pulse per second (PPS) signal from a GPS receiver.

The Teensy then reports its readings over a serial line every five seconds to a Raspberry Pi, which collates and graphs the data. In case you are wondering what the effect of mains frequency variations might be, we once covered the story of how an entire continent lost six minutes.

Illustrated Kristina with an IBM Model M keyboard floating between her hands.

Keebin’ With Kristina: The One With The Ballpoint Typewriters

So you want to minimize finger movement when you type, but don’t have three grand to drop on an old DataHand, or enough time to build the open-source lalboard? Check out these two concept keebs from [SouthPawEngineer], which only look like chord boards.

Every key on the home row is a five-way switch — like a D-pad with straight down input. [SouthPawEngineer] has them set up so that each one covers a QWERTY column. So like, for the left pinky switch, up is Q, right is A, down is Z, and left is 1. Technically, the split has 58 keys, and the uni has 56.

Both of these keebs use KB2040 boards, which are Adafruit’s answer to the keyboard-building craze of these roaring 2020s. These little boards are of course easy to program with CircuitPython, which supports KMK, an offshoot of the popular QMK. Thanks for the tip, [foamyguy]!

Continue reading “Keebin’ With Kristina: The One With The Ballpoint Typewriters”

Modern Features In Classic Radio

As consumer electronics companies chase profits on tighter and tighter margins, it seems like quality is continually harder to find for most average consumer-grade products. Luckily, we don’t have to hunt through product reviews to find well-built merchandise since we have the benefit of survivorship bias to help us identify quality products from the past that have already withstood the test of time. [Tom] has forever been fond of this particular Sony TV/radio combo from the ’70s so he finally found one and set about modernizing it in a few key ways.

Among the modifications to this 1978 Sony FX-300 include the addition of a modern color display, Bluetooth, an upgraded FM radio, and a microphone. At the center of all of this new hardware is a Teensy 4 which [Tom] has found to be quite powerful and has enough capabilities to process the audio that’s being played in order to make visual representations of the sound on the screen. He also implemented a bitcrusher filter and integrated it into the controls on the original hardware. He’s using an optimized version of this library to cram all of that processing ability into such a small chip, and the integration of all this new hardware is so polished that it looks like it could be an original Sony stereo from the modern era.

While some may complain about restomod-type builds like this, we don’t really see any need to be arbitrarily or absolutely faithful to bygone eras even if the original hardware was working properly in the first place. What works is taking the proven technology of the past and augmenting it with modern features to enjoy the best of both worlds. Much like this hi-fi stereo which blends the styles and technology of the 90s with that of the 60s in an equally impressive way.

Illustrated Kristina with an IBM Model M keyboard floating between her hands.

Keebin’ With Kristina: The One With The Cat Keyboard

Special thanks to [Maarten], who stumbled upon this old gem of a geekhack thread by [suka]. It’s essentially a show and tell of their DIY keyboard journey, complete with pictures. [suka]’s interest started with a yen for ergonomic keyboard layout alternatives. They soon found the geekhack forum and started lurking around, practicing layouts like Neo and AdNW, which [suka] still uses today.

A pair of num pads wired up to a Teensy becomes a keyboard.When it was time to stop lurking and start building something, [suka] got plenty of support from the community. They knew they wanted a split ortho with a trackpoint and plenty of thumb keys. [suka] started by building them from old Cherry keyboards, which are easier to come by in Germany.

The first build was a pair of num pads turned landscape and wired up to a Teensy, but [suka] wanted those sweet, clacky Cherry MX switches instead of MLs. So the second version used a pair of sawed-off num pads from old MX boards.

When the Truly Ergonomic came out, it got [suka] interested in one-piece splits. Plus, they were tired of carrying around a two-piece keyboard. So their next build was a sexy monoblock split with a laser-sintered case and keycaps. But that was ultimately too uncomfortable, so [suka] went back to split-splits.

Everyone takes a different path into and through this hobby, and they’re all likely to be interesting. Is yours documented somewhere? Let us know.

What Could Have Been: The Dygma Raise

I do some streaming here and there, mostly for the sense of focus I get out of being live on camera. I like to find out what my people in chat are clacking on, and one of them told me they have a staggered split called the Dygma Raise. I hadn’t heard of it before that day, but this keyboard has been around for a few years now.

This same person told me that Dygma might make an ortholinear version sometime soon, but apparently Dygma wanted it that way from the beginning. According to the timely video below sent to the tips line by [deʃhipu], Dygma’s original plan was a split ortho with few keys and presumably a layer system.

Continue reading “Keebin’ With Kristina: The One With The Cat Keyboard”

LEDs display different pitches in a sunburst pattern

Spiral Music Visualization

Displaying notes live as they are being played can be a really powerful learning tool, but it’s usually used to learn how to play a specific instrument. This take on the topic is actually a neat way to learn more about music theory — how pitches work together to build the sounds that we hear. The visual tack chosen arranges each of 12 notes into a spiral. As you continue to go up the scale through more octaves, pitches that share the same name line up into a line like a ray projecting out from the sun. So there are 12 rays for the notes in the scale: C, C#/D♭, D, D#/E♭,F, etc.

[mechatronicsguy] built it a few years back but just now got around to documenting it, and we’re sure glad he did. The layout of notes at first looks just like a colorful visualization. But as he mentions in his description, this assigns a shape to each different type of cord. A major cord will have the same shape whether it is played with C, G#, B♭, or any other note as the root. The shape simply rotates around the axis based on that root note. Higher octaves will be shown further out on the radius, but the chord shape will still be the same. Minor, augmented, even modal chords and those with added pitches all have their own unique shape on the display.

You get the best understanding of the visualization by looking at the Python-rendered version in the video below. It’s a nice touch that notes turn grey and fade away after being released so you kind of see where the current chord came from. This isn’t strictly a perk of pre-recordings. While you can feed it MIDI files, you can also play a MIDI instrument and display the visuals live on the hardware version that uses a Teensy with an audio shield.

If you’re looking for examples on how music visualizers are used to teach the instrument, look no further than this Wurlitzer note visualizer replica. Also for those who don’t know, the song being played in the hardware demo (second video below) is Beethoven’s 7th Symphony. Well worth a full listen, it’ll change your life.

Continue reading “Spiral Music Visualization”

Run UNIX On Microcontrollers With PDP-11 Emulator

C and C++ are powerful tools, but not everyone has the patience (or enough semicolons) to use them all the time. For a lot of us, the preference is for something a little higher level than C. While Python is arguably more straightforward, sometimes the best choice is to work within a full-fledged operating system, even if it’s on a microcontroller. For that [Chloe Lunn] decided to port Unix to several popular microcontrollers.

This is an implementation of the PDP-11 minicomputer running a Unix-based operating system as  an emulator. The PDP-11 was a popular minicomputer platform from the ’70s until the early 90s, which influenced a lot of computer and operating system designs in its time. [Chloe]’s emulator runs on the SAMD51, SAMD21, Teensy 4.1, and any Arduino Mega and is also easily portable to any other microcontrollers. Right now it is able to boot and run Unix but is currently missing support for some interfaces and other hardware.

[Chloe] reports that performance on some of the less-capable microcontrollers is not great, but that it does run perfectly on the Teensy and the SAMD51. This isn’t the first time that someone has felt the need to port Unix to something small; we featured a build before which uses the same PDP-11 implementation on a 32-bit STM32 microcontroller.

This is a MIDI harp that is played by waving your hands in the air over the infrared distance sensors.

Teensy MIDI Air Harp Sounds Huge

Some of the coolest sounds come from wild instruments like orchestra strings, fretless basses, and theremins — instruments that aren’t tied down by the constraints of frets and other kinds of note boundaries. [XenonJohn]’s air harp is definitely among this class of music makers, all of which require a certain level of manual finesse to play well.

Although inspired by Jean-Michel Jarre’s laser harp, there are no lasers here. This is a MIDI aetherharp, aka an air harp, and it is played by interrupting the signals from a set of eight infrared distance sensors. These sensors can be played at three different heights for a total of 24 notes, plus there’s a little joystick for doing pitch bends.

Inside the wooden enclosure of this aetherharp is a Teensy 3.5 and eight infrared distance sensors with particularly long ranges. On top is a layer of red acrylic that doesn’t affect the playability, except in bright sunlight. Although you could use most any MIDI software to produce the actual sounds, [XenonJohn] chose VMPK (Virtual MIDI Piano Keyboard). Be sure to check it out in action after the break.

Not dangerous enough for you? Here’s a laser harp that involves a Tesla coil.

Continue reading “Teensy MIDI Air Harp Sounds Huge”