Turns a Raspberry Pi into an inexpensive, web-enabled kiln controller.
 
 
 
 
 
Go to file
jbruce12000 b81ece013d - omg, 220V please 2018-12-09 15:19:48 -05:00
lib - must import math module 2018-12-06 18:00:03 -05:00
public - changed schematic to b and w. easier to read 2018-12-08 17:52:35 -05:00
storage/profiles - decreased start temp and increase warm up ramp to 10 minutes 2018-12-06 18:32:18 -05:00
.gitignore - allowing profiles to be committed 2018-11-21 14:48:37 -05:00
README.md - omg, 220V please 2018-12-09 15:19:48 -05:00
config.py - changing gpio for heat 2018-12-01 14:18:29 -05:00
config.py.EXAMPLE - adding ideas to config 2018-11-28 15:42:04 -05:00
kiln-controller.py - changing picoreflowd to kill-controller 2018-11-27 16:24:28 -05:00
requirements.txt - removing rpi requirements for now. need to work out dependency tree for simulations 2018-11-25 11:06:17 -05:00
start-on-boot adding systemd service script and a script to install it as a service that runs during startup 2018-11-26 21:15:24 -05:00
troubleshooting.md - fix spelling error, add schematic to readme 2018-12-09 14:34:15 -05:00

README.md

Kiln Controller

Turns a Raspberry Pi into a cheap, web-enabled kiln controller.

Features

  • easy to create new kiln schedules and edit / modify existing schedules
  • no limit to runtime - fire for days if you want
  • view status from multiple devices at once - computer, tablet etc
  • firing cost estimate
  • NIST-linearized conversion for accurate K type thermocouple readings
  • supports PID parameters you tune to your kiln
  • monitors temperature in kiln after schedule has ended

Run Kiln Schedule

Image

Edit Kiln Schedule

Image

Hardware

Parts

Image Hardware Description
Image Raspberry Pi Virtually any Raspberry Pi will work since only a few GPIO pins are being used.
Image MAX 31855 Thermocouple breakout board
Image K-Type Thermocouple Invest in a heavy duty, ceramic, k-type thermocouple designed for kilns
Image Breadboard breadboard, ribbon cable, connector for pi's gpio pins & connecting wires
Image Solid State Relay Zero crossing, make sure it can handle the max current of your kiln. You only need one SSR, even if the kiln is 220V. Relays this big always require a heat sink.
Image Electric Kiln There are many old electric kilns on the market that don't have digital controls. You can pick one up on the used market cheaply. This controller will work with 110V or 220V (pick a proper SSR). My kiln is a Skutt KS-1018.

Schematic

The pi has three gpio pins connected to the MAX31855 chip. D0 is configured as an input and CS and CLK are outputs. The signal that controls the solid state relay starts as a gpio output which drives a transistor acting as a switch in front of it. This transistor provides 5V and plenty of current to control the ssr. Since only four gpio pins are in use, any pi can be used for this project. See the config file for gpio pin configuration.

Image

Note: I tried to power my ssr directly using a gpio pin. The pin could not provide enough current (16ma max) to control my ssr. My ssr was rated at 25ma max current, and 3V minimum to switch so I figured it would work. YMMV.

Software

Raspbian

Download NOOBs. Copy files to an SD card. Install raspbian on RPi using NOOBs.

$ sudo apt-get install python-pip python-dev libevent-dev python-virtualenv
$ git clone https://github.com/jbruce12000/kiln-controller.git
$ cd kiln-controller
$ virtualenv venv
$ source venv/bin/activate
$ pip install greenlet bottle gevent gevent-websocket

Note: The above steps work on ubuntu if you prefer

Raspberry PI deployment

If you want to deploy the code on a PI for production:

$ cd kiln-controller
$ virtualenv venv
$ source venv/bin/activate
$ pip install RPi.GPIO

If you also want to use the in-kernel SPI drivers with a MAX31855 sensor:

$ pip install Adafruit-MAX31855

Configuration

All parameters are defined in config.py, just copy the example and review/change to your mind's content.

$ cp config.py.EXAMPLE config.py

Usage

Server Startup

$ source venv/bin/activate; ./kiln-controller.py

Autostart Server onBoot

If you want the server to autostart on boot, run the following commands

$ /home/pi/kiln-controller/start-on-boot

Client Access

Click http://127.0.0.1:8081 for local development or the IP of your PI and the port defined in config.py (default 8081).

Simulation

Select a profile and click Start. If you do not have a raspberry pi connected and configured, then your run will be simulated. Simulations run at near real time and kiln characteristics are defined in config.py.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Support & Contact

Please use the issue tracker for project related issues. If you're having trouble with hardware, I did too. Here is a troubleshooting guide I created for testing RPi gpio pins.