Our Valued Sponsor
OpinionsConsumer ReviewsGuides and How TosCoffeeGeek ReviewsResourcesForums
Espresso: Espresso Mods and Restorations
Coding a universal Arduino Coffee Control unit with pid
Donate to Coffee Kids
Coffee Kids works with farming communities around the world, improving lives. Donate today.
www.coffeekids.org
 
Not Logged in: Log In to Postlog in
New Topics updated topics   New Posts new posts   Unanswered Posts new unanswered  
Search Discussion Board search   Discussion Board FAQ faq   Signup sign up  
Discussions > Espresso > Espresso Mods > Coding a...  
view previous topic | view next topic | view all topics
showing page 1 of 2 last page next page
Author Messages
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Fri Apr 26, 2013, 9:33am
Subject: Coding a universal Arduino Coffee Control unit with pid
 

I have a gaggia coffee, and an interest in everything geeky. I'm combining the two currently and building an arduino "brain" for my gaggia. Nothing about this idea or implementation is going to be machine-specific so I would love to open source it. It is currently in pre-alpha (benchtop, not even hooked up to the machine) but here is the current plan.

Hardware_________________________________
2 ssr's for controlling pump power and boiler power
1 arduino for doing the heavy lifting
1 arduino sd shield for data logging and saving presets (*not sourced or implemented)
2 thermistors for temp measurement
1 4x20 crystalfontz serial lcd
1 ir receiver
1 apple remote (any would work)
1 physical button
1 cheap 0.1g scale hacked to output to arduino (*not sourced or implemented)

Software Overview_________________________
Pid implemented in software
remote controls (mode / stop / start / changes variables)
physical button is start/stop

Modes___________________________________
cool - display temp and ssr status. This is also the error mode
heat - warming up. display set temp and current temp and ssr status.
brew - manual mode. Display set temp, current temp and ssr status. once brewing, display shot clock.
time - time priority brewing mode. Stop after a certain amount of time has passes. once brewing, display shot clock.
mass - mass priority - stop after a certain mass is achieved. once brewing, display shot weight.
menu* - display shot counter, date of last descale, preinfuse status

Neat stuff________________________________
Arduino outputs status via serial, so I wrote a processing app to graph temp and status over time with .1s resolution
With a little more work, the machine could be controlled entirely by usb. My current focus however is on getting it to work standalone.

To be implemented________________________
preinfuse mode
timer to go into cool mode
auto on?
boiler protection - overtemp detect and turn pump on
steam mode
flush mode
pre-brew pid temp bump / technique in order to keep brew temp more consistent.
saving logs with 1-10 shot quality rating to sd for later analysis

Considering implementation_________________
pressure monitoring / profiling

So my reason for posting is to ask if there is anyone else out there that is interested in this project? I've seen a lot of arduino projects on here, and it may be about time to try to build a platform that anyone can work off of. Can you think of anything else cool that I should implement?

I look forward to hearing everyone's thoughts.
back to top
 View Profile Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Sat Apr 27, 2013, 2:51pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

This is an overview pic of the hardware.
Arduino with proto shield.
Ir receiver is the little black thing poking up from the proto board
thermistor is the tiny glass ball with brass legs
unimplemented physical button is laying at 9:00 on the desk
ssr for boiler control is at 5:00
4x20 serial lcd is the big blue screen

There are a few things not pictured, but this is what I am currently testing with.

tinyenormous: overview.jpg
(Click for larger image)
back to top
 View Profile Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Sat Apr 27, 2013, 2:53pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

This is the time mode.
start time
end time

The right is a big counter that will go up to 3(!) digits.
The b/p/s mean
b=boiler off / B=boiler on
p=pump off / P=pump on
s=seconds key

tinyenormous: timemode.jpg
(Click for larger image)
back to top
 View Profile Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Sat Apr 27, 2013, 2:55pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

This is mass mode. It is intended to have a small scale hooked up under the shot glass, and allow mass to determine when the shot ends.

The left side shows
time
current weight
end weight
mode

The right side shows weight in grams (with .1 resolution)
The far right characters act the same as the time screen, but g is the key for weight.

tinyenormous: massmode.jpg
(Click for larger image)
back to top
 View Profile Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Sat Apr 27, 2013, 2:58pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

This is the brew mode. This is the simplest mode, as you have to start and stop things yourself.

On the left it has
time
current temp
set temp
mode

The right side (should) show the current temp, but I'm wondering if it should be time as I write this...

tinyenormous: brewmode.jpg
(Click for larger image)
back to top
 View Profile Link to this post
ddubick
Senior Member


Joined: 1 May 2012
Posts: 148
Location: Calgary, Alberta, Canada
Expertise: I live coffee

Espresso: Nuova Simonelli Appia 1Gr
Grinder: OE Pharos, Macap M5, Nuova...
Roaster: Behmor 1600
Posted Sun Apr 28, 2013, 8:32pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

I would be very interested to know how you're going to integrate a scale.  I believe I tried googling it a few months ago but didn't come up with anything.

This would be an excellent addition to my own project.  "My Appia modding thread (was Automation of HX cooling flush?)"
back to top
 View Profile Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Mon Apr 29, 2013, 7:00pm
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

Hi ddubick!

I haven't bought a scale yet, so I'm not entirely sure how it will go. There are three routes I can see so far...

