There are a lot of Popper Coffee Roaster modifications on the internet.
This is just another one with PID controller (theoretically this controller can be used on other roasters as well), based on Arduino .
I used the same Espressuino hardware with small modifications.
The software is a mix of 4 Arduino sketches:
- BBCC (BareBones Coffee Controller) project by Tim Hirzel
- Espressuino modifications
- Serial interface for Roastlogger software used from Roastlogger ProjectÂ Â Â
- Arduino Library for MAX31855 thermocouple amplifier by Adafruit
- Manual Mode
- Auto Mode
- PC Control Mode
- Settings Mode
1.Â Â Â Â In Manual Mode we can set the Target Temperature and Fan Speed only, the Time setting is unavailable in this Mode. The Fan Speed controlled using PWM signal (100% on LCD or in Roastlogger means max. RPM, this can be used only with DC motors). The Manual Mode can be activated by pressing the + (INCrement) or – (DECrement) button, while the system is in the STOP state. Using the START / STOP button we can START the AUTO Mode ~OR~ STOP the Manual Mode ~AND~ AUTO Mode. Heater and Servo Output controlled by the PID algorithm. There is a Total Elapsed Time counter in the upper right side of the LCD, which will be activated instantly when the Manual Mode starts. Temperature values can be displayed on Roastlogger or Artisan.
2.Â Â Â Â In Auto Mode we can set multiple RAMPs (max. 9 ) with different Temperature and Time settings. The FAN Speed also can be set individually for each RAMP. All RAMPs will be executed sequentially one by one, until the next RAMP has 0:00 time setting. In this case (Roasting Finished) the system will STOP the Heater and Servo Output and will START the FAN at full power (100%) for cooling the beans.Â The Total Elapsed Time counter will be activated automatically after the first RAMP period (preheat, this can be Enabled or Disabled in the main_test.ino project file). In Auto Mode we can change all of the SET values anytime (without Saving it to the EEPROM) by pressing the + or – and SELECT buttons (the linearized RAMP speed / angle, also will be changed in real time). The Auto Mode can be turned ON/OFF anytime, using the Start / Stop button.Â Temperature values can be displayed on Roastlogger or Artisan. In the Roasting video you can see a difference between Target Temperature and Real Time Measurement of Bean Temperature at the end of each Ramp. Now this is solved by increasing the Proportional component from PID and adding a customizable OFFSET value (difference in Celsius, between Target Temp and Real T. Bean Temp.)
3.Â Â Â Â In PC Control Mode we can display and set manually the FAN and Heater Power using the Roastlogger interface. Also we can program the Roastlogger for Automatic Control (RAMPs and PID). In PC Control Mode the Arduino PID is deactivated, so Roastlogger can take full control on Heater Power / Servo Output and FAN Power. The Total Elapsed Time counter, will be activated automatically, after you hit the “LOAD Beans” button in the Roastlogger software. PC Control Mode is activated by default, at startup (when the controller is turned ON). This can be turned OFF by pressing any button on the Controller (this will turn OFF only the control side from PC, the controller are still sending Temp. and FAN datas to the PC in every second).
4.Â Â Â Â In Settings Mode you can set each variable for each RAMP in part then Save in EEPROM by pressing the Start / Stop button, when the “Save” message will appear for a second, on the LCD. Just turn OFF the controller for EXIT from this mode.
This controller supports both Thermistors ( EPCOS â€“ B57560G104F â€“ THERMISTOR 100K 1% ) and K Thermocouples (sensor type can be set in main_test.ino project file). For Thermocouples you need the interface board with MAX31855 chip, from Adafruit.
There is a Roast-Counter information displayed at the System startup. This counter will be incremented at every Roast cycle, longer than 3 minutes (default). You can RESET this counter to 0, by pressing the Start/Stop and + (INCrement) buttons while you Turn ON the controller.
There are 4 different Profiles, each with 9 different programmable RAMPs. Each Profile can be loaded individually at the startup by pressing S4 or S3 or S2 or S1 button while you turn ON the controller.
It is possible to connect the controller to an Android device using Bluetooth (cheap HC-06 BTmodule) and TC4 Android App (by Brad, with modifications made by another friend). The PID values (P-I-D) can be changed from both BBCC Plotter and TC4 App (sending ex. PRO=90 or INT=0 or DER=0 ). Chart examples can be found here.
Note: Disconnect the Bluetooth module while uploading the sketch.
- One or both of the ThermistorsÂ or Thermocouples unconnected or shorted -> ERR messages on the LCD and Heater Power = 0%.
- ON Time limit exceeded (30 min. default) -> Heater Power = 0%.
First, software test:
First Hardware Test:
Full Roast video in Auto Mode:
Modified TC4 Android App Demo (final version will be different):
First Crack and Second Crack:
Circuit Diagram :
Arduino and Android Source Code :
Â If you want to roast bigger quantities (200g-400g) try this newer project: Fluid Bed Roaster
!!! Warning !!!
- Â NEVER LEAVE ROASTER UNATTENDED WHILE IN OPERATION !!!
- Always ensure there is a circular motion of the green beans in the roaster by adjusting the FAN speed, otherwise the beans can catch fire !!! First time make some tests without turning on the Heater!Â
- Roastlogger will Start with 100% Heat and 0% FAN! Do not plug in (~230V) the Heater while you didn’t set the Heat Power (slider) to 0% !Â
- Build and / or use at your own risk !!!
Default PID settings:Â P = 80;Â I = 0;Â D = 0;
My default Roast Profile:
- Ramp 1 – 3:00 min – 160C
- Ramp 2 – 3:00 min – 200C
- Ramp 3 – 3:00 min – 229C
- then cool the beans with 100% FAN while bean temp drops below 60C (aprox. 3 min)
P4 Connector pinout:
- Power Supply InputÂ (+7V to +15V)
- GND ( â€“ Common Ground)
- Vcc OUT (+5V Common)
- PWM FAN signal OUT (to N channel Power MOSFET)
- Vcc OUT (+5V NC for DB9 connector)
- SSR Heater (to SSR)
- Vcc OUT (+5V NC for DB9)
- Temp. sensor input 1 (to thermistor 1 – Air – Optional [100K resistor needed if not used])
- Vcc OUT (+5V NC for DB9)
- Temp. sensor input 2Â (to thermistor 2 – Bean)
P2 Connector pinout:
- GND (NC for DB9)
- AREF (NC for DB9)
- +5V Â (NC for DB9)
- AUX4 (NC for DB9)
- Servo Control OUT ( for mechanically controlled Heaters)
- AUX6 (I/O)
- RX (NC for DB9 â€“ TTL)
- TX (NC for DB9 â€“ TTL)
Push Button functions:
- S4 â€“ â€ START / STOPâ€³ â€“ Start / Stop Manual and Auto Mode
- S3 â€“ â€ + â€ â€“ Increment Value
- S2 â€“ â€Â â€“Â â€³ â€“ Decrement Value
- S1 â€“ â€ SELECT â€ â€“ Select variable which you want to change
Other functions available at startup (keep pressed then turn ON the controller):
- S4 â€“ â€œPROFILE 1 â€ â€“ Load PROFILE 1 with 9 RAMP settings
- S3 â€“ â€œPROFILE 2 â€ â€“ Load PROFILE 2 with 9 RAMP settings
- S2 â€“ â€œPROFILE 3 â€ â€“ Load PROFILE 3 with 9 RAMP settings
- S1 â€“ â€œPROFILE 4 â€ â€“Â Load PROFILE 4 with 9 RAMP settings
- S3 AND S4 â€“ â€œRESET RCâ€ â€“ Reset Roast Counter to 0
- S3 AND S2 – “BBCC PLOT” – Enable com. with BBCC Plotter – PID tuning (until Reset)
- S1 AND S2 â€“ â€œSETTINGSâ€ â€“ Start Settings Mode (until Reset)
Other Softwares and drivers needed for this project:
- Â Â Arduino (tested with 1.0)
- Â Â Processing (for BBCC Plotter, optional)
- Â Â BBCC Plotter (for PID tuning, optional)
- Â Â Roastlogger (for PC Control and temp. curves display, optional)
- Â Â Artisan (only for temperature curves display, optional)
- Â Â Oiginal TC4 Android App (HC-06 BTmodule needed, optional)
- Â Â Modified TC4 Android App with CSV Save function (HC-06 BTmodule needed, optional)
- Â Â Adafruit MAX31855 Thermocouple Arduino library
- Â Â CP2102 USB driver (not needed for commercial Arduino (Deumilanove / Uno) boards)
Â Build and / or use at your own risk !!!
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.