UPDATE: Config updated below, works now as intended :) Only light switching during printing is still a bit unreliable. Not sure why yet.
This “keyboard” with 5 keys gets conneted directly to the GPIOs of the RasbperryPi. This way no MCU or anything fancy is needed. The case is tested on a vCore 3.1 400mm with 3030 profiles. Not sure about clearance on other printers. But electrically should also work for Vorons etc.
The PCB is OpenSource and all files, including production files, can be found here:
https://github.com/Technofrikus/KlipperKeys
You need:
BOM:
Connecting
Configuration
[gcode_button button_light]pin: ~rpi:gpio17press_gcode: CASE_LIGHTS_TOGGLE
[gcode_button button_load]pin: ~rpi:gpio9press_gcode: LOAD_FILAMENT
[gcode_button button_unload]pin: ~rpi:gpio10press_gcode: UNLOAD_FILAMENT
[gcode_button button_PLATemp]pin: ~rpi:gpio22press_gcode: SET_HEATER_TEMPERATURE HEATER=extruder TARGET=200 SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60
[gcode_button button_cooldown]pin: ~rpi:gpio27press_gcode: TURN_OFF_HEATERS
If you want to use a Button as an Emergency-Stop, use this code:
[gcode_button ESTOP_BUTTON]pin: ...press_gcode: {action_emergency_stop("Impending Doom Averted!")}
I have not tested this, but ThaoChan provided it and it works for him. Thanks again Thao for your help with the Config! Check it out here: https://www.reddit.com/r/klippers/comments/ssj67j/comment/ju6ld9p/?utm_source=reddit&utm_medium=web2x&context=3
The author marked this model as their own original creation.