Aller au contenu

Filament ABS

Smartcub3D avec Klipper


Messages recommandés

Salut tout le monde, j'essaye de passé la Smartcub3D sous klipper et pouvoir comparer avec Marlin.

Klipper à pas mal d'avantage, modification du firmware avec un simple fichier texte pas besoin de recompiler, carte 32bits au lieu du 8bit de la ramps, pressure advance, test de résonnance etc...

J'ai bien avancé mais j'ai besoin d'un petit coup de main pour finalisé les réglages sous Klipper.

  • M112: OK
  • Homing: OK
  • Estep: OK
  • Chauffe extrudeur et plateau: OK
  • Stepper X Y Z OK
  • END STOP pour le homing OK
  • PID Extrudeur OK
  • PROBE NOK

Mon problème c'est le paramétrage du probe, les points de probe sont bien renseignés, mais des que je fait la commande PROBE ou PROBE_CALIBRATE j'ai ça 

[...]
Send: probe_calibrate
Recv: !! Failed to home probe: Timeout during homing
Recv: ok
[...]
Send: probe
Recv: !! Failed to home probe: Timeout during homing
Recv: ok
[...]

Rien ne bouge. Normalement le plateau est sensé monter jusqu'à déclenché le probe

Le pin du probe est bien configurer ;  pin: ^!ar18   

Quand je fait un QUERY_PROBE  pour avoir l'état du probe ;

Send: QUERY_PROBE
Recv: // probe: open
Recv: ok

Quand je shunt le probe manuellement l'état de change pas non plus. 

Send: QUERY_PROBE
Recv: // probe: open
Recv: ok

Je pense premièrement avoir un problème avec le pins du probe qui n'est pourtant qu'un contact. 

et deuxièmement la configuration du stepper Z doit pas être correcte surtout au niveau des endstops.

 

Voici actuellement mon printer.cfg

Révélation

# This file contains common pin mappings for RAMPS (v1.3 and later)
# boards. RAMPS boards typically use a firmware compiled for the AVR
# atmega2560 (though other AVR chips are also possible).
# https://github.com/KevinOConnor/klipper/tree/master/config
# https://www.klipper3d.org/Config_Reference.html
# See docs/Config_Reference.md for a description of parameters.

##========================== Pin Definitions ======================== For RAMPS 1.4
#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_MIN_PIN           3
#define X_MAX_PIN           2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E_STEP_PIN         26
#define E_DIR_PIN          28
#define E_ENABLE_PIN       24

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13

#define FAN_PIN            9

#define PS_ON_PIN          12
#define KILL_PIN           -1

#define HEATER_0_PIN       10
#define HEATER_1_PIN       8
#define TEMP_0_PIN          13   // ANALOG NUMBERING
#define TEMP_1_PIN          14   // ANALOG NUMBERING

[fan]
pin: ar9

[mcu]
serial: /dev/ttyACM0
pin_map: arduino


