CrealityOfficial / Creality_Sonic_Pad

Firmware for Creality S-Pad by Creality
GNU General Public License v3.0
138 stars 18 forks source link

SONIC PAD IS BIG SHIT !!! IN THE WASTE AND BUY A BETTER PAD ??? #71

Open Toddi3D opened 1 year ago

Toddi3D commented 1 year ago

Problems after Update with Offset ... i can change the offset and i can save it. But every time i start a print i have to set the Z Offset again ... every print ... i try to reset. NOTHING i have a Anycubic Vyper

My Printer.cfg

!Anycubic Vyper

printer_size: 245x245x260 Displays information on the Creality Sonic Pad

[include macros.cfg]

[exclude_object]

[mcu] serial: /dev/serial/by-id/usb_serial_1 restart_method: command

[printer] kinematics: cartesian max_velocity: 150 max_accel: 2000 max_accel_to_decel: 2000 max_z_velocity: 5 max_z_accel: 100 square_corner_velocity: 6

[stepper_x] step_pin: PC2 dir_pin: PB9 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: !PA7 position_min: -1.0 position_endstop: -1.0 position_max: 255 homing_speed: 50.0 homing_positive_dir: false

[stepper_y] step_pin: PB8 dir_pin: PB7 enable_pin: !PC13 microsteps: 16 rotation_distance: 32 endstop_pin: !PC5 position_min: -4.5 position_endstop: -4.5 position_max: 255 homing_speed: 50.0 homing_positive_dir: false

[stepper_z] step_pin: PB6 dir_pin: !PB5 enable_pin: !PC14 microsteps: 16 rotation_distance: 8 endstop_pin: PB2 position_endstop: -0.0 position_max: 260 position_min: -1.0 homing_speed: 5.0 second_homing_speed: 5.0 homing_positive_dir: false

[stepper_z1] step_pin: PC0 dir_pin: !PC1 enable_pin: !PC15 microsteps: 16 rotation_distance: 8 endstop_pin: PC6

[extruder] step_pin: PB4 dir_pin: !PB3 enable_pin: !PA15 microsteps: 16 rotation_distance: 23.4438 gear_ratio: 50:17 full_steps_per_rotation: 200 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PA1 sensor_type: ATC Semitec 104GT-2 sensor_pin: PC4 control: pid pid_kp: 40.337 pid_ki: 2.467 pid_kd: 164.876 min_temp: 0 max_temp: 240 pressure_advance: 0.056 pressure_advance_smooth_time: 0.04 max_extrude_cross_section: 50

[heater_bed] heater_pin: PA4 sensor_type: EPCOS 100K B57560G104F sensor_pin: PB0 control = pid pid_kp: 58.299 pid_ki: 0.917 pid_kd: 926.951 min_temp: 0 max_temp: 110

[probe] pin: !PB12

z_offset: 0

speed: 0.5 lift_speed: 5 samples: 2 samples_tolerance: 0.01 samples_tolerance_retries: 3 sample_retract_dist: 1.0

activate_gcode: probe_reset

[bed_mesh] mesh_min: 15, 15 mesh_max: 230, 230 horizontal_move_z: 2.0 probe_count: 5, 5 bicubic_tension: 0.2 mesh_pps: 2, 2 algorithm: bicubic speed: 40

[safe_z_home] home_xy_position: -0.5, -4.0 z_hop: 4 z_hop_speed: 3.0 speed: 30

[input_shaper] shaper_type_x: 2hump_ei shaper_freq_x: 39.0 shaper_type_y: mzv shaper_freq_y: 23.0

[temperature_fan Mainboard] pin: mcu:PA14 sensor_type: temperature_mcu max_power: 1.0 shutdown_speed: 1.0 hardware_pwm: false kick_start_time: 0.5 off_below: 0.4 max_temp: 100 min_temp: 20 target_temp: 43 max_speed: 1.0 min_speed: 0.3 control: pid pid_Kp: 1 pid_Ki: 1 pid_Kd: 1

[temperature_sensor Raspberry Pi] sensor_type: temperature_host min_temp: 0 max_temp: 120

[output_pin beeper_pin] pin: PB15 pwm: true value: 0 shutdown_value: 1 cycle_time: 0.001

[heater_fan extruder_fan] pin: PB1

[idle_timeout] timeout: 900

[output_pin probe_reset_pin] pin: PB13

[fan] pin: PA0

[filament_switch_sensor runout] pause_on_runout: True switch_pin: PA5

[virtual_sdcard] path: ~/gcode_files

[pause_resume]

[display_status]

*# <---------------------- SAVE_CONFIG ---------------------->

*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.

*

*# [probe]

*# z_offset = -0.320

*

*# [bed_mesh default]

*# version = 1

*# points =

*# -0.215000, -0.211250, -0.248750, -0.256250, -0.205000

*# -0.193750, -0.183750, -0.242500, -0.238750, -0.200000

*# -0.176250, -0.167500, -0.215000, -0.231250, -0.207500

*# -0.187500, -0.176250, -0.206250, -0.203750, -0.196250

*# -0.198750, -0.177500, -0.208750, -0.220000, -0.183750

*# x_count = 5

*# y_count = 5

