This software is intended to be run on a raspberrypi, with two hats, attached to a continuous run distillation appartatus. The goals are to provide:
- a graph of temperatures along the fractionating column
- wash input rate control
- output valve control based on a target temperature at a target location
- A raspberryPi
- Motor Controller HAT
- Analog to Digital HAT
- a continuous run distillery
edit /etc/rc.local
add the lines:
sudo touch /var/log/distillery.log
sudo chmod 777 /var/log/distillery.log
sudo python /home/pi/code/distillery/server.py > /var/log/distillery.log &
reboot the pi
- install pyenv
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- install python
pyenv install 3.7.3 pyenv virtualenv 3.7.3 distillery pyenv activate distillery pip install -r requirements.txt
- create the file
scripts/.env
and inside it add:
git clone https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library.git
cd Adafruit-Motor-HAT-Python-Library
sudo apt-get update
sudo apt-get install build-essential python-dev python-pip
sudo python setup.py install
# setup C library
sudo apt-get install automake libtool
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz
tar zxvf bcm2835-1.50.tar.gz
cd bcm2835-1.50
autoreconf -vfi
./configure
make
sudo make check
sudo make install
# setup python library
sudo apt-get install git build-essential python-dev
cd ~
git clone https://github.com/fabiovix/py-ads1256.git
cd py-ads1256
sudo python setup.py install
modify /boot/config.txt by appending
dtparam=i2c1=on
dtmparam=i2c_arm=on