dinsdag 20 januari 2015

Finished Pavoni & Fuji PXG4 pid: Probe Inside the Ring

Delicious cup: all the work was well invested!
At the end of the previous blog about the pressostat and PID working together, I mentioned that I would like to clean up the xmas tree of wires and have as few cables and probes as possible to visually disturb the classic design of the La Pavoni.

Getting rid of the probe that was fastened with copper tape to the top of the brew group was a priority. I wanted to hide a new probe in the cooling fin as close as possible to the brew group.

This morning I asked Tije if he could do that. He would need to drill a straight hole of 3mm diameter in the 4mm inner ring of the cooling fin that sits as a tight clamp around the brew group.

Always the optimist, Tije set to work:


First, Tije made a piece of aluminum to fit the inside of the ring. Drilling a thin hole straight through the curved aluminum, if possible tangentially going through the inside of the ring to touch the brew head directly, you need the support of the temporary inside piece.

Aligning the 3mm drill

Tije at work

Finished! Perfect.
At home, I first measured the temperature from the probe inside the ring when the probe on top of the group was at the designed 86ºC. That turned out to be 78ºC. Then I removed the top probe and had only the new 'hidden' probe to work with.
You have to look to find the 'hidden' probe
From the back of the cooling fin, just one probe cable goes to the controller.
Much cleaner sight, just the La Pavoni and the external controller
The La Pavoni machine has been expanded and enhanced in stability, but it is not turned into a jukebox with lots of extra lights and dials. Just the little wire going from the back of the cooling ring down to the cable that connects to the external control box.  The La Pavoni could even work with just the internal pressostat but for best extraction stability connecting the controller is a welcome extra feature.

Below, you can see the graph of the group temperature probe as the PXG4 is doing its auto-tune to determine the best settings of the internal P, I and D variables. Switching on the heating element for a full minute, the PID traces the delay and proportion of the results, repeats this once more 10 minutes later and then, after another 15 minutes of calculations, it has decided what's the best strategy to keep the group stable as measured from the new vantage point.

During testing with both probes active, I noticed that changes in the room, like a big window opened wide, or me blowing air past the group, change the group temperature, up to a few degrees and if this is a new situation that lasts longer than a few moments, the PID reacts and compensates. I think this is an advantage over PIDs that merely keep the boiler at a specific temperature, especially for a machine with a relatively small brew group as the La Pavoni. I expect that bigger professional brew groups with their much heavier weight keep themselves stable more easily.


I pulled two espresso's. The brew group probe showed a minor blip of two degrees Celsius and the PID guided it back to idle temperature.

Idling, the group temp as seen by the probe is between 77.8ºC and 78.2ºC



I think this La Pavoni PID & P-stat project is finished.

Thanks Wa'il, Tije, Marko and the Fuji team France for your help and suggestions!!


Related posts:

http://kostverlorenvaart.blogspot.nl/2015/01/la-pavoni-fuji-pxg4-pid-and-pressostat.html

http://kostverlorenvaart.blogspot.nl/2015/01/la-pavoni-brew-group-temp-control.html

http://kostverlorenvaart.blogspot.nl/2015/01/plotting-pavoni-pulse.html

http://kostverlorenvaart.blogspot.nl/2015/01/time-to-pid-pavoni.html

http://kostverlorenvaart.blogspot.nl/2015/01/wiring-la-pavoni-for-fuji-pxg-4.html






maandag 19 januari 2015

Hey look who's on Saudi Arabian tv!

It is Wa'il!
(and my right hand for a moment)





La Pavoni: Fuji PXG4 PID and Pressostat Working Together

(Finished project on
http://kostverlorenvaart.blogspot.nl/2015/01/finished-pavoni-fuji-pxg4-pid-probe.html)

In my previous post I showed how the boiler of the machine almost gets too hot and pressurized when warming up with the PID temperature probe connected to the Brew Head.

I decided it would be best if I could warm up the machine using the pressostat because it is very good  at starting up as fast as possible while keeping the pressure inside the boiler at a modest level.

Once the machine is almost on operational pressure & temperature, the PXG4 could take over and make sure the brew head reaches its ideal temperature and stays there too.

Thinking this through, it struck me how very convenient it is that at start up, the pressostat is ON, whereas the Solid State Relay of the PXG4 box is OFF as long as the internal program has not been started.

So the PXG4 can be ON and helping me monitor the temperature, but it will not start controlling the system until I press the button that fires up the program in its memory.

If I set the pressostat to stop heating the machine at a pressure that matches a boiler temperature close to 110ºC, I can start the PXG4 program and the PXG4 will take over control, switching the heater ON and OFF as much as is needed to reach and maintain the correct brew head temperature.

This will get the machine the best of both worlds. Not a PID replacing a P-stat, but P-stat and PID working together, each in their own best area.

I also moved the Boiler Temperature probe from below the boiler to the outside, at the back of the boiler. Below the boiler seemed a great spot earlier on but it is so close to the heating element that it does not "see" the general temperature changes in the boiler water very well.

After today I will leave off the Boiler Temperature probe altogether. I want to avoid turning the La Pavoni into a Xmas tree of gadgets and wires. More wires facilitate more tripping accidents later on, and more parts that can fail.

And also, by now I feel I know enough about the boiler temperature. It goes up and down but that's fine as long as the brew head temperature remains straight as an arrow. That means my extraction temperature will be stable as well.

In the graphs below you can still see the Boiler Temperature results.


The pressostat kindly warms up the machine here, the boiler warming up in a fairly straight line. After reaching the boiling point of 100ºC I close the steam wand as soon as serious drops of water spit out and steam follows. I also do a short flush of the group to help heating it up. After that the machine idles with the group around 75ºC and the p-stat cycling, switching the element on and off  .

After 12 minutes I push the start button of the PXG4. It has been on, but not in control until then, just passing on information about the group head temperature and the inactive SSR. As soon as the PXG4 drives the machine, you can see the red line showing the target group temperature and the orange line showing the percentage of heating element power applied to get there and to maintain the best temperature.

Next I focus on an extraction. During the extraction, hot water from the boiler flows in, the group reaches its optimal temperature of 93ºC towards the end of the extraction and the heating element stays off for a few minutes to let the group cool down to the situation before the extraction.


In close up:


So next time the blue line will be gone.

I will visit Tije to see if he can make me a secure connection for the Brew group Temperature probe. This is needed to make the system robust. Until now I had the probe fastened to the group with a piece of copper tape that's mostly used by builders of electric guitars to shield the internal wires from any interference. If this probe would accidentally come loose, the PXG4 would switch on max power to get the probe hot, but it would fail and overheat the boiler.

---

Related posts:

http://kostverlorenvaart.blogspot.nl/2015/01/la-pavoni-brew-group-temp-control.html

http://kostverlorenvaart.blogspot.nl/2015/01/plotting-pavoni-pulse.html

http://kostverlorenvaart.blogspot.nl/2015/01/time-to-pid-pavoni.html

http://kostverlorenvaart.blogspot.nl/2015/01/wiring-la-pavoni-for-fuji-pxg-4.html






zaterdag 17 januari 2015

La Pavoni Brew Group Temp Control

(Finished project on
http://kostverlorenvaart.blogspot.nl/2015/01/finished-pavoni-fuji-pxg4-pid-probe.html)

In the previous post I had a PID made by Fuji, their PXG4, control the temperature in the bottom of the boiler of the La Pavoni.

Since I had figured out by measurements and tasting that the extraction temperature inside the puck is at the optimal value if the probe on the top of the brew group measures 88ºC I has subsequently determined that a boiler temperature of 116ºC ensures that at my current room temperature the brew group maintains the desirable temperature.

Having the probe that the PXG4 works with on the bottom of the boiler is convenient because the SSR output of the PXG4 also connects to the heating element on a spot below the boiler, so both cables can be bundled which makes for less hassle during transport, for instance when emptying the boiler in the kitchen sink.

Most other espresso machines that flaunt a PID also use the boiler connection for their probe. This way the consumer has one less cable to worry about, as it is hidden away in the casing of the machine. The manufacturer usually assumes a certain "offset" for the difference between the Boiler Temperature and the desired Brew group Temperature. For instance, if the Brew group Temp needs to be 88ºC as in the case of my La Pavoni, and the Boiler Temperature matching that is 116ºC, the offset is 28ºC.

Flint, a reader on Home-Barista, suggested I should measure this, as I have done in my previous post and I enjoyed taking this one step further: having the PXG4 work with the Brew group Temperature probe directly and letting it figure out the optimal Boiler Temperature for me.

PXG4 connected to Brew group Temp probe, top left of lever
Warming up the machine from a cold start was not ideal yet, just like having your car on highway cruise control speed while still leaving your parking space is not ideal. I worked around this by doing a few flushes, but this is not the way to go. I had not run the auto-tune for this situation yet, so having done that might help on the next start-up. In order to warm up the group, the PXG tries to heat up the boiler more than usual.

Probably the best approach would be to warm up the machine using the p-stat and once the group is near its operational temperature, switch on the "autopilot" / "cruise control". I would need to add a switch to the La Pavoni to go from one control to the other. Not a problem.
Warm up flushes and auto-tune
Above, you see the result of the three flushes, and the meandering of Boiler Temperature and Brew group Temperature during the time the PXG4 is in auto-tuning mode.
After auto-tune, PXG4 ensures a perfectly stable Brew group Temp
 Highlighting the auto-tuning and the resulting stability of the Brew group Temperature.

Locking in the cool portafilter is easily compensated by PXG4
Normally, having the room temperature mass of the portafilter locked in changes the temperature of the brew group a little. This is in practice never a real problem because at extraction time, hot water flows in and these small differences hardly affect the extraction temperature in the coffee puck. Nevertheless, I like to see that the PXG4 easily compensates by raising the Boiler Temperature 2ºC.
Temperature stability over idle time
The result is a very stable brew group temperature during idling. Seeing how it behaves with a series of extractions will be a possible next test.

Related posts:

http://kostverlorenvaart.blogspot.nl/2015/01/plotting-pavoni-pulse.html

http://kostverlorenvaart.blogspot.nl/2015/01/time-to-pid-pavoni.html

http://kostverlorenvaart.blogspot.nl/2015/01/wiring-la-pavoni-for-fuji-pxg-4.html





vrijdag 16 januari 2015

Plotting the Pavoni Pulse


(Finished project on
http://kostverlorenvaart.blogspot.nl/2015/01/finished-pavoni-fuji-pxg4-pid-probe.html)

In the previous post I described how a Fuji PXG4 can control the La Pavoni Pro lever machine.

Today I added two extra probes to the free Artisan software so I could simultaneously monitor the temperatures of three essential points indicating the overall behavior and stability of the machine:

1) BT=Boiler Temperature as measured at the bottom of the boiler
2) Brew Group temperature as measured on top of the brew group
3) Coffee Puck, to see at what temperature the espresso is extracted

