Aller au contenu

GO Print

Smartcub3D avec Klipper


klem1

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 vers le commentaire
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 vers le commentaire
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 vers le commentaire
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 vers le commentaire
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 vers le commentaire
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 vers le commentaire
Partager sur d’autres sites

  • 2 years later...
il y a 30 minutes, yannblazart a dit :

Hello, je viens de voir ce sujet, je voulais savoir si vous avez des news, des avancés ? Klem1 ?

Écoute elle fonctionne sous klipper depuis un bon moment ras.

Par contre j'ai pas poussé la configuration à fond, de ce fait je n'ai pas le bed leveling automatique, j'en fait un hors print et je sauvegarde la valeur et j'utilise la même valeur à chaque print.

Pour l'instant ça me suffit, mais je pense par la suite qu'elle sera remplacé par un diy ou une imprimante plus récente.

 

Lien vers le commentaire
Partager sur d’autres sites

Bonjour @klem1, je rebondi sur ton sujet car j'ai également passé sous klipper ma smartcub MK2+, j'ai même changer le bad par un MK2a sur lequel j'ai posé la plaque alu avec son buildtak pour continuer d'utiliser la probe comme sur marlin.

Mon fichier printer.cfg et macros.cfg

Je n'arrive pas à faire le probe au 4 coins du plateau avec Klipper. Sais tu le faire ?

Révélation


[gcode_macro START_PRINT]
#variable_T_BED: 60
#variable_T_EXTRUDER: 200
#variable_STANDBY_T_EXTRUDER: 170
gcode:
    {% set T_BED = params.T_BED|default(60)|float %}
    {% set T_EXTRUDER = params.T_EXTRUDER|default(200)|float %}
    {% set STANDBY_T_EXTRUDER = params.STANDBY_T_EXTRUDER|default(170)|float %}
      
    M117 Homing
    # Use absolute coordinates
    G90
    # Reset Pressure Advance to 0, will be adjusted later in gcode based on material settings from cura
    #M900 K0
    # Reset the G-Code Z offset (adjust Z offset if needed)
    SET_GCODE_OFFSET Z=0.0
    # Home the printer
    G28
  
        # Move the nozzle near the bed
    G1 X15 Y20 Z5 F6000
    # Move the nozzle very close to the bed
    G1 Z0.15 F300    
    M117 Waiting for temperature
    # Start bed and extruder heating and continue
    M104 S{STANDBY_T_EXTRUDER}
    M140 S{T_BED}
    {% if printer.heater_bed.temperature < params.T_BED|float*0.85 %}
        M190 S{params.T_BED|float*0.85} # wait till 0.85 of bed temp is reached, then continue  
    {% endif %}
    
    M140 S{T_BED} 
    M104 S170
    M190 S{T_BED}
    M109 S{T_EXTRUDER}
    
    # Prime line
    PURGE
    M117 Printing...


[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
 

 

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 the atmega1280 is also possible).

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

[virtual_sdcard]
path: ~/printer_data/gcodes
path: /home/pifbr/ender3_data/gcodes

[include macros.cfg]

[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 85

[stepper_x]
step_pin: PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 39.8
endstop_pin: ^PE5
position_endstop: 0
position_max: 192
homing_speed: 50
second_homing_speed: 10

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 39.741
endstop_pin: ^PJ0
#endstop_pin: ^PJ0
position_endstop: 190
position_max: 190
homing_speed: 50
second_homing_speed: 10


[stepper_z]
step_pin: PL3
dir_pin: !PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 8.024
endstop_pin: ^PD2
#endstop_pin: ^PD2
position_endstop: 166.426
position_max: 170
position_min: -3
second_homing_speed: 3.0


[extruder]
step_pin: PA4
dir_pin: !PA6
enable_pin: !PA2
microsteps: 16
rotation_distance: 20.713
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB4
sensor_type: Generic 3950 #NTC 100K beta 3950 
sensor_pin: PK5
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 260

[heater_bed]
heater_pin: PH5
sensor_type: Generic 3950 #EPCOS 100K B57560G104F
sensor_pin: PK6
#control: watermark
#pid_Kp: 70.715
#pid_Ki: 1.366
#pid_Kd: 914.880
min_temp: 0
max_temp: 70

[fan]
pin: PH6

[mcu]
serial: /dev/ttyACM0

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 7000
max_z_velocity: 5
max_z_accel: 60
max_accel_to_decel: 7000 #ajout

[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

#############################################################################################################################
[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
###########################################################################################################################


[output_pin BEEPER_pin]
pin: PC0
#   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: ^!PD3 #valeur PJ1 
#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

# Common EXP1 / EXP2 (display) pins
[board_pins]
aliases:
    # Common EXP1 header found on many "all-in-one" ramps clones
    EXP1_1=PC0, EXP1_3=PH0, EXP1_5=PA1, EXP1_7=PA5, EXP1_9=<GND>,
    EXP1_2=PC2, EXP1_4=PH1, EXP1_6=PA3, EXP1_8=PA7, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=PB3, EXP2_3=PC6, EXP2_5=PC4, EXP2_7=PL0, EXP2_9=<GND>,
    EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PG0, 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=PG0

# See the sample-lcd.cfg file for definitions of common LCD displays.

#*# <---------------------- 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
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 70.715
#*# pid_ki = 1.332
#*# pid_kd = 938.746
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 33.624
#*# pid_ki = 1.822
#*# pid_kd = 155.092
#*#
#*# [probe]
#*# z_offset = 0.084
 

 

Modifié (le) par FBR39120
Lien vers le commentaire
Partager sur d’autres sites

Hello @FBR39120, j'aimerais aussi donner une seconde vie  à ma SmartCub3d avec Klipper. Pourrais-tu m'aider à démarrer ? (doc pointeur etc ?) ainsi je pourrais essayer aussi d'avancer sur le palpage.

 

Si j'ai bien compris le fichier de config de @klem1, la carte de la smartcub est une atmega2560, pour la compilation de klipper depuis le Pi. Pour installer le firmware, tu as procéder en usb ? (comme pour les autres ?), tu pourrais partager ton fichier de config aussi ? (Est-ce celui de @klem1 ?)

 

Merci d'avance.

 

Cordialement.

Lien vers le commentaire
Partager sur d’autres sites

il y a 1 minute, yannblazart a dit :

Si j'ai bien compris le fichier de config de @klem1, la carte de la smartcub est une atmega2560, pour la compilation de klipper depuis le Pi. Pour installer le firmware, tu as procéder en usb ? (comme pour les autres ?), tu pourrais partager ton fichier de config aussi ? (Est-ce celui de @klem1 ?)

Bonjour, 

j'ai partagé mon fichier printer.cfg et le fichier macro.cfg qui va avec dans mon premier message (il suffit d'ouvrir "révéler texte masqué").

Ma carte est un ramps 1.4 je suis parti sur le fichier printer.cfg de @klem1 et j'ai modifié les définition des pins en m'aidant de ce fichier klipper/sample-aliases.cfg at master · Klipper3d/klipper (github.com).

Sinon pour l'installation du firmware j'ai utiliser un câble USB que j'ai branché sur mon PC et j'ai utilisé le petit programme pour flasher les firmware disponible sur le site de SMARTCUBE.

Je suis toujours dans la phase de réglage du PROBE j'ai des erreur du style No trigger on probe after full movement ou Probe samples exceed samples_tolerance   quand je lance une commande BED_TILT_CALIBRATE

Lien vers le commentaire
Partager sur d’autres sites

Oups, j'avais regardé que le 1er texte masqué, désolé. Bon, va me falloir un peu de temps pour ratrapper tous ça. J'ai une Mk3 pro, je suppose que c'est la même Ramps 1.4 que toi ? (d'ailleurs @Klem1 c'est une smartcub3d v1 ? c'est pour ça la modif des pins ?)

 

Merci pour ta réponse et ton aide 🙂 Si j'y arrive, le top sera d'ajouter l'accelerometre 😛

Lien vers le commentaire
Partager sur d’autres sites

Je ne connais pas bien les Ramps, pour installer un ADXL ce n'est pas bien compliqué on trouve vraiment beaucoup de chose sur ce sujet d'ailleurs pour avoir plus de précision il faut faire le test avec 2 en même temps, un sur le plateau pour le Z et un sur le chariot pour le XY

Lien vers le commentaire
Partager sur d’autres sites

il y a 1 minute, yannblazart a dit :

J'ai vu une vidéo du gars qui construit pas mal de voron. On peut acheter une carte avec l'adxl prémonté pour mettre sur la tête et y'a un cable usb qui part direct au Pi. Ca évite de bricoler directement sur la carte.

Oui c'est celle de tom's basement, excellente chaine mais tu ne peux faire qu'une seule mesure à la fois. je n'ai pas cette appareil prémonté en usb j'utilise les gpio du pi et ça va très bien (par contre il faut avoir de quoi faire les câbles). J'ai fait plusieurs test d'abord en branchant un ADXL sur le chariot puis ensuite sur le plateau, j'ai donc eu 2 courbes pas facile à exploiter. puis j'ai branché 2 ADXL en même temps et là c'est le top car tu as un test complet.

Sur les voron 2.4 le chariot bouge en X,Y,Z le plateau est fixe donc l'ADXL USB est utile mais sur du cartésien il vaut mieux à mon avis utiliser 2 ADXL.

Lien vers le commentaire
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
×
×
  • Créer...