[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 7000
max_z_velocity: 25
max_z_accel: 60
max_accel_to_decel: 7000

[stepper_x]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 39.8009950
endstop_pin: ^ar3
position_endstop: 0
position_max: 192
homing_speed: 50
second_homing_speed: 10

[stepper_y]
step_pin: ar60
dir_pin: !ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 39.74167908
endstop_pin: ^ar15
position_endstop: 190
position_max: 190
homing_speed: 50
second_homing_speed: 10

[stepper_z]
step_pin: ar46
dir_pin: !ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 8.0240722166
endstop_pin: ^ar19
position_max: 170
position_min: -1.5
homing_speed: 15
position_endstop: 166.426
second_homing_speed: 3.0


[homing_override]
axes: z
set_position_z: 0
gcode:
   G90
   G0 Z2 F600
   G28 X Y
   G28 Z
   G0 x100 y100 f5000
   

# The safe_z_home section modifies the default G28 behavior
#[safe_z_home]
#z_hop: 30
#z_hop_speed: 5

[extruder]
step_pin: ar26
dir_pin: !ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 20.21
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar10
sensor_type: NTC 100K beta 3950
sensor_pin: analog13
control: pid
pid_Kp: 17.233
pid_Ki: 0.539
pid_Kd: 137.651
min_temp: 0
max_temp: 250
min_extrude_temp: 180
##    Try to keep pressure_advance below 1.0
pressure_advance: 0.040
##    Default is 0.040, leave stock
pressure_advance_smooth_time: 0.040

######################################################################
##                         HEATER BED
######################################################################

[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
control: watermark
min_temp: 0
max_temp: 55

#### module peltier long à chauffer
[verify_heater heater_bed]   
check_gain_time: 999999999999

######################################################################
##                          displays 
######################################################################

# Common EXP1 / EXP2 (display) pins
[board_pins]
aliases:
    # Common EXP1 header found on many "all-in-one" ramps clones
    EXP1_1=ar37, EXP1_3=ar17, EXP1_5=ar23, EXP1_7=ar27, EXP1_9=<GND>,
    EXP1_2=ar35, EXP1_4=ar16, EXP1_6=ar25, EXP1_8=ar29, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=ar50, EXP2_3=ar31, EXP2_5=ar33, EXP2_7=ar49, EXP2_9=<GND>,
    EXP2_2=ar52, EXP2_4=ar53, EXP2_6=ar51, EXP2_8=ar41, EXP2_10=<RST>
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
    # Note, some boards wire: EXP2_8=<RST>, EXP2_10=ar41

# See the sample-lcd.cfg file for definitions of common LCD displays.
# "RepRapDiscount 2004 Smart Controller" type displays

[display]
lcd_type: hd44780
rs_pin: EXP1_4
e_pin: EXP1_3
d4_pin: EXP1_5
d5_pin: EXP1_6
d6_pin: EXP1_7
d7_pin: EXP1_8
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8

[output_pin BEEPER_pin]
pin: ar37
#   Beeper pin. This parameter must be provided.
#   ar37 is the default RAMPS/MKS pin.
pwm: True
#   A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
#   Silent at power on, set to 1 if active low.
shutdown_value: 0
#   Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
#   PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
#   PWM parameter will be in the range of (0-1000 Hz).
#   Although not pitch perfect.

######################################################################
##                          PROBE 
######################################################################

[probe]
pin: ^!ar18
z_offset: 0
#   Probe detection pin. This parameter must be provided.
x_offset: 0.0
y_offset: 0.0
z_offset:0
#   The distance (in mm) between the bed and the nozzle when the probe
#   triggers. This parameter must be provided.
speed: 5.0
samples: 2
#   The number of times to probe each point. The probed z-values will
#   be averaged. The default is to probe 1 time.
sample_retract_dist: 10
#   The distance (in mm) to lift the toolhead between each sample (if
#   sampling more than once). The default is 2mm.


[bed_tilt]

#x_adjust: 0
#y_adjust: 0
#z_adjust: 0
# g-code command that may be used to calibrate appropriate x and y
# adjustment parameters.
#   A list of X,Y coordinates (one per line; subsequent lines
#   indented) that should be probed during a BED_TILT_CALIBRATE
#   command. Specify coordinates of the nozzle and be sure the probe
#   is above the bed at the given nozzle coordinates. The default is
#   to not enable the command.
horizontal_move_z: 20
#   The height (in mm) that the head should be commanded to move to
#   just prior to starting a probe operation. The default is 5.
speed: 50
points:
    5,7
    188,7
    188,190
    5,190
######################################################################
##                    INPUT SHAPER
######################################################################


[mcu rpi]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: rpi:None

[resonance_tester]
accel_chip: adxl345
probe_points:
    150,150,20  # an example

[input_shaper]
shaper_type_x = 3hump_ei
shaper_freq_x = 83.0
shaper_type_y = 2hump_ei
shaper_freq_y = 40.0

######################################################################
##                          MACRO
######################################################################
[gcode_macro M300]
default_parameter_S: 1000
#   Use a default 1kHz tone if S is omitted.
default_parameter_P: 100
#   Use a 10ms duration is P is omitted.
gcode:
    SET_PIN PIN=BEEPER_pin VALUE={S}
    G4 P{P}
    SET_PIN PIN=BEEPER_pin VALUE=0

[gcode_macro PRINT_START]
#   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
    M117 Let's go baby...
    G90  # coordonées absolues
    G28  # HOMING    
    M117 Heating....  
    ##M300  #BEEP
    #BED_TILT_CALIBRATE #palpage plateau
    M104 S{EXTRUDER_TEMP}
    M140 S{BED_TEMP}
    M109 S{EXTRUDER_TEMP}
    M190 S{BED_TEMP}
    M117 Purge Extruder
    G92 E0 
    G1 Z7 F3000
    G1 X5 Y190
    G1 X100 Y190 F1500.0 E15   
    G92 E0
    G1 Z20 F3000      
    M117 Start print

[gcode_macro END_PRINT]
gcode:
    # Turn off bed, extruder, and fan
    M140 S0
    M104 S0
    M106 S0
    # Move nozzle away from print while retracting
    G91
    G1 X-3 Y-3 E-3 F300
    # Raise nozzle by 10mm
    G1 Z10 F3000
    G90
    # Disable steppers
    M84
    M300
    M117 Fin impression

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_tilt]
#*# x_adjust = 0.001394
#*# y_adjust = 0.000558
#*# z_adjust = -1.551889

Modifié (le) par biostrike
MAJ config
Lien à poster
Partager sur d’autres sites
il y a 3 minutes, biostrike a dit :

ça vient pas de cette histoire


 If using probe:z_virtual_endstop then do not define a position_endstop in the stepper_z config section.

Bon déjà, le probe je l'ai shunté et le QUERY_PROBE fonctionne je doit avoir un problème avec le câble. 

Oui il y'a une histoire avec le virtuel end stop, il y'a une configuration de référence ici : https://github.com/KevinOConnor/klipper/blob/master/config/sample-probe-as-z-endstop.cfg

Mais des que je change les valeurs le bed continue de descendre malgré le fin de course actionné, il faut que je creuse ça.

Lien à poster
Partager sur d’autres sites
[mention=4334]klem1[/mention]si tu as le ! devant le pin de probe je suppose que tu as un capteur Normally Open. Vérifie bien ton câblage et la référence du pin utilisé.
Oui c'est un contact normalement ouvert, je viens de remplacer le câble qui était HS.
Par contre pour la config avec le virtuel endstop je comprends pas grand chose.

Envoyé de mon IN2023 en utilisant Tapatalk

Lien à poster
Partager sur d’autres sites

Voila le problème en fait quand je faisait un home tout mes axes était à 0 donc le probe comprenait rien.

 

Send: M114
Recv: X:0.000 Y:0.000 Z:0.000 E:0.000
Recv: ok

Après avoir modifier la position à

position_endstop: 178

puis en inversant le sens du moteur Z

dir_pin: !ar48

J'obtiens finalement ce résultat après un home 

Send: M114
Recv: X:0.000 Y:0.000 Z:178.000 E:0.000
Recv: ok

Donc quand je fait un probe maintenant le plateau viens bien chercher son probe. 

  • J'aime 1
Lien à poster
Partager sur d’autres sites

Après avoir refait les pièces de mon plateau qui partait en sucette et une maintenance complète. 

Voici mon dernier fichier de config klipper:

Révélation

# This file contains common pin mappings for RAMPS (v1.3 and later)
# boards. RAMPS boards typically use a firmware compiled for the AVR
# atmega2560 (though other AVR chips are also possible).
# https://github.com/KevinOConnor/klipper/tree/master/config
# https://www.klipper3d.org/Config_Reference.html
# See docs/Config_Reference.md for a description of parameters.

##========================== Pin Definitions ======================== For RAMPS 1.4
#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_MIN_PIN           3
#define X_MAX_PIN           2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E_STEP_PIN         26
#define E_DIR_PIN          28
#define E_ENABLE_PIN       24

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13

#define FAN_PIN            9

#define PS_ON_PIN          12
#define KILL_PIN           -1

#define HEATER_0_PIN       10
#define HEATER_1_PIN       8
#define TEMP_0_PIN          13   // ANALOG NUMBERING
#define TEMP_1_PIN          14   // ANALOG NUMBERING

[fan]
pin: ar9

[mcu]
serial: /dev/ttyACM0
pin_map: arduino

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 25
max_z_accel: 60

[stepper_x]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 39.8009950
endstop_pin: ^ar3
position_endstop: 0
position_max: 192
homing_speed: 50
second_homing_speed: 10

[stepper_y]
step_pin: ar60
dir_pin: ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 39.74167908
endstop_pin: ^ar15
position_endstop: 0
position_max: 190
homing_speed: 50
second_homing_speed: 10

[stepper_z]
step_pin: ar46
dir_pin: !ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 8.0240722166
endstop_pin: ^ar19
position_max: 170
position_min: -3
homing_speed: 15
position_endstop: 168.942
second_homing_speed: 3.0

[homing_override]
axes: z
set_position_z: 0
gcode:
   G90
   G0 Z2 F600
   G28 X Y
   G28 Z
   G0 x100 y100 f5000
   

# The safe_z_home section modifies the default G28 behavior
#[safe_z_home]
#z_hop: 30
#z_hop_speed: 5

[extruder]
step_pin: ar26
dir_pin: !ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 20.21
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar10
sensor_type: NTC 100K beta 3950
sensor_pin: analog13
control: pid
pid_Kp: 17.233
pid_Ki: 0.539
pid_Kd: 137.651
min_temp: 0
max_temp: 250
min_extrude_temp: 180

######################################################################
##                         HEATER BED
######################################################################

[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
control: watermark
min_temp: 0
max_temp: 55

#### module peltier long à chauffer
[verify_heater heater_bed]   
check_gain_time: 999999999999

######################################################################
##                          displays 
######################################################################

# Common EXP1 / EXP2 (display) pins
[board_pins]
aliases:
    # Common EXP1 header found on many "all-in-one" ramps clones
    EXP1_1=ar37, EXP1_3=ar17, EXP1_5=ar23, EXP1_7=ar27, EXP1_9=<GND>,
    EXP1_2=ar35, EXP1_4=ar16, EXP1_6=ar25, EXP1_8=ar29, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=ar50, EXP2_3=ar31, EXP2_5=ar33, EXP2_7=ar49, EXP2_9=<GND>,
    EXP2_2=ar52, EXP2_4=ar53, EXP2_6=ar51, EXP2_8=ar41, EXP2_10=<RST>
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
    # Note, some boards wire: EXP2_8=<RST>, EXP2_10=ar41

# See the sample-lcd.cfg file for definitions of common LCD displays.
# "RepRapDiscount 2004 Smart Controller" type displays

[display]
lcd_type: hd44780
rs_pin: EXP1_4
e_pin: EXP1_3
d4_pin: EXP1_5
d5_pin: EXP1_6
d6_pin: EXP1_7
d7_pin: EXP1_8
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8

[output_pin BEEPER_pin]
pin: ar37
#   Beeper pin. This parameter must be provided.
#   ar37 is the default RAMPS/MKS pin.
pwm: True
#   A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
#   Silent at power on, set to 1 if active low.
shutdown_value: 0
#   Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
#   PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
#   PWM parameter will be in the range of (0-1000 Hz).
#   Although not pitch perfect.

######################################################################
##                          PROBE 
######################################################################

[probe]
pin: ^!ar18
z_offset: 3.09
#   Probe detection pin. This parameter must be provided.
x_offset: 0.0
y_offset: 0.0
z_offset:0
#   The distance (in mm) between the bed and the nozzle when the probe
#   triggers. This parameter must be provided.
speed: 5.0
samples: 2
#   The number of times to probe each point. The probed z-values will
#   be averaged. The default is to probe 1 time.
sample_retract_dist: 10
#   The distance (in mm) to lift the toolhead between each sample (if
#   sampling more than once). The default is 2mm.


[bed_tilt]

#x_adjust: 0
#y_adjust: 0
#z_adjust: 0
# g-code command that may be used to calibrate appropriate x and y
# adjustment parameters.
#   A list of X,Y coordinates (one per line; subsequent lines
#   indented) that should be probed during a BED_TILT_CALIBRATE
#   command. Specify coordinates of the nozzle and be sure the probe
#   is above the bed at the given nozzle coordinates. The default is
#   to not enable the command.
horizontal_move_z: 20
#   The height (in mm) that the head should be commanded to move to
#   just prior to starting a probe operation. The default is 5.
speed: 50
points:
    5,7
    188,7
    188,190
    5,190

######################################################################
##                          MACRO
######################################################################
[gcode_macro M300]
default_parameter_S: 1000
#   Use a default 1kHz tone if S is omitted.
default_parameter_P: 100
#   Use a 10ms duration is P is omitted.
gcode:
    SET_PIN PIN=BEEPER_pin VALUE={S}
    G4 P{P}
    SET_PIN PIN=BEEPER_pin VALUE=0

[gcode_macro PRINT_START]
#   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
    M117 Let's go baby...
    G90  # coordonées absolues
    G28  # HOMING    
    M117 Heating....  
    M300  #BEEP
    #BED_TILT_CALIBRATE #palpage plateau
    M104 S{EXTRUDER_TEMP}
    M140 S{BED_TEMP}
    M109 S{EXTRUDER_TEMP}
    M190 S{BED_TEMP}
    M117 Purge Extruder
    G92 E0 
    G1 Z7 F3000
    G1 X5 Y190
    G1 X100 Y190 F1500.0 E15   
    G92 E0
    G1 Z20 F3000      
    M117 Start print

[gcode_macro END_PRINT]
gcode:
    # Turn off bed, extruder, and fan
    M140 S0
    M104 S0
    M106 S0
    # Move nozzle away from print while retracting
    G91
    G1 X-3 Y-3 E-3 F300
    # Raise nozzle by 10mm
    G1 Z10 F3000
    G90
    # Disable steppers
    M84
    M300
    M117 Fin impression

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_tilt]
#*# x_adjust = 0.001394
#*# y_adjust = 0.000558
#*# z_adjust = -1.551889
 

Il faudra bien sur ajuster en conséquence si vous voulez l'utiliser. 

Vous devriez vérifier les points de probe, le stepper Z et sa config, le sens des moteurs, le printer start  fonctionne mais n'est pas top, je n'inclue pas le palpage du plateau à chaque impression pour le moment.

Il faut encore que je configure le pressure advance et l'input shaper ce qui va considérablement améliorer mes prints. 

Je trouve que les mouvements sont plus fluide par rapport à avant. Puis le fait de modifier sa config à sa guise c'est vraiment top.

On va essayé de trouver les limites de vitesses de l'imprimante et acceleration.. je vous tiens au courant. 

 

On trouve pas mal d'info ici : 

ou sinon bien sur sur le site officiel : https://www.klipper3d.org/Overview.html 

  • J'aime 1
Lien à poster
Partager sur d’autres sites
  • biostrike pinned this topic
  • 4 weeks later...

Hello j'ai pas les droits pour la modification du post voici ma dernière config Klipper :

J'ai modifier la position du home Y qui était inversé ce qui m'imprimer des pièces en miroir ^^. 

 

Révélation

# This file contains common pin mappings for RAMPS (v1.3 and later)
# boards. RAMPS boards typically use a firmware compiled for the AVR
# atmega2560 (though other AVR chips are also possible).
# https://github.com/KevinOConnor/klipper/tree/master/config
# https://www.klipper3d.org/Config_Reference.html
# See docs/Config_Reference.md for a description of parameters.

##========================== Pin Definitions ======================== For RAMPS 1.4
#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_MIN_PIN           3
#define X_MAX_PIN           2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E_STEP_PIN         26
#define E_DIR_PIN          28
#define E_ENABLE_PIN       24

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13

#define FAN_PIN            9

#define PS_ON_PIN          12
#define KILL_PIN           -1

#define HEATER_0_PIN       10
#define HEATER_1_PIN       8
#define TEMP_0_PIN          13   // ANALOG NUMBERING
#define TEMP_1_PIN          14   // ANALOG NUMBERING

[fan]
pin: ar9

[mcu]
serial: /dev/ttyACM0
pin_map: arduino


[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 7000
max_z_velocity: 25
max_z_accel: 60
max_accel_to_decel: 7000

[stepper_x]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
microsteps: 16
rotation_distance: 39.8009950
endstop_pin: ^ar3
position_endstop: 0
position_max: 192
homing_speed: 50
second_homing_speed: 10

[stepper_y]
step_pin: ar60
dir_pin: !ar61
enable_pin: !ar56
microsteps: 16
rotation_distance: 39.74167908
endstop_pin: ^ar15
position_endstop: 190
position_max: 190
homing_speed: 50
second_homing_speed: 10

[stepper_z]
step_pin: ar46
dir_pin: !ar48
enable_pin: !ar62
microsteps: 16
rotation_distance: 8.0240722166
endstop_pin: ^ar19
position_max: 170
position_min: -1.5
homing_speed: 15
position_endstop: 166.426
second_homing_speed: 3.0


[homing_override]
axes: z
set_position_z: 0
gcode:
   G90
   G0 Z2 F600
   G28 X Y
   G28 Z
   G0 x100 y100 f5000
   

# The safe_z_home section modifies the default G28 behavior
#[safe_z_home]
#z_hop: 30
#z_hop_speed: 5

[extruder]
step_pin: ar26
dir_pin: !ar28
enable_pin: !ar24
microsteps: 16
rotation_distance: 20.21
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: ar10
sensor_type: NTC 100K beta 3950
sensor_pin: analog13
control: pid
pid_Kp: 17.233
pid_Ki: 0.539
pid_Kd: 137.651
min_temp: 0
max_temp: 250
min_extrude_temp: 180
##    Try to keep pressure_advance below 1.0
pressure_advance: 0.040
##    Default is 0.040, leave stock
pressure_advance_smooth_time: 0.040

######################################################################
##                         HEATER BED
######################################################################

[heater_bed]
heater_pin: ar8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: analog14
control: watermark
min_temp: 0
max_temp: 55

#### module peltier long à chauffer
[verify_heater heater_bed]   
check_gain_time: 999999999999

######################################################################
##                          displays 
######################################################################

# Common EXP1 / EXP2 (display) pins
[board_pins]
aliases:
    # Common EXP1 header found on many "all-in-one" ramps clones
    EXP1_1=ar37, EXP1_3=ar17, EXP1_5=ar23, EXP1_7=ar27, EXP1_9=<GND>,
    EXP1_2=ar35, EXP1_4=ar16, EXP1_6=ar25, EXP1_8=ar29, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=ar50, EXP2_3=ar31, EXP2_5=ar33, EXP2_7=ar49, EXP2_9=<GND>,
    EXP2_2=ar52, EXP2_4=ar53, EXP2_6=ar51, EXP2_8=ar41, EXP2_10=<RST>
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi"
    # Note, some boards wire: EXP2_8=<RST>, EXP2_10=ar41

# See the sample-lcd.cfg file for definitions of common LCD displays.
# "RepRapDiscount 2004 Smart Controller" type displays

[display]
lcd_type: hd44780
rs_pin: EXP1_4
e_pin: EXP1_3
d4_pin: EXP1_5
d5_pin: EXP1_6
d6_pin: EXP1_7
d7_pin: EXP1_8
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8

[output_pin BEEPER_pin]
pin: ar37
#   Beeper pin. This parameter must be provided.
#   ar37 is the default RAMPS/MKS pin.
pwm: True
#   A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
#   Silent at power on, set to 1 if active low.
shutdown_value: 0
#   Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
#   PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
scale: 1000
#   PWM parameter will be in the range of (0-1000 Hz).
#   Although not pitch perfect.

######################################################################
##                          PROBE 
######################################################################

[probe]
pin: ^!ar18
z_offset: 0
#   Probe detection pin. This parameter must be provided.
x_offset: 0.0
y_offset: 0.0
z_offset:0
#   The distance (in mm) between the bed and the nozzle when the probe
#   triggers. This parameter must be provided.
speed: 5.0
samples: 2
#   The number of times to probe each point. The probed z-values will
#   be averaged. The default is to probe 1 time.
sample_retract_dist: 10
#   The distance (in mm) to lift the toolhead between each sample (if
#   sampling more than once). The default is 2mm.


[bed_tilt]

#x_adjust: 0
#y_adjust: 0
#z_adjust: 0
# g-code command that may be used to calibrate appropriate x and y
# adjustment parameters.
#   A list of X,Y coordinates (one per line; subsequent lines
#   indented) that should be probed during a BED_TILT_CALIBRATE
#   command. Specify coordinates of the nozzle and be sure the probe
#   is above the bed at the given nozzle coordinates. The default is
#   to not enable the command.
horizontal_move_z: 20
#   The height (in mm) that the head should be commanded to move to
#   just prior to starting a probe operation. The default is 5.
speed: 50
points:
    5,7
    188,7
    188,190
    5,190
######################################################################
##                    INPUT SHAPER
######################################################################


[mcu rpi]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: rpi:None

[resonance_tester]
accel_chip: adxl345
probe_points:
    150,150,20  # an example

[input_shaper]
shaper_type_x = 3hump_ei
shaper_freq_x = 83.0
shaper_type_y = 2hump_ei
shaper_freq_y = 40.0

######################################################################
##                          MACRO
######################################################################
[gcode_macro M300]
default_parameter_S: 1000
#   Use a default 1kHz tone if S is omitted.
default_parameter_P: 100
#   Use a 10ms duration is P is omitted.
gcode:
    SET_PIN PIN=BEEPER_pin VALUE={S}
    G4 P{P}
    SET_PIN PIN=BEEPER_pin VALUE=0

[gcode_macro PRINT_START]
#   Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
    M117 Let's go baby...
    G90  # coordonées absolues
    G28  # HOMING    
    M117 Heating....  
    ##M300  #BEEP
    #BED_TILT_CALIBRATE #palpage plateau
    M104 S{EXTRUDER_TEMP}
    M140 S{BED_TEMP}
    M109 S{EXTRUDER_TEMP}
    M190 S{BED_TEMP}
    M117 Purge Extruder
    G92 E0 
    G1 Z7 F3000
    G1 X5 Y190
    G1 X100 Y190 F1500.0 E15   
    G92 E0
    G1 Z20 F3000      
    M117 Start print

[gcode_macro END_PRINT]
gcode:
    # Turn off bed, extruder, and fan
    M140 S0
    M104 S0
    M106 S0
    # Move nozzle away from print while retracting
    G91
    G1 X-3 Y-3 E-3 F300
    # Raise nozzle by 10mm
    G1 Z10 F3000
    G90
    # Disable steppers
    M84
    M300
    M117 Fin impression

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_tilt]
#*# x_adjust = 0.001394
#*# y_adjust = 0.000558
#*# z_adjust = -1.551889
 

  • J'aime 1
Lien à poster
Partager sur d’autres sites

Rejoindre la conversation

Vous pouvez poster un message et vous inscrire plus tard. Si vous avez déjà un compte, connectez-vous afin de poster avec.

Invité
Répondre à ce sujet…

×   Vous avez copié du contenu avec formatage.   Supprimer le formatage

  Only 75 emoji are allowed.

×   Votre lien a été automatiquement intégré.   Afficher en tant que lien à la place

×   Le contenu sauvegardé a été restauré.   Effacer l'éditeur

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Créer...