Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMC2208 a la place de TMC2209 problème de déconnection lorsque du home, en config stock les moteur sont inverser #21

Open
erkan377 opened this issue Sep 6, 2022 · 0 comments

Comments

@erkan377
Copy link

erkan377 commented Sep 6, 2022

Bonjour,

Je voudrais utiliser cette configuration mais pour des TMC2208 car quand je lance le auto home alors que j'ai bien brancher les pin et tout les manipulation a faire et j'ai mon qq-s pro qui ce déconnecter ( j'ai essayer avec le stock mais les moteur sont inverser lorsque du home)
Aider moi je suis perdu je n'arrive pas a comprendre.
lien TMC2208: https://www.amazon.fr/gp/product/B07R48YHY3/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Merci.

Klipper config file for a moddified QQ-S Pro with TMC2209s:

Mesh bed leveling is also added, but commented out. Only enable it if

running the PROBE_ACCURACY command outputs a range value < 0.025 mm

Note that an offset probe is not recommended on delta printers due to

effector tilt. In order to use it successfully to create a useable bed mesh

you need to run the enhanced delta calibration:

https://www.klipper3d.org/Delta_Calibrate.html

See docs/Config_Reference.md for a description of parameters.

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
baud: 250000

[printer]
kinematics: delta
max_velocity: 500
max_accel: 2000
max_z_velocity: 200
minimum_z_position: -5
delta_radius: 130

[stepper_a]
step_pin: PE3
dir_pin: PE2
enable_pin: !PE4
rotation_distance: 32
endstop_pin: PA15
microsteps: 16
homing_speed: 60
position_endstop: 370
arm_length: 280.0

[stepper_b]
step_pin: PE0
dir_pin: PB9
enable_pin: !PE1
rotation_distance: 32
endstop_pin: PA12
microsteps: 16

[stepper_c]
step_pin: PB5
dir_pin: PB4
enable_pin: !PB8
rotation_distance: 32
endstop_pin: PC4
microsteps: 16

[probe]
pin: !PA11
x_offset: 0
y_offset: 0
z_offset: 10
samples: 3
samples_result: average
sample_retract_dist: 5
speed: 20
#helps with consistency of probing.

[delta_calibrate]
radius: 120
horizontal_move_z: 10
speed: 20
#ensure accurate probing

[extruder]
step_pin: PD6
dir_pin: !PD3
enable_pin: !PB3
rotation_distance: 9
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC3
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
control: pid
pid_Kp: 14.529
pid_Ki: 0.557
pid_Kd: 94.802
min_extrude_temp: 180
min_temp: 0
max_temp: 260
#max_extrude_only_accel: 250 setting this can help with the whine of the extruder. Play around with this number.

[heater_bed]
heater_pin: PA0
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
control: pid
pid_Kp: 325.10
pid_Ki: 63.35
pid_Kd: 417.10
min_temp: 0
max_temp: 150

[fan]
pin: PB1
kick_start_time: 0.200

#Allows you to see your MCU temps on the graph
#[temperature_sensor mcu_temp]
#sensor_type: temperature_mcu
#min_temp: 0
#max_temp: 100

#Allows you to see your Raspberry Pi CPU temps on the graph
#[temperature_sensor raspberry_pi]
#sensor_type: temperature_host
#min_temp: 10
#max_temp: 100

#######################################################################

Optional: Bed mesh leveling - only use if the PROBE_ACCURACY

command outputs a range value < 0.025 mm

#######################################################################

[bed_mesh]
speed: 50
horizontal_move_z: 30
mesh_radius: 100
mesh_origin: 0,0
round_probe_count: 5
algorithm: lagrange

#######################################################################

Optional: End-stop style filament sensor

#######################################################################

#[filament_switch_sensor Filament]
#pause_on_runout: True
#switch_pin: PA4

#######################################################################

Optional: BL Touch Probe - comment out [probe] section if using this

#######################################################################

#[bltouch]
#sensor_pin: PA11
#control_pin: PA8
#stow_on_each_sample: True
#set_output_mode: 5V
#x_offset: 3
#y_offset: -36
#z_offset: -2.3
#samples: 3
#sample_retract_dist: 5
#samples_result: average

#######################################################################

Clears the LCD screen after powering up the printer.

#######################################################################

#[static_digital_output display_reset]
#pins: !PC6, !PD13

#######################################################################

Fairly quiet settings without running stealthchop if you have TMC2209 Drivers. Likely works with 2208 but has not been tested.

#######################################################################

[tmc2209 stepper_a]
#uart_pin: PA10
#These pins are commented so you have to check which pins are connected to which steppers.
run_current: .850
hold_current: .500
interpolate: True
stealthchop_threshold: 0

[tmc2209 stepper_b]
#uart_pin: PA9
run_current: .850
hold_current: .500
interpolate: True
stealthchop_threshold: 0

[tmc2209 stepper_c]
#uart_pin: PC7
run_current: .850
hold_current: .500
interpolate: True
stealthchop_threshold: 0

[tmc2209 extruder]
#uart_pin: PA8
interpolate: True
run_current: .850
hold_current: .500
stealthchop_threshold: 0

#[endstop_phase]

Please read (the Endstop Phase Documentation)[https://www.klipper3d.org/Endstop_Phase.html]. This will improve the accuracy of your printer by improving the accuracy of your endstops.

This is the path where your g-code files will be uploaded to in the

rasbperry pi

[virtual_sdcard]
path: ~/gcode_files

[display_status]

[pause_resume]

This macro should be called at the 'start g-code' part

of your slicer and you would put all the start g-code here

instead so that you don't have to re-slice everytime you

have to edit the commands

[gcode_macro START_PRINT]
gcode:
#SET_GCODE_OFFSET Z_ADJUST=-0.1 MOVE=1 # sets the z-offset

This macro should be called at the 'end g-code' part

of your slicer and like the macro above, you would

also put all of your end g-code here for the same reason as above

[gcode_macro END_PRINT]
gcode:
SET_GCODE_OFFSET Z_ADJUST=0 # resets the z-offset (otherwise, )

Pause print macro

[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{params.E|default(1)} F2100 ; change 1 to your default retraction distance
G1 Z{params.Z|default(10)} ; change 10 to your Z parking position
G90
G1 X{params.X|default(230)} Y{params.Y|default(230)} F6000 ; change 230 to your X and Y parking postion

Resume print macro

[gcode_macro RESUME]
rename_existing: BASE_RESUME
gcode:
G91
G1 E{params.E|default(1)} F2100 ; change 1 to your default retraction distance
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME

Cancel print macro

[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant