Jump to content

Silvia PID build

Recommended Posts


I'm also doing a DYI PID on ESP32. Coding in MicroPython. 

Wondering why you are not using PID under 85C? The proportional will just give 100% power when the boiler is cold. 

May eventually post on GitHub, but have so far posted some PID code on the MicroPython forum, with anti integrator windup.


First step was to just get temperature control. Steam switch as digital in to change target temp. A bit crude:




The next step will be a bit more ambitious. Some more components




PSU, 2 SSR and a pressure sensor. The pressure gauge attached to the original portafilter holder will only be used to calibrate the sensor. Plan to remove the OPV.

Plan to completely re-wire the machine, fit all components inside and connect the switches as digital ins. A pretty major job, that will take some time to reverse. So, a bit hesitant.

Final step could be to integrate a weight sensor under the drip tray or a BLE scale. The Acaia Lunar has documented API, but costs more than what I payed for my Silvia.



Link to post
Share on other sites
  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Thanks guys! My next move will be to get the liquid level sensor setup. The only thing holding me back is that it needs sticking to the side of the tank, meaning once installed it'll be nigh on i

Hi everyone! New Silvia owner here... with a lot of time on my hands during lock down and a shiny new Silvia to play around with I decided to try build my own PID controller. I thought I'd post h

@AdG For the water level sensor, I bought a non-contact capacitive sensor from Amazon (~£15), they work great and can be mounted on the outside of the tank. There's actually a photo of it in my first

Posted Images

4 hours ago, Daniel R said:

Plan to completely re-wire the machine, fit all components inside and connect the switches as digital ins. A pretty major job, that will take some time to reverse. So, a bit hesitant.

Hi Daniel, 

Looks good! You’re braver than me going for a full re-wire. Have to admit I fancied doing it, but I just couldn’t bring myself to completely strip down a brand new machine. If I ever do it though, that stupid power saving module is going in the bin immediately! 

Are you going to control the pressure or is the sensor just for monitoring? After a water level sensor that would be my next upgrade.


As for my PID settings, basically I originally wrote the code for beer brewing in a 50L boiler and couldn’t be bothered to spend too long tuning for the new setup. The performance seemed ok with a bit of playing around, although the settings are way too conservative hence the fudge below 85C.




Link to post
Share on other sites

Yep, will try to implement pressure profiling. 

Vibratory pumps seems a bit tricky to control. It has a diode, so that every half cycle is a stroke. I read that having a 250k resistor across the SSR is required for it detect the zero crossing (and work correctly).

Will make sure that I can control pump power before installing the pressure sensor and removing the OPV.

Not sure when I will continue this project. Will probably wait until my wife and kids are traveling, so that I have more time available. Would hate to be without good espresso for longer than necessary.

Also, I have not properly tuned the PID. Just using the proportional for now. Oscillates a bit, but within 1C.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • About
    Coffee Forums UK is the UK's premier coffee forum Started in June 2008 by Glenn Watson, we now have more than 24000 mainly UK based members, and welcome more than 3000 members and visitors from around the world each day! With strategic investment and digital expertise from the Jackson Lockhart team (Tait Pollack and Adam Bateman), we are taking Coffee Forums UK to the next level, and are delighted to share the journey with you.

    New Members:
    We are often referred to as the friendliest forum on the web and we look forward to welcoming you onboard. Please read our Terms of Use. We stick by them, existing members please familiarise yourselves with them.


    Coffee Forums Media Kit

    Click Here To Buy Advertising Space 
    £100 p/m when paid yearly, up-to: 690000 banner impressions per month!

    Donate / Sponsor

    Get Your Supporter Badge Today (per year)


    Coffee Forums Logo

  • Create New...