Voltage Starvation: Simple, Useful Circuit

Fair warning: I severely injured my left wrist and Therefore I'm dictating this blog post instead of typing it. If the prose sounds weird + weirder than usual that might be why.



Today's project originated from a few professional 8HP Eurorack modules brought to one of my electronic music geek group's  public meetings. 

The idea was simple: take a Eurorack power supply's +/-12VDC rails, reduce the voltages via front panel potentiometers, and power circuits downstream, "starving" them of power.

Voltage starvation was demonstrated on a variety of synthesizer modules including oscillators, filters, and logic processors, but I was most impressed with how changing the positive and negative rails drastically--and, at times, beautifully--affected the sound of voltage controlled filters. 

I figured the underlying circuit design was probably pretty simple and I could quickly and easily create a starvation circuit using variable voltage regulators instead of buying pre-made (read: expensive)  Eurorack modules.

What I came up with:


I designed the schematic and PCB using Kicad; I used through-hole adjustable voltage regulators I had on hand: LM337 and LM317, along with other junk box parts.

The design was lifted straight out of adjustable voltage regulator datasheets:

Postive adjustable rail....

...And negative.




I sent the layout for the circuit board and front panel to this blog's sponsor PCBWay, who, as always, got everything back to the US fast, fast, fast--Many thanks to PCBWay for generously sponsoring this blog.




As always PCBWay delivered the circuit boards quickly and the quality of their work was top notch. Help the blog out and check out PCBWay here.


....the starvation module took less than an hour to build and "worked first time" (WFT).

Front panel artwork used a PNG image of legendary (and thin) 60's model Twiggy converted to SVG using the python uv app here. Read more about Kicad silks used for front panel design here.




junk box parts....


The design uses a Eurorack standard 16 to 10 pin 100 mil flat ribbon cable from the rack's power supply to the starvation module, then the same from the module to the filter downstream.  









So how did it come out?  

The starvation circuit's outputs varied from about 2.5V to 10V on the positive side and -1.7V to -10V on the negative side. I silked "3V" on the front panel--incorrect. The outputs could be cleaned up with more carefulluy chosen R1-R4 values, but in the age of AI: I am that lazy; I am letting it go.

Overall, though, this one kind of blew me away.

I put very little thought and time into the project's design but when I set up the finished module  on the bench, in between my bench power supply and some voltage controlled filters, I realized filters I had trouble dialing in sonically suddenly became much more appealing.


For example, the dual MS20 filter featured in this post never sounded quite right, I tried different combinations of LED's and resistors in the resonance path, and other tweaks to reign in the filter's overly nasty distortion. 

We all know MS20 filters distort, one of the things that make them cool, but my build was too much of a thing.

However with the voltage starvation circuit in series I had much greater control of the dual MS20 filter's frequency and resonance sweeps, its distortion, and overall sound...the module behaves better to when its supply rails are dialed back....to the point where I might even be able to drop this filter into one of my racks and use it for something useful.

IMPROVEMENTS?


Sure.

For instance, lower dropout variable voltage regulators would allow the rails to get closer to 12 volts allowing more of "stock" filter sound with this unit upstream.  That might be as easy as purchasing lower dropout variable regulators and dropping them in.

I also want to revise things so the negative rail pot goes from -3V to -10V--opposite how it is configured now. Dunno, I just think I would like that better.

A slightly more ambitious version would use boost-buck converters to move the rails to +/-15 or +/-18 VDC and then use a starvation circuit--buck conversion or something like it--to bring the rails back down to whatever. 

This would allow you to overdrive the filter's supply voltage rails as well as reduce them.

But what I have on the bench now is what I have time for this month. I will do a bit more work on this then post the whole thing to PCBWay's community site.

OUTTRO

Big news is that I retire from my day job in about two months. This after 37 years of slugging it out as a tech/tech manager.  

37 years? Yes I am that old. Older, actually.

"old fellow out to pasture".  There are other F words you can use instead?

