Skip to content

Legacy article

Automating a coffee machine with a servo and an ESP32

I was too lazy to push 2 buttons, so I made a robot to do it for me.

Built
fusion3603dprintingcoffee

I have a DeLonghi coffee maker, which I bought refurbished for $400. It requires you to push 2 buttons: the "on" button, and the "brew" button about 40 seconds after.

Now, why spend 40 seconds doing a task when you can spend 2 weeks automating it?

Fusion 360 model of the coffee machine with a bracket and a button-pushing arm mounted on its front

First we measure the coffee machine, and create the model.

The bracket in the slicer, with supports and the estimated print time

Then we 3D print it!

Two printed versions of the grey bracket side by side on a cutting mat

Then we realize it doesn't work and fix the issues.

Then do that one more time.

(The first time the buttons were off and the arm was too thin. The second time the arm attachment was loose, so I had to make it one piece.)

An ESP32 on a protoboard with a small OLED screen, wired to a blue hobby servo

Then we create a small device using an ESP32 that powers a servo.

A drawCoffeeCup function that draws a coffee cup on the OLED screen with line and pixel calls

We then write some code to draw a coffee cup pixel by pixel!

The finished bracket mounted on the coffee machine, with the screen showing the time and the next brew

And now we have a fresh cup ready to drink at 6:00 am without having to spend 40 seconds pushing buttons. So much extra time to sleep!

Update

The same bracket with new two-colour printed buttons

We then upgrade the buttons with multicolor prints so they look nicer!

Share this