As I'm sure you know by now: AI makes writing firmware, as well as most anything requiring a frontal lobe, obsolete.
This time: two projects that would have meant many hours of firmware frustration fun were accomplished by Claude in less than a morning.
Coding skill? Not needed. Rigorous planning for function and design? Nope. Modest EE skills even? Maybe, but, probably not.
It's a brave (and stupid) new world.
Let's go over what the bot came up with.
TLDR? Sure. that comes with AI as well.
RANDOM GATE:
You can find the original code--for Arduino Nano and +/- 15V Frac--on Github--here. Original post is here.
Almost no one uses Frac, and I am moving away from older Microchip MCU's, so I used Claude to port the sketch to my new favorite 8-bit dirt-cheap MCU, the ATTINY1616.
I copied the original code into Claude's chatbot, told it I was using ATTINY1616, along with the ATTINY pins I wanted to use, and told the bot to get busy.
Claude assumed (correctly) that I was using Spence Konde's megaTinyCore for the abstraction layer and literally 127 seconds later: whomps, there it was.
Get the ATTINY code port here.
I copied the new sketch into Arduino IDE; it compiled without error.
I then uploaded the port the ATTiny1616 experimenter's board (previous post here; PCBWAY community project here) to see if it worked.
After thorough testing: indeed, it all worked, no bugs, no problems.
This 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 and jacks needed for a Eurorack version:
I still have to lay out the PCB and front panel, which can probably also be done with AI, but as I write this, I am not sure how.
And there's another, more existential problem.
Firmware I can give up on, but, I enjoy doing schematic design and PCB layout, and I am not sure I am ready to give 100% of the DiWHY fun to these guys.
It would be a different discussion if I was told to layout 100 unique PCB's a day to maximize shareholder profit (albeit the shareholder never seems to be me).
Instead this begs a more fundamental question: from here on, is the fun part of DiWHY seeing what I can make AI do?
I am not sure if I would call bossing around Claude "fun".
And--My original reason for AudioDiWHY was learning EE and audio fundamentals, which included mastering firmware code challenges; the latter is gone, certainly; since from here on I will probably never write another line of code.
Once AI can do the schema and board, well, that's gone.
Then they replace me with a soldering robot?
So--with AI in the house, do I continue at all?
What is my relationship with this new tech going to look like, really?
I will have to think about this.
In the meantime--back to it.
Can I create an entire new project's firmware using AI? Of course.
The next design was inspired by Intelligel's "Tangrams" gate generation circuit.
If Behringer can rip Intelligel off, why can't I?
Instead of coming up with a functional spec (boring) I created a WIKI user manual;
WIFE GATING:
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. It’s a 5V variable length GATE OUT, Elmo.
MODES
"1 & Done": each BEGIN pulse means a single, entire DURATION + CHANCE situationship, i.e., early dating. A “kid” is produced--always--sorry Elmo, you should have been more careful with your 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.
WOODS MODE: BEGIN rising edge always starts everything over. MORMON setting is ignored (this celeb is not Mormon) but not the other modes; if unit is set to MORMON and CELEB you really get a re-triggerable ONE AND DONE just like in real life, and the module costs 15% more to build next 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.
EOC: End of cycle. 100ms trigger pulse comes out here 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.
Next I used ChatGPT to create an image of what this might look like--the fake photo you see below was created by the bot from the front panel image, and really, this is a pretty good representation of what an 8hp version of this module might look like:
WAIT! FROM THIS BLOG'S SPONSOR:
MATRIMONY FIRMWARE:
I used Claude code, I described the wife-gating "duration" and "random" features, compiled, and sent the nascent code to the ATTINY1616 experimenter's board via Arduino IDE.
Video for getting Claude Code going is here.
Once that worked--it usually did in 1 or 2 revisions--I added more features, paraphrasing the WIKI into Claude code.
Each time I committed and sent the 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 less than a a morning; the guy with the Swiss accent has additional fresh idears that could speed this process up further (great video series from Mr. Spiess--using AI to create firmware--begins here).
Here is ChatGPT's idea of what the finished hardware might look like:
OUTTRO:
But can AI make balloon animals? Hard to say. probably.
I will get some boards fabricated and see how the random and matrimony gate boards work.
If they don't fair bet it's my schematic and layout, not the firmware.
See you next time.























