Blog Posts

MIDI Key-Tar using Capacitive Touch Sensing

We love seeing all of the many creative projects that folks use Teensy boards for, and the plethora of musical instruments bring us particular joy. This is especially the case with ETMoody3’s capacitive touch MIDI keytar.

The birch plywood body resembles the classic 80s styling of the Yamaha SHS-10 Sholky (Shoulder Keyboard), but the underlying ideas could be applied to any form factor. Four MPR121 capacitive touch sensor breakouts on each of the four available addresses handle the 37 keys, with an ST7789 LCD and seven additional touch sensors providing the user interface. An ADS1015 ADC and simple LED/photoresistor pairing in the headstock serves as an optical pitch bend. The keys are copper foil tape, covered with vinyl. A pair of XBee radios provide wireless communication to a Teensy 3.6-powered receiver, which in turn outputs MIDI. The BOM, blueprint, and source for both the controller and receiver can be found on GitHub, including bitmap data for the adorable namesake Platypus who is depicted on the LCD rocking out with its own tiny keytar!

Model Falcon 9 Rocket

Model rockets are a great way to capture the thrill of the awe-inspiring full scale vehicles in a safe, budget-friendly form factor. But as the real thing evolves and adopts new features, enthusiasts like T-Zero Systems scale these advanced systems down to fit the miniature version,

as is the case with their 1/70th scale Falcon 9 rocket, which features real thrust vector control (TVC) like the big one.

The Teensy 3.6-powered guidance system even has aspirations to land vertically, although unfortunately the code is not available due to legal concerns. STL files and more information are available on the T-Zero Systems Patreon, however. The latest evolution of the software, which apparently borrows code from the space shuttle, can be seen in the video below.

KC4 Keyboard Controller

We’ve covered PJRC forum member CryHam’s Teensy 3.2-powered KC Keyboard Controller before, but now it’s back with a significant upgrade, in the form of the Teensy 4.0-based K.C.4 controller for matrix keyboards.

If you have an inexpensive dome-switch keyboard that lacks the features of higher-end mechanical keebs, like key mapping, layers, macros, and a screen that can run demos, games, and an RTC-backed clock…although…wait — we’re not sure we’ve seen that on any keyboard, come to think of it?! — so maybe give K.C.4 a look regardless!

Configuration starts as simply as a Teensy 4.0 and ILI9341 TFT LCD display. Adding serial EEPROM such as a 25LC256, a DS18B20 1-wire temperature sensor and 4.7k resistor, and LED/photoresistor will get you all of the bells and whistles, such as temperature graphs, and an external 5V power supply will even let you display and retain data without PC power.

A wealth of information can be found on the project page, with source and schematic available on GitHub, and various demos available on YouTube, as well as the one below.

Wefted Waveforms – Light Sculpture

What do you get when you cross a Teensy 3.6 with a Raspberry Pi 3B, 2448 RGB LEDs, a thousand pieces of origami, and a papier-mâché sculpture?

If you’re PJRC forum member beil, the answer is Wefted Waveforms, an “interdisciplinary light sculpture” completed as part of their Visual Arts degree at Queensland University of Technology in Brisbane, Australia.

The project uses gLEDiator to animate the LEDs, along with our OctoWS2811 Adaptor to wire them up. A detailed write-up can be found on the Core Electronics project site, and a rather hypnotic video of the Wefted Waveforms in action can be seen in the video below.

1970s Star Trek Game Emulation

Mike Mayfield’s 1971 Star Trek was a strategy game designed for computers with no graphical display.

While Teensy boards are more than capable of driving advanced graphical displays, PJRC forum member jim lee ported the BASIC source to Arduino with the help of Arduino forum member WildBill, and then added a GUI to provide keyboard input, and … an entire Teensy 3.2-based handheld unit for on-the-go play. The source, available on GitHub, also provides a version that runs on the Arduino IDE’s serial monitor, so that you can try it without any extra hardware.

Hand Crafted Mechanical Keyboard

A popular meme pokes fun at the DIY mechanical keyboard community by suggesting that enthusiasts must surely realize significant savings by building their own keyboards rather than purchasing a commodity preassembled unit,

