Close

'Code' Basically Done

A project log for Automated Coffee Bean Roaster

Roasting coffee beans at the push of a button

ben-brooksBen Brooks 08/21/2022 at 15:350 Comments

From the beginning, I had decided I was going to use ESPHome to control everything so I could have a pretty front-end and easily log data. Normally when I've done this, I've left the actual control to Home Assistant, but for this project I wanted all of the 'smarts' local. This is both because the automation is more involved and controlling mains power items (like a heater) and I explicitly want to be able to use it away from WiFi.

I spent a lot more time than I'd care to admit trying to figure out how to write the code locally in ESPHome. I think I just really overthought things as in the end, it ended up being pretty easy (minus the maddening formatting issues of YAML). I got the general outline of a roast profile setup, with buttons and lights to indicate at what stage things are at. I also added some safety features/checks to shut the whole thing down if something unsafe occurs, such as too high of a temperature or the heater being on but not the fan.

While I continue to wait for the PCBs to arrive, all that is left is to make a case for the whole thing. Shouldn't be complicated, but between the transformer, SSR, PCB and the actual roaster there's a decent bit of stuff I need to find a place for while keeping it compact and safe.

I also got some high-temp insulation to wrap around the metal bits. Considered just leaving it exposed, but felt like having a bunch of metal and high temps readily accessible is probably a bad idea.

Discussions