Git Product home page Git Product logo

kiln-controller's Introduction

Kiln Controller

Inspired by https://github.com/jbruce12000/kiln-controller

Hardware I'm using

Setting up Raspberry Pi

I'm using a Raspberry Pi Zero W.

Installing OS

  1. Downloaded and unzipped Raspberry Pi OS (32-bit) Lite (kernel version 4.19) from here https://www.raspberrypi.org/downloads/raspberry-pi-os/
  2. Flashed image to SD card using Etcher (the application is called balenaEtcher)
  3. Removed and reinserted SD card then followed this tutorial to make it SSH-able via USB: https://desertbot.io/blog/ssh-into-pi-zero-over-usb (the ssh-keygen step didn't work, so I skipped right to SSH-ing which seemed to be ok)
  4. Installed vim with sudo apt-get install vim
  5. Installed git with sudo apt-get install git

Setting up CircuitPython

Followed these instructions: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

  1. I had to install pip3.
  2. I didn't make python3 default.
  3. I enabled both I2C and SPI (even though I think technically I'll only be using SPI).

I ran the blinkatest.py script they included at the end, and it worked!

Other necessary stuff

  1. Installed drivers for thermocouple amplifier: pip3 install adafruit-circuitpython-max31855
  2. Cloned this repository

Running script on startup

I used cron: https://www.raspberrypi.org/documentation/linux/usage/cron.md

Ran crontab -e then added @reboot python3 /home/pi/kiln-controller/control/temperature-readout.py &

Running script in background

I'm using nohup. Example command:

nohup python3 slow_04_bisque.py &> first_slow_bisque.txt &

Shutting down

sudo shutdown -h now

Issues (and solutions)

Connected a 1.5" OLED SSD1351 display (cheap one off Amazon) via SPI. I was using the luma.oled package to run it. It was updating extremely slowly, I'd see the scan lines slowly move down the display even when I was drawing text. I ran the luma perfloop.py example and it only achieved 0.25 FPS. At first, I thought there might be something wrong with my Raspberry Pi's SPI speed. However, I realized that I was running another python process which was reading from a thermocouple using SPI (using Adafruit's busio package). I killed this process, and, lo and behold, my display now updated much faster.

kiln-controller's People

Contributors

skimberk avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.