Here is a hack that uses a cheap scale and taps two wires into the arduino
Click Here (www.avdweb.nl)

here is another similar setup. This one is different in that it only uses the load sensor from the scale and abandons all of the rest.
Click Here (jdesbonnet.blogspot.com)

Here is a more expensive scale ($75)that doesn't seem to need much hacking whatsoever.
Click Here (learn.adafruit.com)

As mentioned before this will really be based on how the scale is engineered, and I can't tell about that before I buy it. I'll post back after I buy a cheap one and open it up!
back to top
 View Profile Link to this post
DanoM
Senior Member


Joined: 20 Mar 2013
Posts: 389
Location: Los Angeles
Expertise: I love coffee

Espresso: Bezzera Strega, '84 La...
Grinder: Compak K10, Kludge grinder,...
Posted Tue Apr 30, 2013, 7:33am
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

I would say ditch the scale.  If you have an accurate flow meter would that not be just as good?  Say you want to dispense 30g of product, then that would be 30ml of water.  You wouldn't have an end weight of 30g until you figured out the normal puck absorption and any waste water in the line, but that can be calculated with a few runs and factored in to compensate.

If you have a flow meter you could use that for pre-infusion and stage processing - especially with PWM control of the pressure.
Infuse at low pressure for 10ml
Wait for 5 seconds
ramp up pressure to 9 for the main pull for another 10ml
final 20 ml is pressurized at 6-8 depending on your preference
(there's 10ml included overage in the above example)

At least that's the dream system I'm hoping for someday...
back to top
 View Profile Link to this post
Burner0000
Senior Member


Joined: 28 Jul 2011
Posts: 1,090
Location: Cambridge, Ontario Canada
Expertise: Professional

Espresso: Rancilio Silvia, VFA Expres...
Grinder: Macap MX/VFA N1464/Kyocera...
Drip: Manual Drip, French Press
Roaster: Behmor 1600 / Sonofresco
Posted Tue Apr 30, 2013, 8:12am
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

Can't wait to see the finished product!
back to top
 View Profile Contact via MSN Messenger Link to this post
tinyenormous
Senior Member


Joined: 22 Mar 2013
Posts: 30
Location: boston
Expertise: I love coffee

Espresso: gaggia coffee
Grinder: bodium bistro burr / Hario...
Drip: v60 / aeropress
Posted Tue Apr 30, 2013, 8:26am
Subject: Re: Coding a universal Arduino Coffee Control unit with pid
 

DanoM Said:

I would say ditch the scale.  If you have an accurate flow meter would that not be just as good?  

Posted April 30, 2013 link

That's a good thought. It would look cleaner as well. The only plus for using a scale would be that I could also set it up to measure the weight of coffee grounds beforehand and give another data point. I do like how easy a flow meter would be though. I think that the factors you mentioned would add a bit of slop to the measurement (as compared to weight) but we're not splitting the atom here. A little bit of slop should be tolerable.

Moving on to your second thought - Does anyone have a recommendation on digital pressure gauges? My first thought is an oil pressure unit from a car, but I would ideally like it to be food safe and water approved.
back to top
 View Profile Link to this post
showing page 1 of 2 last page next page
view previous topic | view next topic | view all topics
Discussions > Espresso > Espresso Mods > Coding a...  
New Topics updated topics   New Posts new posts   Unanswered Posts new unanswered     Search Discussion Board search   Discussion Board FAQ faq   Signup sign up  
Not Logged in: Log In to Postlog in
Discussions Quick Jump:
Symbols: New Posts= New Posts since your last visit      No New Posts= No New Posts since last visit     Go to most recent post= Newest post
Forum Rules:
No profanity, illegal acts or personal attacks will be tolerated in these discussion boards.
No commercial posting of any nature will be tolerated; only private sales by private individuals, in the "Buy and Sell" forum.
No SEO style postings will be tolerated. SEO related posts will result in immediate ban from CoffeeGeek.
No cross posting allowed - do not post your topic to more than one forum, nor repost a topic to the same forum.
Who Can Read The Forum? Anyone can read posts in these discussion boards.
Who Can Post New Topics? Any registered CoffeeGeek member can post new topics.
Who Can Post Replies? Any registered CoffeeGeek member can post replies.
Can Photos be posted? Anyone can post photos in their new topics or replies.
Who can change or delete posts? Any CoffeeGeek member can edit their own posts. Only moderators can delete posts.
Probationary Period: If you are a new signup for CoffeeGeek, you cannot promote, endorse, criticise or otherwise post an unsolicited endorsement for any company, product or service in your first five postings.
Rocket R58 Double Boiler
Rocket Espresso R58 Double Boiler -  Everything you need for the perfect shot!
www.seattlecoffeegear.com
Home | Opinions | Consumer Reviews | Guides & How Tos | CoffeeGeek Reviews | Resources | Forums | Contact Us
CoffeeGeek.com, CoffeeGeek, and Coffee Geek, along with all associated content & images are copyright ©2000-2014 by Mark Prince, all rights reserved, unless otherwise indicated. Content, code, and images may not be reused without permission. Usage of this website signifies agreement with our Terms and Conditions. (0.270920991898)
Privacy Policy | Copyright Info | Terms and Conditions | CoffeeGeek Advertisers | RSS | Find us on Google+