Button Signal Trigger Configuration
Functional Overview
The physical buttons on the FLY-LLL PLUS buffer support sending signals to Klipper. When you press a button, the buffer outputs a level signal on the specified pin. The Klipper motherboard can detect these signals and execute preset G-code commands, enabling more flexible print control.
Signal Output Description
| Button | Operation Method | Signal Output (Buffer Pin) | Signal Type | Duration |
|---|---|---|---|---|
| Feed Button (FEED) | Click | FEED pin outputs a high-level pulse | High Level | Automatically returns to low level after 3 seconds |
| Feed Button (FEED) | Long Press | Continuous feeding | High Level | Until the button is released |
| Retract Button (RETRACT) | Click | RETRACT pin outputs a low-level pulse | Low Level | Automatically returns to high level after 3 seconds |
| Retract Button (RETRACT) | Long Press | Continuous retraction | Low Level | Until the button is released |
Wiring Method
Loading...
Wiring Steps
- Prepare Connection Cables: Use Dupont wires or dedicated connection cables.
- Connect Signal Wires:
- Connect the buffer's FEED pin to any free limit switch port or GPIO pin on the motherboard.
- Connect the buffer's RETRACT pin to another free limit switch port or GPIO pin on the motherboard.
- Connect the buffer's GND pin to the motherboard's ground pin (GND).
- Record Pin Numbers: Note down the pin numbers connected on the motherboard side (e.g., PD4, PD5) for subsequent configuration.
Tip: It is recommended to use the limit switch ports on the motherboard (usually three-pin interfaces). Pay attention to the order of the signal wires when connecting to avoid reverse connection.
Klipper Configuration
1. Basic Configuration Example
Add the following configuration sections to the Klipper configuration file (e.g., printer.cfg):
[gcode_button Trigger Feed]
pin: ^PD4 # Replace with your actual connected pin (e.g., PD4)
press_gcode:
RESPOND MSG="Trigger Feed"
# Add custom feed G-code here
[gcode_button Trigger Retract]
pin: ^!PD5 # Replace with your actual connected pin (e.g., PD5)
press_gcode:
RESPOND MSG="Trigger Retract"
# Add custom retract G-code here
2. Configuration Parameter Details
[gcode_button Button Name] # Custom button name for easy identification
pin: ^!PD4 # Pin configuration
# ^ Indicates using an internal pull-up resistor (commonly used for button signals)
# ! Indicates signal inversion (used when low-level is active)
# PD4 Replace with your actual connected pin number
press_gcode: # G-code sequence executed when the button is pressed
# Add any valid G-code commands here
# For example: control extruder feed/retract, pause printing, execute macros, etc.
3. Common G-code Examples
Controlling Extruder Feed/Retract
[gcode_button Manual Feed]
pin: ^!PD4
press_gcode:
RESPOND MSG="Manual Feed 10mm"
G91 # Switch to relative coordinate mode
G1 E10 F300 # Extrude 10mm, feed speed 300mm/min
G90 # Switch back to absolute coordinate mode
RESPOND MSG="Feed Complete"
[gcode_button Manual Retract]
pin: ^!PD5
press_gcode:
RESPOND MSG="Manual Retract 5mm"
G91 # Switch to relative coordinate mode
G1 E-5 F300 # Retract 5mm, speed 300mm/min
G90 # Switch back to absolute coordinate mode
RESPOND MSG="Retract Complete"
Loading...