Roasting light is a control problem, so I'm building a controller
TL;DRLight roasts punish late corrections. I'm building an adaptive controller for my Aillio Bullet that learns how it responds and gets ahead of the roast.
I love light roasts, the floral, fruity kind. They’re also hard to roast well, because nailing the temperature is hard, and the stakes go up with the beans. When I’ve bought something expensive, like a rare Panamanian Geisha or a lot with an unusual anaerobic process, I want to get everything out of it.
The problem is that roasting is crude. Most traditional drum roasters have an actual flame, a gas burner, heating the drum. My roaster, an Aillio Bullet, is unusual in that it heats with induction instead. But either way, you’re heating the beans two ways at once: by conduction, where they touch the hot drum, and by convection, from the hot air moving through it. Outside conditions change the roast too. Humid air carries heat less efficiently than dry air, so the same settings on a different day give you a different roast. And the controls you get to respond with are coarse: on my Bullet, power, fan and drum speed, each in nine steps.
Worst of all, you’re always reacting. The number every roaster watches is the rate of rise, how fast the bean temperature is climbing. When it falls to zero or below late in the roast, what roasters call a crash, the coffee tends to taste flat. By the time the curve shows you a crash, it has already happened, and anything you do now is a correction, not a plan.
The tools I have don’t really fix this. Aillio’s own software can replay a previous roast, making the same power, fan and drum changes at the same times, but its documentation is clear that it doesn’t track the curve. If the room is colder or the beans are wetter, it can’t adjust. Artisan, the open-source roasting software, can run a PID controller that chases a reference curve, which is a real step up from doing it by hand. But a PID loop is still correcting an error it can already see.
So here’s what I want to build. First, I’ll do a handful of roasts to teach a model how my roaster actually responds: how bean temperature and rate of rise move when I change power, fan and drum speed, and how quickly. Then I’ll give the controller targets, the curve I want to hit, and let it use that model to look ahead. If it can see a crash coming, it can adjust before the crash instead of after. And because every roast is new data, the model should keep adapting as the season, the beans and my targets change. Engineers would recognize this as a form of model predictive control.
I’m going to write the code with Claude Code’s help.
I should be honest about the limits. I haven’t built it yet. A few roasts may not be enough data to model the roaster well. And a controller can only hit the targets I give it; choosing the right curve for a particular coffee is still on me. I also couldn’t find a public project doing this for the Bullet. The closest I’ve seen is academic work, like a 2023 University of Pretoria thesis on predictive control for a gas-fired roaster.
I’ll write up what I learn as I go. If you’ve tried something like this, tips are very welcome.
Sources
- Aillio, “Bullet R1 V2.” https://us.aillio.com/products/bullet-r1-v2
- Aillio, RoasTime documentation, “Roasts” (playback). https://docs.aillio.com/roastime/five-tabs/roasts/
- Roast Magazine, “Fire and Heat,” June 25, 2024. https://www.roastmagazine.com/stories/fire-and-heat
- Royal Coffee, “How External Factors Affect Coffee Roasting Conditions,” November 19, 2024. https://www.royalny.com/blogs/how-external-factors-affect-coffee-roasting-conditions/
- Royal Coffee, “How to Avoid the Coffee Roasting Curve Crash,” March 31, 2025. https://www.royalny.com/blogs/how-to-avoid-the-coffee-roasting-curve-crash/
- Artisan, “PID Control.” https://artisan-roasterscope.blogspot.com/2016/11/pid-control.html
- C. E. Bolt, “Empirical modelling in non-linear predictive control: a coffee roaster application,” University of Pretoria, 2023. https://repository.up.ac.za/items/ca823592-c1fa-4cdc-8b7a-983a649055df