Skip to content

Polectron/panda-breach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panda-breach

Panda Breach is a system to make Panda Breatch chamber heaters compatible with Klipper. It interfaces with the heater through websockets and lets you control it through Klipper.

IMPORTANT: The current implementation requires a real chamber sensor already installed and configured in Klipper. If this sensor is less sensitive than the one in the panda breath the M191 command might never end, if that is the case manually override the target temperature in the panda breath web dashboard to 5 degrees above the configured target temperature.

Setup

Installation

  1. Copy panda_breach.py to klipper/klippy/extras.
  2. Install the websockets python package in your Klipper environment:
source /path/to/klipper-env/bin/activate
pip install websockets

Configuration

In printer.cfg, add the following:

[panda_breath]
host: ws://<panda-breath-ip>

[gcode_macro M141]
gcode:
    SET_PANDA_BREATH_TEMP TEMP={params.S|default(0)|int}

[gcode_macro M191]
gcode:
    {% set s = params.S|default(0)|int %}
    {% if s == 0 %}
        # If target temperature is 0, do nothing
        M117 Chamber heating cancelled
    {% else %}
        SET_PANDA_BREATH_TEMP TEMP={s}
        M140 S100 # Use bed heater to help with heating
        TEMPERATURE_WAIT SENSOR="temperature_sensor <sensor_name>" MINIMUM={s-1} MAXIMUM={s+1}
        M117 Chamber at target temperature
    {% endif %}

TO-DOs

  • Klippy extra components
    • WS heater control
    • WS sensor control
  • M191 and M141 support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages