PID Espresso Coffee Machine Mod

PID Coffee

After playing around with an old G3 Ferrari espresso machine, I find that my barista skills are rather lacking. However it becomes difficult to improve them when the espresso machine has such a wide temperature range. Most machines have a simple thermostat that switches the boiler on at one temperature and off at another. This could be over 20 degrees when coffee purists say the best temperature is 92 – 94 degrees C!

Coffee enthusiasts have been modding their espresso machines with PID controllers for years. Essentially a PID is designed to intelligently control a heating element to a set temperature. They can be tricky to tune, but fortunately most new controllers have an auto-tune function, making it straight forward to get started. So diving headfirst, I bought a PID controller on eBay for $45, and prepared myself for some fine coffee making. However DO NOT try this at home as there are potentially lethal voltages inside. 

The ITC-100VH is the actual PID controller, plus a 40A solid state relay (SSR) is needed to switch the boiler element, and a K-type thermocouple to measure the temperature. I also designed and 3D printed a small enclosure for the PID unit. The 3D files are here:

Upon taking apart the machine, there is mess of wires. The boiler is the round metal thing on the right side. Screwed on top are a red and a black thermostat. The pump is the square thing on the bottom.

Expresso Wiring

Simplified down, the electrical diagram looks like this. I’ve omitted the lights in the switches for simplicity.

Original wiring

It’s a fairly simple circuit: when cold, the red and black thermostat are closed and supply power to the heating element. At about 100 degrees the red thermostat goes opens circuit and turns off the heater. If the steam switch is turned on, it bypasses the red thermostat until the black thermostat opens and stops heating, at about 130 degrees.

So we essentially want to replace the function of the red thermostat if we are installing the PID controller. A new circuit diagram is below.

PID Diagram


Thermocouple end

Now the PID can directly control the heating element through the solid state relay, and the steam switch will still use the black thermostat. The K-type thermocouple should be attached to the metal boiler using some thermal paste. You will get a much faster measurement if you remove the metal sheath on the end and simply put the end of the wires against the boiler.  Then cross your fingers, turn it on and enter the auto-tuning mode on the PID. This takes a while as the controller works out the best control parameters. If you are really keen and have hours to spare, the control parameters can be set manually. The set point temperature also requires trial and error to get right, but now I have one less excuse for my bad coffee…


This entry was posted in Coffee and tagged , , , . Bookmark the permalink.

8 Responses to PID Espresso Coffee Machine Mod

  1. Graham says:

    I have one question regarding the original circuit. When temperature is reached, how it’s possible for ready light to glow, and heater to be off? Why aren’t both of them turned on cause they are connected in series and current should be flowing through both elements?

    • Tom says:

      A good question. In fact both the heater and light are on when temperature is reached. However the light has such a high resistance that it does not let much current through to the heater, meaning the heater doesn’t do much heating.

  2. FJP says:

    Hi, how do you tighten the pid to the enclosure box?

  3. George says:

    That is nice B.YUL is see in the video that is selling the upgrade.
    – PID temperature control
    – Touch Screen display
    – Tank water sensing
    – Preinfusion option
    – Inactivity Standby option
    – Date,time display
    – AutoON by time option
    Does anyone know something about their shop? Are they trusted?

  4. juliandro says:

    thanks froma argentina, you are a genius. Im going to mod a frigidaire microexpress. Already put a manometer and opv in it

  5. Seiko says:

    A 40A Solid State relay i way overkill. If you live in EU a quality 10-15A ssr like an omron would do just fine

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s