Asymptotically Free Beer
The short version
I taught my induction cooktop to take orders from a computer, and then Claude, an AI, used it to brew a beer. Claude watched a thermometer in the pot and decided when to switch the heat on and off: 33 button presses over four and a half hours, each one answered by the cooktop’s beep. I stirred, added the hops and sat on the couch.
Almost everything came from close to home. The hops grew on my grandma’s vine, half the grain is ordinary wheat berries rather than brewing malt, and the electricity came from a solar-charged battery bank, in late November. The cooktop’s electronics are wired to the mains in a way that can bite, so the little computer inside it runs on its own battery and talks only over Wi-Fi.
The beer is a light wheat ale, about 4% alcohol. Claude named it Floating Ground and drew its label. It tastes like Cheerios, in a good way.
The long version
The cooktop is a stock NuWave PIC Flex. A battery-powered ESP32 sits inside it, watching the front panel’s signals and pressing its buttons through optocouplers, and it talks to the outside world only over Wi-Fi. On 22 November Claude ran the whole brew day through it: 33 button presses, each one logged with its reason and confirmed by the cooktop’s own beep. I stirred when I heard a gurgle.
Claude designed the recipe and named the beer Floating Ground: the wheat is ground, the doomed oscilloscope probe floats electrically, and the temperature probe and the yeast float physically too. It is a small batch of raw wheat ale, using half malted barley and half unmalted wheat berries from my dream employer, the Winco bulk foods department.
| Grain | 1 lb Skagit Valley Malting Pilot Pale, 1 lb raw white wheat, both milled at home |
|---|---|
| Mash | 122 °F for 15 min, 146 °F for 60 min, 160 °F for 15 min; brew-in-a-bag |
| Hops | 18 g homegrown: 4 g at 60 min, 6 g at 10 min, 8 g in a 20-minute steep |
| Yeast | Distiller’s yeast, with 0.5 g of diammonium phosphate for the nitrogen the raw wheat lacks |
| Ferment | Water bath at 65 °F |
| Original gravity | 1.040 (lots of sediment, so possibly a little high) |
| Final gravity | 1.008 after three days, about 80% apparent attenuation |
| Alcohol | about 4.2% by volume |
| pH | 4.6 |
| Tasting note | “Spectacular (Cheerios!!)” |
The open question was whether one pound of malt had enough amylase enzyme to convert a pound of unmalted wheat starch into sugars that yeast can eat. Skagit’s certificate of analysis puts this malt’s diastatic power at 100–118 °Lintner, which suggested yes with room to spare, and 80% attenuation between OG and FG agrees.
Brew day
Claude ran the loggers, the timers and every button press from its agent harness, and sent me a phone notification when it needed hands: stir, add hops, run an iodine test, lift the grain bag. I did those, and then returned to the couch to continue supervising.
The cooktop’s own thermostat can’t do this job. It regulates a sensor under the glass, not the wort: in an earlier test, a setpoint of 160 °F let a small pot of water climb past 180 and keep going. So Claude used the cooktop as an on/off heater with the wort probe as the thermostat. To hold the main mash at 146 °F, a script pressed Start for 40 seconds whenever the wort fell below 144.5 °F, then Pause, and waited at least four minutes before trying again. A covered pot of mash loses only about 0.3 °F a minute, so the hour took seven bursts.
That rationing was deliberate. Every press makes the cooktop beep, and we wanted the beeps to stay meaningful, so time-proportioned control, with Start and Pause toggled every few seconds, was ruled out from the start. A beep means a decision, and the journal says what the decision was:
14:10:06 press start (stirred 141.2F; 75 s burst (~100 kJ) toward 148)15:21:03 press start (stirred 151.8F; 105 s burst toward 160 (9F/120s last time))16:40:47 press start (resume boil after unexpected stop)
A failsafe script watched for a missing or stale thermometer reading while the cooktop was heating and would have pressed Pause after ten seconds. It never had to.
Why the probe floats
The cooktop’s front panel talks to its power board over a 12-pin header: 5 V, ground and ten signals. The obvious way to learn what they do is an oscilloscope. I consulted an oracle first.
Its answer: the panel’s ground is not isolated from the mains. The cooktop’s low-voltage supply is a non-isolating flyback, so “ground” swings about 170 V below earth on every mains cycle. Anything earth-referenced clipped to it, like a bench oscilloscope or a USB cable to a computer on the wall, becomes a short from the mains to earth.
So everything touching the live cooktop had to float. The instrument became a Seeed XIAO ESP32-S3 running from a power bank, with a resistor divider on each signal, an ADC sampling up to nine pins at 4,000 samples a second each, and 80 MHz edge timing on the digital ones, streamed over Wi-Fi to a logger on my desktop. Its USB port is off limits for as long as it is wired to a powered cooktop.
Reflashing a live appliance over Wi-Fi
Floating the probe solved the safety problem and created a workflow one: no USB means no ordinary way to update the firmware. So the probe updates itself over the air. A small HTTP server on the ESP32 accepts a new image with a token, writes it to the spare of two 3 MB slots and reboots into it. The new image has to reach Wi-Fi and stay up for ten seconds before it marks itself healthy; otherwise the bootloader rolls back to the old one.
What the front panel does
The front panel’s microcontroller makes the decisions, and the main board mostly does as it’s told:
- Pan detection is a ping. Pressing Start kicks the power stage with a 5.7 µs pulse and counts the coil’s ringing on a comparator line. With no pan it rings about 48 times, and with a pan about 4.
- Power is a PWM duty cycle. A 7.77 kHz signal idles at 16% and steps with the wattage setting: about 35% at 600 W, 54% at 900 W. The power stage then retunes its switching frequency towards resonance.
- The thermostat runs on a half-second tick. Near the setpoint, the panel switches heating on and off in multiples of 514 ms, silently.
- The buzzer line says everything. Key presses, errors, power-up and the safety timeout each have their own beep pattern, so one pin is enough to confirm a press and recognise the timeout.
That suggested the cheapest safe interface: press the buttons. A PC817 optocoupler sits across each of five buttons (Start, Pause/Clear, +, –, and Watts), driven from an ESP32 pin through 470 Ω. The cooktop thinks a human finger is pressing the button. Because we just press the buttons, every stock protection stays in place, including dry-pan detection and the timeout. The probe holds an opto for 150 ms and listens to the buzzer line to confirm the press.
The supply chain
The hops grow in my grandma’s back yard, in Hop King Ezra Meeker’s old stomping grounds. I harvest, strip, and dry them myself, then vacuum-seal them with an oxygen absorber and freeze them. (Over-run the drying fan and the floor turns yellow with lupulin.) The malt comes from Skagit Valley Malting, whose web store lists whole grain silos as orderable quantities. I didn’t order a silo, only 400 lb. Then they refunded my order and told me to go to my local homebrewing store instead. Fair enough.
Grain and hops are only half the list. The water comes from the tap, and the chilling ice from the freezer. The yeast is bought distiller’s yeast, though saving some from this batch would take it off the shopping list. The energy came from a solar-charged battery bank: the cooktop drew about 2.1 kWh on brew day, while the late-November panels made only about a sixth of that as it ran. And then there’s time: a few weeks of evenings taking the cooktop apart, and an afternoon of brewing, valued at $0.
Asymptotically-free beer is the plan. Each batch should need less bought malt than the last, approaching but never quite reaching zero, since raw grain still needs malt for its enzymes. This batch was 1:1 wheat to malt. On Skagit’s numbers, about 2:1 is the enzyme limit, so that comes next. I am not above using other sources of fermentable sugars, such as starch from soaking potato slices that would otherwise literally go down the drain. Koji cultures are another potential source of amylase if I want to get really creative.
Known limits
- It’s semi-autonomous so far. Claude chose each burst from the wort temperature and a calibration it built during the day (about 4.4 °F a minute for 1.5 gallons of water, and 9 °F per two-minute burst of mash), through small scripts rather than a finished controller. Folding those into a controller that also handles the timeout is next.
- Stirring is still a person listening for gurgles. An unstirred pot of mash runs hot near the bottom and reads cold elsewhere.
- The wort thermometer occasionally drops a reading while the coil is running, probably from interference, so the failsafe acts only on stale or repeated errors.
How it was made
I took the cooktop apart, soldered the harness and optocouplers, did the meter work with the cooktop unplugged, filmed the captures, and stirred. Claude Opus 5.5 wrote the probe firmware and over-the-air updater, the logger and analysis tools, worked out the pinout from the captures, designed the recipe, ran brew day, named the beer, drew its label and drafted this page.

