4 ms·
What is a PID controller in an espresso machine?
- richwater 3y agoInteresting article, but the author seems to repeat themselves quite frequently. Would have liked to see graphs of temperature variability at the brew head on a machine with and without a PID
- Conasg 3y agoI got a bit suspicious it was at least partly AI-written. If it is, I don't judge.
- ghughes 3y agoBecause the author is ChatGPT.
- imtringued 3y agoI was surprised by the lack of content and strong adherence to the title and suspected as much.
- Nextgrid 3y agoThe whole site is a dumpster of SEO spam and affiliate links for probably trashy products (hint: if the product was any good you wouldn't need to be paid to promote it).
- phreeza 3y agoMeasuring at the group head is the critical part here, as opposed to at the boiler, because in most machines there is a lot of thermal mass which will actually equalize temperature fluctuations that happen on the scale of seconds or minutes. This means the effect of having a PID is less about smoothing out the short term fluctuations and more about the ability to set the average temperature
- xchip 3y agoGood to know they use a thermostat.
- wildekek 3y agoActually the article is wrong about this. "...compared to traditional thermostats found in many older espresso machine steam boilers". Older espresso machines mostly use a "pressostat": an adjustable pressurized diaphragm that triggers the heating element in the boiler.
- primis 3y ago"PID (Proportional, Integral, Derivative) works by continuously monitoring the boiler’s temperature and making small adjustments to maintain an exact and stable target temperature." So basically a smart thermostat that accounts for ramp up and cool down times when adjusting the temperatures.
- throwaway9870 3y agoYes and no. PID loops are linear systems and don't understand ramp-up and ramp-down times. They understand poles and zeros. So normally you would speak of time constants and bandwidths rather than ramp (slew) rates. This is not just semantics, they function differently. However is not unusual to add non-linear constraints on top of of linear control loop so you end up with a hybrid control system.
- wildekek 3y agoWhen your espresso machine has some thermal mass (eg E61 group head), then a simple bang-bang controller performs just as well as a PID. After tweaking PID controllers in drones, HVAC systems and my espresso machine, my experience is that PID's do more harm than good in systems with a lot of inertia and slow response.
- redox99 3y ago> PID's do more harm than good In what way?
- wildekek 3y agoPID controllers require more tuning, which becomes harder with more latency in the system. They are more susceptible to integral windup: https://en.wikipedia.org/wiki/Integral_windup https://en.wikipedia.org/wiki/Integral_windup They require an MCU, whereas a bang-bang controller can be done mechanically (or with analog components), keeping them simpler.
- amluto 3y agoSince when does a PID controller need an MCU? You can build one out of op-amps, resistors, and capacitors. Whether you should is a different story. (I’ve never been convinced that a PID controller really makes sense for a heater where there may not be much natural cooling going on, but that’s a different story.)
- wildekek 3y agoYes, you're correct. I think you never see them in practice since MCU's are cheaper, but it is totally doable.
- cjbgkagh 3y agoThere might be other reasons for wanting a MCU but PID controller chips are cheaper and so are the diy PID circuits. Drone PIDs are hard, and a lot of that to do with the quickly moving targets which is not the case in many (most?) scenarios PIDs are used.
- geekuillaume 3y agoThe first image is a Rancilio Silvia espresso machine. If you like DIY, you can add your own PID with an ESP32 (wifi-enabled cheap microcontroler), a thermocouple (to measure the temperature of the boiler) and a solid-state relay (to turn on/off the boiler heating element) for less than $40. I did it in my own machine following this repo: https://github.com/rancilio-pid/clevercoffee https://github.com/rancilio-pid/clevercoffee. I have perfectly stable temperature, I can turn on the heating from my bed (with MQTT and HomeAssistant) and I used the occasion to fully understand how my machine works (which tbh is always a big part of the motivation for doing these kind of projects).
- parkersweb 3y agoThere’s also the gaggiuino project : https://gaggiuino.github.io/ https://gaggiuino.github.io/ Although it’s designed for use with a Gaggia Classic a number of users on the Discord server have already successfully installed it on the Rancilio Silvia
- throw9away6 3y agoThe PID is helpful to keep the boiler at a stable temperature because its volume is small but does little to keep the group head stable. The group itself gets either too hot or too cold and thats a much more challenging problem. The boiler has to be hotter than the group due to losses but you don’t want to be constantly circulating water either so a lot of trade offs have to happen. One of the better ways I’ve seen is that the water tank is directly above the group. It makes the group very stable but unfortunately makes the machine itself prone to tipping due to high cg.
- pier25 3y agoMy Bezera Bz10 has some heating rods right into the group. It's an hx machine though, not a single boiler one.
- syntaxing 3y agoThe article has a lot of words and a lot of fluff. Long story short, any PID is always minimizing error (target value - desired value). You can imagine the proportional (the P) is just a linear scale like maybe 10W is required to increase the mass 1 degree). The intergration (the I) of the error takes care of steady state error (since you’re always taking the area between the target and desired). The derivative (the D) takes care of response since you’re taking the derivative of the error, aka the rate of change.
- sheepshear 3y agoWordless PID demo. https://youtu.be/qKy98Cbcltw https://youtu.be/qKy98Cbcltw
- throwaway9870 3y agoA couple days ago there was a thread on Hacker News that devolved into a discussion of what a comp-sci student learns in school that they can't learn by themselves. Control systems are a good example of something that is good to have a basic background in and can be hard to learn by yourself. I think it much easier to learn this topic in school because you have an instructor to answer questions and are surrounded by other students who you can discuss the topic with to help you gain intuition about all the math.
- deleted 3y ago[deleted]
- nihzm 3y agoI think historically control theory might have been left out of compsci curricula because of is prerequisites that are not very relevant most other areas of the degree (complex analysis, spectral theory, continous time dynamical systems). Especially the "old" theory from the mid 20th century can get very difficult to study on your own because everything was described in term of continous time stochastic processes (which are very hard!). Interestingly as computers became powerful, throughout the 90s there was a shift towards discrete time or hybrid dynamics, and one could make a case that the former is teachable without too many prerequisited in compsci degrees. Distributed computation would especially benefits from having students that know a bit of control theory, or even networking where for instance control theory explains why a certain set of BGP policies / congestion control algorithms converge to a stable equilibrium and other do not.
- simonbarker87 3y ago> This is where a PID controller comes into play. This advanced technology optimizes the brewing process Calling something that first year electrical engineering students were getting taught in an introduction class 20 years ago (well 18 years ago in my case but it had been on the syllabus for at least two years at that point) is a little laughable.
- vidanay 3y ago> The first theoretical analysis and practical application of PID was in the field of automatic steering systems for ships, developed from the early 1920s onwards. https://en.m.wikipedia.org/wiki/Proportional%E2%80%93integral%E2%80%93derivative_controller https://en.m.wikipedia.org/wiki/Proportional%E2%80%93integra...
- deleted 3y ago[deleted]
- commonlisp94 3y agoAll engineering technology is like this. The core of machine learning is multi-variable calculus and optimization that has been taught to math students since at least the 60s. I bet most EE graduates still couldn't provide a good interpretation of a transfer function or a Laplace transform.
- carlmr 3y agoIt's the we're using algorithms of EE.
- phreeza 3y agoIt's an interesting topic but the article is very weird, seems like SEO spam almost.
- mschuster91 3y agoSince everyone here seems to be going on about the tech side and not the coffee side: if you find that your office's "fully automated" coffee machine produces bad coffee, tune it - they're all PIDs at their core. It may require some hacking in some cases as some manufacturers gate the settings for brew time, temperature, pressure and grind amount behind "service passwords". In most cases it's the brew temperature that's at fault and "burns" the coffee - you have to match all four parameters to the beans you use and, especially in areas with high calcium carbonate or other minerals in the water, also the water source (if mineral content is too intense, you have to use a dedicated filter, no way of tuning will make good coffee out of shit water!). Another all too common issue is that no one is responsible for cleaning the machine... these things have to get cleaned daily, deep cleaned weekly and the water filter at least monthly. And for heavens sake: don't use these Brita-style "open" water filters, and put the milk containers into a dedicated fridge, yes, even if it's "pasteurized" milk. Both is a serious risk for pathogen contamination. tl;dr: good coffee means investing more time than just placing the machine in the kitchen, it actually needs tuning on inputs (beans, water) and processing (brewing parameters) to achieve a high quality output.
- ceejayoz 3y agoA dedicated fridge for milk bottles seems like the espresso variant of audiophiles buying fancy $1k/meter Ethernet cables.
- mschuster91 3y agoMilk is a perfect breeding ground for all sorts of nasty pathogens - it's a nutrient ffs. Better invest ~160€ [1] into a dedicated fridge than have half the office get the shits because someone forgot to put the milk back into the fridge over night. I've seen that happen, and if it's more serious it may actually lead to an OSHA/food safety inspection and serious fines. [1] https://www.amazon.de/milchk%C3%BChlschrank/s?k=milchk%C3%BChlschrank https://www.amazon.de/milchk%C3%BChlschrank/s?k=milchk%C3%BC...
- ceejayoz 3y ago
- fps-hero 3y agoIt’s easy to say “PID controllers are audiophile tech for coffee machines”, but the most basic construction for temperature control is a thermostat, and that has been good enough for Italian coffee machines for a very long time. A PID controller is positively space age technology compared to a bi-metal thermostat. Where PID controllers shine is in well built but small capacity machines. A Silvia has a tiny 300mL boiler. If you’re pulling a double shot (60mL), you’re losing 20% of the heat just from pumping fresh water into the boiler. Add a PID controller to the mix, the static losses are accounted for by the integral controller, and it will instantly ramp up the heat when you pull a shot via the derivative and proportional action. This would keep the temperature significantly more consistent during a 30 second shot. A PID controller in this instance is transformative in turning a comparatively cheap machine into a very capable piece of kit. In a larger machine with a 1L boiler pulling a shot barely causes a ripple in temperature because of the larger boiler capacity and additional heat inertia. They might benefit from a PID controller but it’s difficult to justify over the simplicity of a thermostat, and coffee machines have been around longer than electronics have been cheap.
- pidtuner 3y ago[dead]