*# mesh_x_pps = 2

*# mesh_y_pps = 2

*# algo = bicubic

*# tension = 0.2

*# min_x = 15.0

*# max_x = 230.0

*# min_y = 15.0

*# max_y = 230.0

My Macros

[gcode_macro probe_reset] gcode: SET_PIN PIN=probe_reset_pin VALUE=0 G4 P300 SET_PIN PIN=probe_reset_pin VALUE=1 G4 P100

[gcode_macro PAUSE] description: Pause the actual running print rename_existing: PAUSE_BASE gcode:

set defaults
{% set x = params.X|default(0.5) %}      #edit to your park position
{% set y = params.Y|default(0.5) %}      #edit to your park position
{% set z = params.Z|default(10)|float %} #edit to your park position
{% set e = params.E|default(3) %}        #edit to your retract length
##### calculate save lift position #####
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% set lift_z = z|abs %}
{% if act_z < (max_z - lift_z) %}
    {% set z_safe = lift_z %}
{% else %}
    {% set z_safe = max_z - act_z %}
{% endif %}
##### end of definitions #####
PAUSE_BASE
G91
{% if printer.extruder.can_extrude|lower == 'true' %}
  G1 E-{e} F2100
{% else %}
  {action_respond_info("Extruder not hot enough")}
{% endif %}
{% if "xyz" in printer.toolhead.homed_axes %}    
  G1 Z{z_safe}
  G90
  G1 X{x} Y{y} F6000
{% else %}
  {action_respond_info("Printer not homed")}
{% endif %}

[gcode_macro RESUME] description: Resume the actual running print rename_existing: RESUME_BASE gcode:

read E from pause macro

{% set E = printer["gcode_macro PAUSE"].extrude|float %}

get VELOCITY parameter if specified

{% if 'VELOCITY' in params|upper %} {% set get_params = ('VELOCITY=' + params.VELOCITY) %} {%else %} {% set get_params = "" %} {% endif %}

end of definitions

{% if printer.extruder.can_extrude|lower == 'true' %} G91 G1 E{E} F2100 {% else %} {action_respond_info("Extruder not hot enough")} {% endif %} RESUME_BASE {get_params}

[gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: CANCEL_PRINT_BASE gcode: TURN_OFF_HEATERS {% if "xyz" in printer.toolhead.homed_axes %} G91 G1 Z4.5 F300 G90 {% else %} {action_respond_info("Printer not homed")} {% endif %} G28 X Y {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} G1 Y{y_park} F2000 M84 M107 CANCEL_PRINT_BASE

[delayed_gcode bed_mesh_init] initial_duration: .01 gcode: BED_MESH_PROFILE LOAD=default

[gcode_macro PA_Calibration] description: Adjust Velocity and PA parameters for bowden extruder gcode: SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500 TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=0.06

[gcode_macro PID_BED] gcode: PID_CALIBRATE HEATER=heater_bed TARGET=60

[gcode_macro PID_Extruder] gcode: PID_CALIBRATE HEATER=extruder TARGET=200

[gcode_macro M300] gcode:

Use a default 1kHz tone if S is omitted.

{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(100)|int %}
SET_PIN PIN=beeper_pin VALUE=0.85 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=beeper_pin VALUE=0

[output_pin CASELIGHT] pin: mcu: PA13 pwm: false value: 0

[gcode_macro _CASELIGHT_ON] description: Helper: Light on gcode: SET_PIN PIN=CASELIGHT VALUE=1.0 {action_respond_info("CASELIGHT ON")}

[gcode_macro _CASELIGHT_OFF] description: Helper: Light off gcode: SET_PIN PIN=CASELIGHT VALUE=0.0 {action_respond_info("CASELIGHT OFF")}

[gcode_macro CASELIGHT] description: Toggle light gcode: {% if printer['output_pin CASELIGHT'].value == 0 %} _CASELIGHT_ON {% else %} _CASELIGHT_OFF {% endif %}

[gcode_macro M0] gcode: PAUSE

Start Code Cura

M300 S1318 P250 ; Beeper Signal G28 ; Home M83 ; Extruder relative mode G1 X0 Y0 F2200 ; Go to front G1 E10 F500 ; Extrude a bit Filament G92 E0.0 ; Reset extruder length G90 ; Absolute positioning BED_MESH_PROFILE LOAD="default" ; G1 Z1.5 F2000 ; Bring the Nozzle near to the Bed G1 X75 Y3.0 Z0.20 F8000 ; Move To Start Position G1 X175 Y3.0 Z0.20 E18 F1200 ; Draw The First Line G1 X175 Y3.5 Z0.20 F800 ; Move To The Side A Little G1 X75 Y3.5 Z0.20 E20 F1200 ; Draw The Second Line G1 E-2 F1000 ; Retract a little G92 E0.0 ; Reset extruder length again G1 Z0.5 F1000 ; Lifting The Nozzle a Bit G1 X60 F3000 ; Move over to prevent blob squish M117 Printing Starts ; Send Start to display

tymanaf1 commented 1 month ago

Have you tried a different slicer? I'm assuming you've used the Sonic pad to set the Z offset as well right and it just reverts back to not being saved?