To connect the two extra probes I used the Amprobe 56 temperature logger.
Setup: Artisan program, PXG4 controller, La Pavoni, Amprobe, books about lichens
Two earlier tests, not documented here, showed me what's the best Boiler Temperature for an extraction around 93ºC. In such things, taste of the espresso and the looks of the crema (not too light, not too dark, the right 'tiger skin' flecks) are decisive and not the 'exact' measurements since probes and loggers have a certain tolerance.

A BT of 120 yielded a scorching hot espresso that touched 99ºC in the puck, so practically boiling temperatures and a BT of 110 got the espresso too light and not hot enough for me. At BT=116ºC this La Pavoni Pro machine worked best as the graphs below will illustrate.

The task (see red line in the graph below) I had set for the PXG4 was to get the boiler at 116ºC in 10 minutes. You can see below that the actual Boiler Temperature joins the target at about 12 minutes.

What I find most fascinating is the behavior of the water between the 7 minute point and the 10 minute point. At 7 minutes, around 70ºC, the water inside the boiler gets more audible, bubbling and softly whistling for a moment even. Air above the water is expanding and softly blowing out of the opened steam wand. The water is heating up faster, the BT line climbing more steeply than before and at the same time the PXG4 needs less power to keep the Rate of Rise it had.

I am not sure what causes the heater in the boiler to be more effective all of a sudden, even with less power driving it. Could it be that not only the air column above the water starts moving out and a little less mass needs to be heated, but also that air that was 'dissolved' in the water is escaping, creating a more dense water mass? See also the more detailed graph further down this page.

Complete graph, annotated (details cut out below)
After 13 minutes, when the BT target has been reached, I do a 30ml flush to warm up the group more quickly. This is effective. After a first espresso I do a brief flush to clean the shower screen but after that the group needs a few minutes to cool down so in the future I'd better just wipe the shower screen clean.

Close up, showing coffee puck probe inside the NAKED portafilter basket
The two extractions that I did came out fairly well but at the side of the basket where the probe was inserted, the probe had wriggled inside the puck as I locked in the portafilter against the group. This could be avoided if I drilled a hole in the bottom of the basket but that would also possibly cause channeling. Now, some first drops appeared below the insertion of the probe and I took some extra time for pre-infusion to get the puck wet and expanded, closing off most of the 'leakage'.