All in all, good news; I hope to spend my newly found free time doing more fun projects like this.

AI, Firmware, and Existential Questions

You probably already know this: AI makes hand-coding firmware, as well as most everything else requiring a frontal lobe, a thing of the past.

This time: two coding projects that usually meant many hours of firmware frustration fun were accomplished by Claude in a single morning. 

Coding skill? Not needed. Rigorous planning for the circuits' function and design? Nope. 

Modest EE skill, even? Probably not.

TLDR?  Sure: 

The incurious ride shotgun when AI is driving--it's a brave (and stupid) new world.  This time I go over 2 circuits my clanker and I came up with, then, without any AI at all: think about what it all means. 

CLANK PART ONE: RANDOM GATE FIRMWARE PORT

The original code--for Arduino Nano and +/- 15V PAIA Frac fomat (sadly, PAIA is out of business)--on Github--is here.  

Original blog post--early in my DiWHY adventure--can be found here.

Almost no one except me uses Frac format, and I am moving away from older Microchip MCU's, so I used Claude.ai to port the sketch to my favorite 8-bit dirt-cheap MCU, the ATTINY1616.  

I copied the Arduino Nano code into Claude's chatbot, told Claude I was using an ATTINY1616, the ATTINY pins I wanted to use, and told Claude to get busy.

Claude assumed (correctly) that I would use Spence Konde's megaTinyCore for the build's abstraction layer. Literally 127 seconds later: whomps, there it was.  

Get le clank's ATTINY port here.

I copied the new sketch into Arduino IDE; it compiled without error.  

Next I uploaded the port to the ATTiny1616 experimenter's board (previous post here; older PCBWAY community project here) to see if it worked. 


After thorough testing: of course it worked, all of it, no bugs, no problems. 

We all knew it would. 

The firmware port, start to finish, including testing, took about an hour. 

Amazing!

I then used Kicad 10 to modify the schematic for the Experimenter's Board to accommodate the pins, pots, LED's and jacks needed for a Eurorack version. Schematic and PCB layout can probably also be done (better) with AI, but I don't know how to bring AI to bear for EDA, at least not yet.  I will get this fabricated in the coming weeks.


SON OF CLANK: WIFE GATING  

Can I create an entire new project's firmware using AI? Of course.

This next design was inspired by Intelligel's "Tangrams" gate generation subcircuit. If Behringer can rip off Intelligel, why can't I?

Instead of coming up with a functional spec (boring!) I created a WIKI user manual:

 WIFE-GATING: A 6HP Eurorack module akin to dating, marriage, and procreation.

DEFINITIONS

DURATION * CHANCE creates a single “situationship” (I had to call this something….)

DURATION: how long the situationship lasts if CHANCE is set to zero. 

CHANCE: Add or subtract a random amount of time from the DURATION value.  Think in-laws.  

KIDS: Output of the situationship.  In this context it’s a 5V variable length GATE OUT.

MODES

"1 & Done": each BEGIN pulse means a single, entire DURATION + CHANCE situationship, i.e., early dating.  A “kid” is produced--always--sorry Elmo, ya should've been more careful about birth control.

"Remarry": The situationship produces a KID; gate (“kids”) off for another DURATION + CHANCE, then another situationship, producing yet another kid.   

"Alimony": The REMARRY cycle repeated twice

"Mormon" Mode—BEGIN is ignored; Negative CHANCE ignored; Kids (gates at output) are produced forever.

"FAITHFUL" Mode: after BEGIN gate or trig, the wife gating module goes through the entire situationship, regardless of what happens at the BEGIN INPUT.  A new situationship can only begin again after existing has run its course.

"TIGER": BEGIN rising edge always starts everything over.  MORMON mode is ignored (celeb is not MORMON) but not the other modes; if unit is set to MORMON and TIGER you really get a re-triggerable ONE AND DONE just like in real life, plus the module costs 15% more every time you build it.  

KIDS alternates states--one relationship you have a KID, next one you don't, third one you do, and so on. Something like that?

EOC: End of cycle. 200ms trigger is fired at the end of each situationship. Note: mvcl says to rename this "polyamory" because you could plug "EOC" into other units and have several run at once. Maybe, but "EOC" fits better on the panel.

KIDS: What the situationship produces....for synthesizers, a +5V gate out, Elmo. Less work.

To further visualize this I used Kicad to come up with the module's front panel:


....then used ChatGPT to create a photo-realistic image of what the finished build might look like--the fake photo you see below was created from the front panel PNG above, using a single prompt, took about a minute to produce, and impressively, yielded a pretty good representation of an imaginary 8hp Wife Gate.

My psychiatrist wife looked over my shoulder as I wrote this post and was not entirely happy. But when I told her "wife gating" is when techs send our wives off to have fun while we geek out, she got on board. "As long as I have a credit card" she told me.



FIRMWARE (TWSS)


What next?  For Wife-Gating code I jettisoned any language that reflected politics, celebrities and religion, and clarified (in my mind) what I wanted the module to do, kind-of, sort-of.

Using Claude Code, I first described wife-gating's "duration" and "chance" features, compiled, and uploaded the nascent code to the ATTINY1616 experimenter's board via Arduino IDE: 


Video for getting Claude Code going is here.



Once that worked--it did after only one or 2 prompts--I added more features, paraphrasing the WIKI users' manual into prompts.

Each time I committed and pushed revisions to Github....the bot made that easy as well....

Get the code from Github, here.

Going from the WIKI to a what feels like ready-to-use firmware took a few hours; the guy with the Swiss accent has additional fresh idears that could further speed this process (the usual superb video series from Mr. Spiess--using AI to create firmware for DIY--begins here). 

How much time would it have taken me to write the W-G's code the old fashioined way? Hard to say, I'd guess a few days. And, reviewing the quality of the code produced, Claude kicked my ass; its comments were clearer, safeguards were better thought out, variables more clearly named. 

The code looked like a pro wrote it, as opposed to--well, code written by me.

Here is ChatGPT's idea of what the finished hardware might look like:

The firmware "works" but I am not sure going from WIKI to firmware, without better advance planning, was the best way to do this. We will see when I get this module built.


BEFORE PROCEEDING: THE BLOG'S SPONSOR

 


AI or not, you are going to need to create PCB's, enclosures, and panels for your projects. 

You can help out the blog by visiting the sponsor, PCBWAY for your fabrication needs.

In addition to top-shelf PCB fabrication they also do fantastic work with assembly, 3D printing, injection molding, they can fabricate PCBs using full color--details here, and much more. 
 
As always--you can help this blog by checking out the PCBWAY site. Thanks!

DIWHY FIRMWARE IN THE AI AGE 

So let's think about what just happened.

Let's say my boss tells me to create 100 unique PCB's a day to maximize shareholder profit (meaning--him). 

I get it--with fantastic AI tools available I see management expecting a lot more output from everyone.

But cranking out more product is not applicable to self-educators--I don't necessarily want to churn out more product, I want to learn more. 

However, in this new AI era, code learning may be gone for good. Since Claude Code  kicks booty  so thoroughly, I figure even the most curious techs will probably not spend 3 days writing code that Claude could write more elegantly in a few minutes.

I still enjoy doing schematic design and PCB layout, but I figure if creating those by hand is not already obsolete, they will be soon. 

Is the future of DiWHY seeing what I can make AI do?  

I hope not, because I don't find bossing around Claude as much fun as how I was doing DiWHY two years ago, and when bots assist with my projects I feel I learn next to nothing, except perhaps improving my efficiency vis-a-vis my interactions with clankers.   

The existential question becomes: once AI fully takes over, why continue DiWHY at all? 

I will think about this. 

I'm hanging in there for now--I will get boards fabricated for the Random Gate and W-G projects to see how they work. 

If they're turds, fair bet it's my schematic and layout, not the veracity of the bot's firmware.