Skip to content
chris edited this page Aug 19, 2015 · 2 revisions

Classes for physical brewer objects

  • Vessels (HLT, MLT)
  • PIDs (Assigned per vessel)
  • Sensors (1-wire DS18B20, Pressure Sensors for volume, float switches)
  • Outputs (heating elements, pumps, valves)

Usage Example

from pid import PID
from vessel import Vessel

# create a PID object
hlt_pid = PID(temp_sensor, heating_element)

# create a hot liquor tun that uses the PID
hlt = Vessel(
    name = 'Hot Liquor',
    capacity = '15 gal',
    PID = hlt_pid,
    pump = hlt_pump
)

# read temperature from hot liquor tun
current_temp = hlt.PID.read_temp()

# check the current temperature setpoint of hot liquor tun
# set the temperature setpoint with same function

# Check current setting
current_setpoint = hlt.PID.setpoint()
hlt.PID.setpoint(temperature=150)

# Set PID to manual with 75% duty
hlt.PID.setpoint(duty=75)

Clone this wiki locally