/primtc

Primitive Temperature Control

Primary LanguageC++GNU General Public License v3.0GPL-3.0

PrimTC - Primitive Temperature Control

Just a simple temperature controller for a three-way valve, written in Arduino.

Requirements

Install

Just open the sketch in Arduino IDE, install all dependencies through the Library Manager and upload the sketch to your MCU.

Using the Makefile

An alternative to Arduino IDE is to use the included Makefile (that uses arduino-cli).

  1. Setup arduino-cli.

    $ go get github.com/arduino/arduino-cli
    $ arduino-cli core update-index
    $ arduino-cli core install arduino:avr
    $ make
    

    Note: Make sure $HOME/go/bin is in your $PATH.

  2. Modify the FQBN and PORT variables in config.mk to match your MCU and port. See arduino-cli's README for details.

    FQBN = arduino:avr:nano:cpu=atmega328old
    PORT = /dev/ttyUSB0
    
  3. Install dependencies, build and upload the sketch.

    $ make deps
    $ make
    $ make upload
    

License

Because of copylefted dependencies:

  • the whole project is licensed under GPLv3;
  • parts written by me are dual-licensed under GPLv3 and MIT.