whereas anyone who has ever even dipped their toe into that rabbit hole knows that this is typically far from the case. Rather than toss some keycaps, switches, a board and a case into a shopping cart and whacking them all together, however, PJRC forum user stefan.jakobsson took things to the next level with a scratch-built, Teensy LC-based 60% keeb.

We’re not sure what switches or caps are in use here, but the plate is 3d-printed, and the matrix is hand-soldered, dead bug-style, rather than using a PCB. A bespoke 1.5 steel plate forms the bottom case. Custom firmware, written using the Keyboard class, supports a standard layer plus second Fn layer, and has a simple built in debouncing handler. Source code is available in the thread, although Stefan is still working through some issues with sleep mode.

Restoring Mr. Christmas Decoration

‘Twas the night before Christmas, when all through the house, not a creature was stirring, not even a mouse – which was frustrating,

because the Mr. Christmas “The Night Before Christmas House” was supposed to be playing audio and flashing light bulbs that correspond to the story, but a previous failed repair attempt had rendered it inoperable. That is, until PJRC forum member edseitz replaced the cassette player and associated electronics with a Teensy 3.6 and Prop Shield!

The seventeen light bulbs were replaced with LEDs, and a custom class was added to simulate the warming and dimming of traditional bulbs. The Teensy’s microSD storage was ideal for .WAV files of the original cassette audio, with their playback facilitated by the Prop Sheild’s integrated 2-watt audio amp. And we heard edseitz exclaim, as he hid the wiring out of sight – “Happy Christmas to all, and to all a good night!”

XR-1 Drum Machine, Sampler, and Synthesizer

We’ve covered plenty of Teensy-powered grooveboxes on the blog here before, but this Reddit post unveiling the Audio Enjoyer XR-1 really caught our eye. If you’re looking to go DAWless, this Teensy 4.1-powered drum machine, sampler, and synthesizer looks like a great all-in-one machine.

Modeled after Roland TR-909 sequencing conventions, it has 16 banks of 16 patterns of 16 tracks, with up to 64 steps per track.

Around back are standard stereo in/out and 5-pin DIN MIDI jacks, and eight 0-10V CV/gate outputs. Mono RAW or stereo WAV samples are stored on microSD, along with project data. The unit also features a capacitive touch keyboard and hard buttons arranged in an MPC-style 4×4 grid, plus an OLED display for presenting the UI. A demonstration of the XR-1 can be seen below, and Audio Enjoyer have a signup form on their website for more info.

HP45 SMD Tape Printer

When injket printers became commercially available to the home consumer in the 90s, they seemed like a tiny revolution; gone was the dominance of the drab black and white laser, with cheap devices providing full color at a fraction of the cost.

Exploitative refill prices, evil DRM, and a transition away from paper to digital has somewhat stymied the inkjet market of late, but Dutch maker Yvo de Haas is bringing inkjets back with his Teensy 3.5-based controller for the HP-45 inkjet printhead. One application of this controller that caught our eye is an SMD tape printer that lets you mark your parts just like the big vendors.

Using custom software, the controller can manipulate each nozzle on the cartridge in order to output bitmaps. The software and firmware are available on GitHub, and the below video provides a brief glimpse of the controller in action.

MAME – Arcade Machine Emulator

Teensy forum member and M.CU.M.E retrocomputing emulator innovator Jean-Marc is back with yet another emulation project, this time in the form of a MAME (Multiple Arcade Machine Emulator) port and accompanying handheld hardware.

Memory limitations mean that games are spread across several projects, but several hundred are supported overall.

Hardware consists of a Teensy 4.0 and ILI9341 or ST7789 SPI display plus an analog thumb joystick and three buttons. While pictures show a perfboard assembly, there is a KiCad PCB file in the repo, which should facilitate reproduction of the optional I2C keyboard, itself powered by a dedicated ATmega328P.

While sound is not yet supported, and emulation is limited to fairly old hardware, it’s still pretty cool to see Konami’s 1981 hit Scramble running on a DIY handheld. Watch more classics demoed in the videos below, and grab the source and pinout/PCB on GitHub.