Let's Design and Build a (mostly) Digital Theremin!

Posted: 10/11/2026 9:01:45 PM
JPascal

From: Berlin Germany

Joined: 4/27/2016

dewster: What am I blind to, what early decisions did I (and others) make that might be holding it back?  What's the ultimate  Theremin?  Perhaps there's no single answer, but it's likely that there are better configurations waiting to be found. Browse Art PrintsHow much expectation is driven by simple adaptation and familiarity to what's available?

That task is an approach used in the design thinking method. Your fundamental decision was to build a digital theremin and focus the human-machine interaction on the familiar way of playing. To achieve this, you aimed for absolute linearity, built most FX and other effects into the device, and added a pitch display. This concept clearly struck a chord with all the professional artists: reliable, stress-free, and offering all the possibilities of the playing style they’ve mastered so far.

The main difference to Lev is, he analyzed all possibilities essentially without reference to earlier developments; his ideas extended as far as polyphonic instruments and so on. In doing so, he had already optimized key aspects: the frequency range, the antenna shape, the length and thickness, as well as the spacing between the antennas. Even during the first performances, he experimented with influencing overtones using filters in the HF range, etc. His technique differed from that of Moog instruments in terms of heterodyne technology too, thereby laying the foundation for later developments.

Posted: 10/14/2026 10:12:49 AM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

"That task is an approach used in the design thinking method."  - JPascal

I hadn't heard of that before.  It seems to be a formalization of the iterative development process.  The hard part of development is understanding what exactly to focus the development effort on.  For a musical instrument, it's my strong belief that you have to play the thing yourself to fully understand what is going on.  This dramatically shrinks the feedback loop, but it also introduces an element of subjectivity that is difficult, if not impossible, to combat.

"Your fundamental decision was to build a digital theremin and focus the human-machine interaction on the familiar way of playing. To achieve this, you aimed for absolute linearity, built most FX and other effects into the device, and added a pitch display. This concept clearly struck a chord with all the professional artists: reliable, stress-free, and offering all the possibilities of the playing style they’ve mastered so far."

Is there any such thing as a stress-free Theremin? :-)  Using a sketchily grounded bag of water (human body) to induce tiny changes in capacitance for the control of arguably the most discerning of human senses (pitch) on an orchestral stage facing thousands isn't exactly a confidence inspiring scenario!  Though I suppose everything is relative...

"The main difference to Lev is, he analyzed all possibilities essentially without reference to earlier developments; his ideas extended as far as polyphonic instruments and so on. In doing so, he had already optimized key aspects: the frequency range, the antenna shape, the length and thickness, as well as the spacing between the antennas. Even during the first performances, he experimented with influencing overtones using filters in the HF range, etc. His technique differed from that of Moog instruments in terms of heterodyne technology too, thereby laying the foundation for later developments."

Did Theremin's heterodying method differ all that much from Moog's?  The EPro uses digital dividers and XOR gates, but Bob's other designs use diodes and such for the non-linear mixing.

Electronic musical instruments tend to have numerous degrees of design freedom, and this digital instrument has even more over the analog variety.  It's this space that I feel could benefit from further exploration.  But if one ends up with something fundamentally different looking and feeling to play, what are the ramifications?  Players and audiences at a minimum expect rods and loops, so there's understandably strong resistance to changing these features, and a digital instrument fundamentally benefits from plates (increased SNR).

Posted: 10/14/2026 10:38:23 AM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

PCB Logo Plates

The logo plates from JLCPCB arrived yesterday:

I was afraid that the insulating ring around the mounting holes would show up on the finished design, but I can't see them.  They've since been removed from the KiCAD source file, which was slightly tricky, as KiCAD is all about electrical connectivity.  

The printing is on both the front an the back, and there are minor cosmetic difference here.  One side has three small bumps in exactly the same places on all plates - it's curious, and I would obviously prefer they not be there, but they're not super obvious.  Both sides have small bulging around the mounting holes.  Looking closely, it's clear that the white silkscreen is printed via horizontal lines.  The solder mask is somewhere between gloss and flat.  Anyway, good enough for government work!

Believe it or not, the logo plate is the most difficult 3D print for the old kit, with spray painting and sanding following, so this is a welcome relief!  I can go ahead and order the main control panel and antenna plates now, though I wish I knew how to ensure that the top side wouldn't be the one that has those little bumps.

[EDIT] Here are the bumps (the image has been edited to make them more obvious, so the logo looks weird):

Posted: 10/30/2026 7:20:48 PM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

Testing Testing...

I've been working on and off for a while now on improving the D-Lev kit.  I got a set of PWBs from JLCPCB a week or so ago, and so far everything seems to be OK, though I haven't tested the AFEs yet.  I've switched to surface mount components installed by JLCPCB, so the soldering has mostly been reduced to all of the remaining through-hole parts and connectors, of which there are a fair amount.  However, the tuner and encoder boards plug directly into the main board now so I don't have to fart around with cabling there.  A major goal of the kit rework was to reduce the required manual labor and cosmetic 3D printing, and I believe that's been achieved.  The remaining 3D printing is for the coils, which will be significantly larger and more time consuming to wind, though I don't mind this so much because the field coils are the beating heart of the Theremin.

Anyway, the 2x8 IDC expansion port has always been a bit awkward to use.  With the new kit, the functionality is separated into to two 2x5 pin IDC connectors.  One for the remote control footswitch / push buttons, and the other for SPDIF, MIDI, UART, and power/ground.  Making a new test harness for the latter was easy: just a bunch of wires connected to the IDC connector ribbon cable.  For the former I designed a test jig:

While designing it I realized I was making a generic project box, so that got spun off into its own thing as a separate file, which was then called in the jig file.  It's so nice to be able to 3D print exactly what you need and have it be totally custom!  I used 4 push buttons from the junk box, along with a 5mm red LED, some ribbon cable, and a 2x5 IDC connector.  Buttons from left to right: Mute (& mute LED), ACAL, preset down, preset up.  I plugged it into corresponding expansion port connector on the new kit and everything tested AOK.  Of course, I'll be able to use this jig for testing production units too.

Once I receive the remaining parts in the post I'll post some pictures of the new kit.

[EDIT] While using the test jig, I realized the mute LED really kinda corresponds to both the mute and ACAL pushbuttons (since ACAL initiates a temporary mute), which gave the green light to placing the LED between them, which allowed the box to shrink some.  I couldn't help myself (anything to postpone real work):

Posted: 11/1/2026 11:06:03 AM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

Dongle Voltage!

I ordered a few bare dongles from Amazon that have the latest trendy USB C connection and use the CH340N IC:

  https://www.amazon.com/dp/B0GL2GBT1G

Testing them on the bench, I noticed the serial connection was operating at 5V - but the FPGA I/O is 3.3V!  There's a series resistor on the D-Lev main board, so it's probably OK but not ideal.  Looking at the datasheet, the I/O operates at whatever voltage you power the CH340N with, and USB is 5V.  I also saw weird random TX events happening here and there, like several times per minute, presumably coming from my Linux system - which is probably not OK.

So I'm sticking with dongles that use the CP2102 IC, which has it's own 3.3V regulator driving the internals and I/O.  I've given up on FTDI and Prolific and their attendant turf wars - lots of drama over jellybean parts.

Posted: 11/1/2026 3:49:17 PM
ILYA

From: Theremin Motherland

Joined: 11/13/2005

Really, are the FPGA I/O not 5V tolerant?

Even if they are not, a series resistor of approximately 1 k performs well. I consistently implement such a resistor, even between 5V-to-5V devices, as it offers additional ESD protection.

Posted: 11/1/2026 4:40:56 PM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

"Really, are the FPGA I/O not 5V tolerant?"  - ILYA

From the Cyclone 4 datasheet, 4.2V is the absolute maximum input voltage.  The I/O bank voltage supply max is 3.475V.  5V tolerance disappeared from FPGAs long ago.  In this day and age, we're lucky that they can handle 3.3V logic levels!

"Even if they are not, a series resistor of approximately 1 k performs well. I consistently implement such a resistor, even between 5V-to-5V devices, as it offers additional ESD protection."

I do the same, there are 1k resistors (and now ESD diodes) on the FPGA UART leads.

Posted: 11/2/2026 10:22:07 PM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

Kit #2 - Control Panel

An order of M3x30 nylon screws arrived today so I was finally able to assemble the main control panel.


Above: Guts, with tuner PCB at top, LCD and main PCB at center, encoder PCB at bottom.  Note 3D printed shrouds around the tuner LEDs with integrated stand-offs.  Also note the cutaway at the bottom of the tuner PCB to make clearance for the LCD pins.  The LCD is a 5V unit.  Encoders are now combined, though I may make future PCBs so they could be sawed in half.


Above: Guts all purtied-up with the new PCB front panel.  The knobs are 3D printed with clear filament.


Above: Rear view of the assembly.  You can see the surface-mount LED driver ICs on the tuner PCB and the debounce RCs on the encoder PCB.  On the main PCB the 2x8 expansion port has been divided into two 2x5 ports.  The left port is for remote control, the right for I/O panel connectivity.  Note the new RJ45 jacks for the field coils, one can either use the standard ribbon cable here or CAT5/6 cables to connect the coils.


Above: Side view of the assembly.  The multi-level nature of everything was a challenge to address.  I ended up employing 3 different length pins for the interconnect.  Note how the LCD PCB is exactly the height of the tuner 7-segment display height plus the LCD PCB height (a stroke of good luck).  Using short shaft encoders here to make the knobs a bit lower profile.

Going surface mount and getting rid of the tuner and encoder cabling has relieved much of the soldering labor, though there's still a fair number of through-hole connections.  Integrating the tuner and going with a PCB front panel has eliminated almost all of the bulk cosmetic 3D printing, which is also nice.  These moves should free up more time to spend printing and winding the larger coils.  I think one kit per week should be possible once everything is in place.  The jigs and fixtures are done, though I need to finalize the AFE, and get some shipping supplies too.

Next up: AFEs & coils.

Posted: 11/3/2026 8:01:10 PM
André

From: 30 km south of Paris (France)

Joined: 12/23/2022

Very clever design, Eric. Bravo! 

On the main board, I see Mon and Line pins with a jumper.
Is it to feed Mon or Line output to the Toslink connector ? 

Posted: 11/4/2026 10:37:30 AM
dewster

From: Northern NJ, USA

Joined: 2/17/2012

"On the main board, I see Mon and Line pins with a jumper.  Is it to feed Mon or Line output to the Toslink connector ?" - André

Yes, exactly.  This way, the SPDIF MON electrical connection on the expansion port could feed the DAC, and the TOSLINK could be LINE and fed to recording equipment for a cleaner signal (no DAC to ADC conversion).

The only difference between LINE and MON is the presence of pitch preview in the latter, which one generally doesn't want going to the audience.

You must be logged in to post a reply. Please log in or register for a new account.