Hi RPi gurus and enthusiasts!
Just got an RPi3B delivered and spent a couple of hours hooking it up, installing Raspian and generally basking in the total geek of it. Haven't been this excited over a dinky computer since my first Sinclair ZX Spectrum (yes, do the math ... actually *that* old).
The main purpose of getting it was to try to log and eventually automate my home coffee roasting rig. For those who haven't looked into coffee roasting, in a nutshell it's apply heat to green coffee beans until they turn brown. Of course there can be a ton of artisanal art-vs-science stuff flying around, but the crux of it is burning beans few steps short of setting a fire.
The definitive reference software for coffee roasting is
Artisan, which is free and Open Source, and lo and behold, there is a RPi version of it!
So now the challenge is getting it hooked up to the coffee roaster. I'm using a very basic stovetop drum roaster from Korea called the Kaldi Wide, which IMHO extremely decent for the price. However, it is a totally manual setup (even the thermometer is analogue) so true to the geek in me, almost from the day it was unboxed I've been modding and gearing up for a totally automated roaster, with the RPi at the core.
The main inputs coming in from the coffee roaster will be two temperature sensors (one for the beans and one for the heat source). Before I got the RPi I got a
Mastech MS6514 digital thermometer, which actually cost more than the RPi (duh!). The small upside is that this device has a USB output which I understand can be interfaced to the RPi. I have hooked it up to my Ubuntu notebook and with very minimal config managed to get it to feed data to the Artisan software. So in the short term, I intend to do the same to interface to the RPi. In the longer run, I intend to hook up a couple of MAX31855 chips to hook up the thermocouples directly.
The main control output from the RPi to the coffee roaster will be to adjust/control the heat source. The idea is to continually adjust the level of heat so that the beans will go up in temperature according to a predetermined pattern (known as a 'profile'). Doing this manually requires a lot of experience with the roaster and the specific beans (each bean batch will have difference characteristics), and it is especially difficult to repeat a profile exactly.
Bigger/more expensive roasters have PID temperature controllers to manage the heat source, but the latest version of the Artisan software actually has a PID built in. Yay!!
So now comes the question: I need to control the AC pumping the heatsource (which is a heat gun, BTW). Currently I'm using an SCR Voltage Regulator, which looks like is controlled by a simple potentiometer. I rather not hack the voltage regulator, in light of the high power going through it (up to 4KW) so instead I'm looking at a stepper motor to twist the potentiometer. I have found some
cheap stepper motors that come with ULN2003 driver boards meant for Arduino.
Will these work with RPi? Any pointers on how to hook them up?
Much much thanks in advance!