The "NAKED" portafilter in the picture was produced by Gábor from http://www.naked-portafilter.com

Highlighting the interesting behavior around boiling temperature
 Above, I highlight what's happening in the 3 minutes after the BT reaches 70ºC
Top view with used / dry coffee puck

Highlighting group and puck temp around extractions
The extraction of espresso's is fairly stable in temperature, thanks to the Fuji PXG4 and the special La Pavoni Heat Sink built for me by Tije in Amsterdam. The second espresso was slightly warmer, maybe caused by the brief flush but after that second extraction, the group temp returns easily to a temperature close to that before the extraction.

The second cup happened to taste a little better.

The Fuji PXG4 is controlling the machine very well. Since it has no "dead band" the target temperature can be sustained continuously and as such it "wins" from a pressostat but the pressostat does its job at a very low cost, inside a very tiny part with a simple screw to adjust its setting and that simplicity is unbeatable.

I do like the option that the Fuji PXG4 provides to monitor so many details of the 'life' inside the machine, especially when coupled to Artisan and optional extra probes, using the Amprobe 56 or, as an alternative, the more affordable Phidgets.
Espresso and graphs
Related links:

http://kostverlorenvaart.blogspot.nl/2015/01/wiring-la-pavoni-for-fuji-pxg-4.html





woensdag 14 januari 2015

Time to PID a Pavoni


