MDM Module Clog Detection
Feature Overview
The FLY-LLL PLUS buffer can be used with the FLY-MDM runout/clog sensor to achieve real-time monitoring and automatic handling of extruder clog conditions.
Core Features
- Clog Detection: The MDM module monitors the buffer filament status and detects clogs
- Unified Runout/Clog Handling: The MDM module also handles runout detection, with signals sent through the buffer
Important Note: When using the MDM module, all runout/clog detection signals are sent to the mainboard via the buffer. The mainboard cannot distinguish whether the signal source is runout or clog.
Firmware Requirements
- Buffer firmware version must be V1.1.5 or higher
Hardware Wiring
1. MDM Module to Buffer Connection
The MDM module communicates directly with the buffer to detect clog status:
2. Buffer to Mainboard Connection
The mainboard sends signals to the buffer
3. Buffer Runout Detection Wiring
The buffer runout detection must be connected to the mainboard, otherwise it will not function properly
Specific Connection Method:
| Buffer Pin | Function Description | Connection Suggestion |
|---|---|---|
| STEP | Extruder step signal monitoring | Connect to an idle PWM, RGB, or 12864 interface on the mainboard |
| DIR | Extruder direction signal monitoring | Connect to an idle limit switch interface on the mainboard |
Tip: The BL-Touch servo port can also be used for STEP signal monitoring.
Klipper Configuration
Pre-Configuration Preparation
Before adding the MDM module configuration, ensure the following are correctly configured:
- Basic extruder configuration
- Basic buffer function configuration
- Note: Runout detection now follows the path: MDM module → Buffer → Mainboard
1. Buffer Monitor Configuration (for Clog Detection)
Add the following configuration to the Klipper config file (e.g., printer.cfg) to monitor the extruder status:
[extruder_stepper buffer_monitor]
extruder: extruder # Name of the associated main extruder
step_pin: PE10 # Replace with the actual pin connected to buffer PA5
dir_pin: PD4 # Replace with the actual pin connected to buffer PB11
rotation_distance: 17.472 # Replace with your extruder's actual value
gear_ratio: 50:10 # Replace with your extruder's actual gear ratio
microsteps: 16 # Replace with your extruder's actual microsteps
full_steps_per_rotation: 200 # Standard stepper motor is 200 steps/rotation
Complete Configuration Example
# Main extruder configuration
[extruder]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 17.472
gear_ratio: 50:10
nozzle_diameter: 0.4
filament_diameter: 1.75
heater_pin: PA1
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC1
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 280
[extruder_stepper buffer_monitor]
extruder: extruder
step_pin: PE10 # Connected to buffer PA5
dir_pin: PD4 # Connected to buffer PB11
rotation_distance: 17.472
gear_ratio: 50:10
microsteps: 16
full_steps_per_rotation: 200
[filament_switch_sensor Material_breakage_detection]
pause_on_runout: true
switch_pin: ^PA0 # Replace with the pin you are actually using
runout_gcode:
PAUSE
RESPOND MSG="Runout detected, print paused"
insert_gcode:
RESPOND MSG="Filament inserted, ready to resume printing"
event_delay: 2.0 # Event trigger delay (seconds)
pause_delay: 2.0 # Pause command delay (seconds)
debounce_delay: 2.0 # Debounce delay (seconds)
Buffer Configuration
- If the extruder configuration does not include
gear_ratio, set theDrive gear teethandDriven gear teethto1
Parameter Description
| Function Description | Configuration Command (Please input in the serial tool) | Default Value | Unit | Remarks |
|---|---|---|---|---|
| View all current parameters | Loading... | - | - | Send the command to read all current configurations. |
| Set motor pulse count | Loading... | 916 | - | Set the number of pulses required for the motor to move per millimeter. |
| Set encoder detection distance | Loading... | 1.73 | mm | Set the filament movement distance represented by each encoder signal. |
| Set operation timeout | Loading... | 60000 | ms | Set the automatic stop time when no trigger is detected to prevent continuous extrusion. |
| Set error scaling factor | Loading... | 2.0 | - | Allowable Error = encoder value X scale value.Example: 1.73 * 2.0 = 3.46 mm |
| Set speed control command | Loading... | 260 | mm | Set the buffer running speed, maximum 600 (rpm). Firmware needs to be updated to V1.1.1. |
Operation Notes:
- Command Format: In the "Configuration Command" column of the table above, the entire line of command (e.g.,
steps 916) is the content that needs to be entered in full. - Sending Method: After entering the command in the send area of the serial assistant, click the Send button.
- Automatic Save: After the command is sent successfully, the parameters take effect immediately and are saved automatically. No additional save operation is required.
- Confirm Configuration: After modifying any parameter, you can send the
infocommand to query all current parameters to verify if the configuration is correct.
- Remember, after setting the parameters, you can configure the buffer using the link below
- Buffer Configuration
Functionality Test
1. Connection Test
- Complete the connection between the MDM module and the buffer
- Complete the signal line connection between the buffer and the mainboard
- Confirm all wiring is secure
2. Full Process Test
- Start a test print
- Simulate a clog situation (operate carefully)
- Observe:
- Whether the MDM module detects the issue
- Whether the buffer forwards the signal
- Whether the mainboard receives the signal