(Finished project on
http://kostverlorenvaart.blogspot.nl/2015/01/finished-pavoni-fuji-pxg4-pid-probe.html)


Several models of espresso machines have a PID on board these days. As far as I know, all of these are used as mere thermostats, making sure the boiler (and sometimes a second boiler) is kept at the right designated temperature, and since temperature and pressure go hand in hand inside a boiler, also the correct pressure.

For a brew boiler, the temperature is most important even though the pre-infusion pressure is relevant as well in a lever machine. For a steam boiler, the pressure is most important to be able to steam that milk to a creamy froth. Still, these values, pressure and temperature, cannot be seen separately.

A problem for most PID devices is that it's HOT inside an espresso machine, around 50ºC and the PIDs are mostly designed to survive in an environment of 60ºC maximum. The result is that such a PID inside often has a limited lifetime.

On the current Rocket espresso machines the PID is placed as low as possible in the housing of the machine, hidden behind the drip tray, where the heat is less of a problem and where room temperature air is flowing past it, up into the body of the machine. One additional advantage is that the "digital" looks of the PID does not ruin the classic design of the machine front.

A PID can be very convenient in the smallest semi-automatic espresso machines like the Rancilio Silvia.

Some have already built a simple PID in a La Pavoni as well, as you can see with a quick search on YouTube. One user, Ray, finished such a project in 2011 and he has recently decided to sell that machine for $2,500.=

Still, I haven't yet seen anyone fitting an espresso machine with a fully programmable PID that can also be programmed and monitored on a computer and an iPhone. So I set out to build one, copying most of the hardware and settings from my earlier build of a roast controller, based on the highly configurable Fuji PXG4 controller.

Fuji PXG4 controller on the left, red Amprobe for group temp, iPhone monitor, La Pavoni and Artisan on the laptop
One thing that I learned from the first two tests, warming up the La Pavoni and making an espresso, is that it makes a big difference that this little machine has no anti-vac.

As the heater is on full power after the first minute, and the water inside the boiler warms up, the air above the water column also heats up and expands. This "false pressure" cannot escape as it does during warm up in most larger espresso machines and the heating element struggles to get the temperature and 'real' water/steam pressure up.

You can see this in the illustrations below.

Released steam/air after 10 minutes, then the water warmed up faster
The dark line that climbs up immediately at the start is the heater which is gradually turned up to full capacity in the first minute. The red line is the target temperature which is reached at 13 minutes. The PXG4 already gradually turns down the heater after 11 minutes in anticipation of the water inside the boiler reaching its final temperature level. A more primitive PID might allow the element to work harder, then overshooting the target and subsequently meander around the actual target temperature.

Having the PXG4 "get the feel" of the La Pavoni during a short "auto tune" session does help and also switching on the optional "fuzzy logic" of the PXG4 instantly makes the controller very effective. No need to tweak and search for the optimal settings of the P, I and D variables.

What intrigued me was how much easier the heater could do its job after I had released the excess of expanded air after 10 minutes. Until then, the heater had been on full blast and all of a sudden it had a much easier life.

This could be a reason to build an anti-vac on the La Pavoni or at least make it a habit to keep the steam valve open and stay around the machine to close it once hot water and steam begin to come out of the steam wand.

In the example below, I did just that, keeping the steam valve open until it started to spit hot wetness:

Kept steam valve opened until steam / hot water spat out at about 9:30
In both cases, the bottom of the boiler reached the boiling point of 100ºC at about 10 minutes.

Interestingly, after 9 minutes in the second example with the steam wand open, starting at 80ºC when the boiler water began to audibly "sing", the PXG4 temporarily lowered the heater load and at the same time the heater was more effective. I closed the steam valve around 9:30 and the PXG4 kept the element at full capacity again, lowering that gradually after 12:30 to make sure the temperature landed and stayed exactly at the new target temperature that I had selected.

Another thing that strikes me: once the boiler is hot enough, the element has very little work to do, around 20-30% of capacity, in short spurts of a few seconds at a time. Having a 1000W espresso machine does not mean you are spending much money on a machine burning a kilowatt continuously. It's mostly idling away at a low capacity.

Now it has become very easy to figure out what temperature I like best for my cup from this little machine.

I have added a second probe to the group so I can monitor what (if any) constant difference there is between the temperature at the bottom of the boiler and the temperature on the top of the brew group, comparing this to the heat sensation when drinking an espresso, and looking at the color of the extraction. The crema should be darkly mottled but not too dark as if burnt.

Anyway, next time I need to go on a short vacation I plan to take this new expanded setup with me so I can safely ignore the tourist destinations near my hotel and enjoy the bliss of my own delicious brew!

Not forgetting this is in the end all about the joy in the cup!
As always, thanks Marko Luther for the free Artisan software, Wa'il al-Wohaibi for your advice, and the staff at FUJI for your assistance. And Tije for customizing the aluminum box!

Related links:

http://kostverlorenvaart.blogspot.nl/2015/01/wiring-la-pavoni-for-fuji-pxg-4.html











dinsdag 13 januari 2015

Wiring the La Pavoni for the Fuji PXG-4 controller


(Finished project on
http://kostverlorenvaart.blogspot.nl/2015/01/finished-pavoni-fuji-pxg4-pid-probe.html)


To safely connect the SSR output of the new Fuji PXG-4 controller to the heating element of the La Pavoni, I drilled a hole in the side of the foot of the little espresso machine. A flexible cable (formerly the 220V cable of a Macbook Pro) goes from the Fuji box into the bottom of the La Pavoni and the two connectors that the pressostat was switching are now connected to that cable with cable shoes.

Pressostat wires still in place
I used tie-wraps to ensure that the new cabling does not touch any of the hot surfaces and another wide  tie-wrap to make sure the cable can't be pulled out by accident.

I decided to connect the K-type thermocouple to the bottom of the boiler at the same spot where the thermal fuse is connected.
K-type probe at the bottom centre left, SSR cables connected

This way, the probe cable and the SSR cable can both use the same exit and be also tie-wrapped together. The advantage is that this new addition of a thermo-controller does not come with too many different wires that will trail the espresso machine if for instance I want to unhook it and empty the boiler into the kitchen sink.

Also, if the probe is securely fastened, one avoids that it accidentally comes lose and then causes the temperature controller to fire up the heating element on full capacity trying to raise the temperature of the probe that's dangling somewhere at room temperature.

I do wonder if my SSR cables are robust enough to stand the heat in the foot of the machine. The older wires all have a different type coating, the same type you see in very old radios or toasters. The wires inside my bigger more modern espresso machines are not very different than what I used now though.

I configured the Fuji PXG-4 using the detailed blog I'd written early last year. Happy to have saved that step-by-step procedure at the time.
Ready to roll, Fuji PXG-4 on the left, USB cable center, La Pavoni right
I manually went through the menus of the PXG4 as described in the "setup" blog listed below and I noticed when making the connection to the Artisan software that I had left out the setting of the decimal value in my earlier setup description. So do not forget to do this as well: as per page 75 of the  full PXG4 manual, set one decimal place. Then, Artisan will not see 24ºC as 2.4ºC ;-)

Also, I struggled a while getting the PXG4 to communicate with Artisan over the USB port and just before hacking into the normally "hidden" communication menu I found out that the tiny "audio type" jack under the PXG4 needed to be pushed in a tiny bit more... I want to thank the Fuji France director Stéphane Montbrizon for his amazingly fast late night response to my request for assistance!

Related links: