bigtreetech / Octopus-Max-EZ

85 stars 22 forks source link

Octopus EZ V1 and EZ31865 klipper configuration not working. #19

Closed meyitangp closed 1 year ago

meyitangp commented 1 year ago

EDIT 2: resolved, for anyone who faces this issue in the future: simply comment out the 3 software spi lines and use “spi_bus: spi4”.

EDITED to focus on key problem:

Using this component configuration: 1) Octopus Max EZ V1.0 board 2) EZ31865 on Motor 8 socket 3) PT100 2pin on Motor 8 motor connector 4) Running Klipper

I am unable to get temperature readings from the EZ31865 connected to the Octopus Max EZ V1.0. Instead, Mainsail reports error "MCU 'mcu' shutdown: Thermocouple reader fault".

Upong looking at klipper logs, i can see that the EZ31865 is reporting errors below. (Ignore stepper X/Y/Z errors as my main issue is with extruder temperature reading using EZ31865).

Configured MCU 'mcu' (1024 moves)
TMC stepper_x failed to init: Unable to read tmc uart 'stepper_x' register IFCNT
TMC stepper_y failed to init: Unable to read tmc uart 'stepper_y' register IFCNT
TMC stepper_z failed to init: Unable to read tmc uart 'stepper_z' register IFCNT
TMC extruder failed to init: Unable to read tmc uart 'extruder' register IFCNT
Starting heater checks for heater_bed
Unable to obtain tmc stepper_x phase
Unable to obtain tmc stepper_y phase
Unable to obtain tmc stepper_z phase
Starting heater checks for extruder
Unable to obtain tmc extruder phase
webhooks: registering remote method 'shutdown_machine' for connection id: 139672843558032
webhooks: registering remote method 'reboot_machine' for connection id: 139672843558032
webhooks: registering remote method 'pause_job_queue' for connection id: 139672843558032
webhooks: registering remote method 'start_job_queue' for connection id: 139672843558032
Max31865 RTD input is disconnected
Max31865 RTD input is shorted
Max31865 VREF- is greater than 0.85 * VBIAS, FORCE- open
Max31865 VREF- is less than 0.85 * VBIAS, FORCE- open
Max31865 VRTD- is less than 0.85 * VBIAS, FORCE- open
Max31865 Overvoltage or undervoltage fault
Max31865 RTD input is disconnected
Max31865 RTD input is shorted
Max31865 VREF- is greater than 0.85 * VBIAS, FORCE- open
Max31865 VREF- is less than 0.85 * VBIAS, FORCE- open
Max31865 VRTD- is less than 0.85 * VBIAS, FORCE- open
Max31865 Overvoltage or undervoltage fault
Max31865 RTD input is disconnected
Max31865 RTD input is shorted
Max31865 VREF- is greater than 0.85 * VBIAS, FORCE- open
Max31865 VREF- is less than 0.85 * VBIAS, FORCE- open
Max31865 VRTD- is less than 0.85 * VBIAS, FORCE- open
Max31865 Overvoltage or undervoltage fault
MCU 'mcu' shutdown: Thermocouple reader fault
clocksync state: mcu_freq=400000000 last_clock=1824813108182 clock_est=(3267.557 1824295986559 400021692.436) min_half_rtt=0.000131 min_rtt_time=3267.865 time_avg=3267.557(0.075) clock_avg=1824295986559.741(30044507.575) pred_variance=114117796935.742
Dumping serial stats: bytes_write=1738 bytes_read=5082 bytes_retransmit=0 bytes_invalid=0 send_seq=173 receive_seq=173 retransmit_seq=0 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0

Additional details: Nothing else is connected to the board other than the components mentioned above. Here is a picture of the bare setup.

image

Printer config is as follows:


[virtual_sdcard]
path: /home/pierre/printer_data/gcodes
on_error_gcode: # CANCEL_PRINT

[mcu]
canbus_uuid:13282f7fbb2e #CANBUS Address, see word doc for instructions how to get this.

[printer]
#kinematics: cartesian
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 30

# Motor-1
[stepper_x]
step_pin: PC13
dir_pin: PC14
enable_pin: !PE6
microsteps: 16
rotation_distance: 40
#endstop_pin: PF0 #this is the format you use if using physical endstops
endstop_pin: tmc2209_stepper_x:virtual_endstop #use this definition when using sensorless homing
position_endstop: 0
position_max: 200
homing_speed: 50

[tmc2209 stepper_x]
uart_pin: PG14
diag_pin: PF0 #Only enabled when using sensorless homing. another command above (endstop_pin: tmc2209_stepper_x:virtual_endstop) reference this pin
run_current: 0.800
stealthchop_threshold: 0
driver_SGTHRS: 127 #Driver homing sensitivity value, essentialy lowers motor power during homing and detects a stall.
#Range low/high, 0/255, (less sensitive, won't trigger easily)/(very sensitive, will trigger false positives) need to try different settings.

# Motor-2
[stepper_y]
step_pin: PE4
dir_pin: PE5
enable_pin: !PE3
microsteps: 16
rotation_distance: 40
#endstop_pin: PF2 #this is the format you use if using physical endstops
endstop_pin: tmc2209_stepper_y:virtual_endstop #use this definition when using sensorless homing
position_endstop: 0
position_max: 200
homing_speed: 50

[tmc2209 stepper_y]
uart_pin: PG13
diag_pin: PF2 #Only enabled when using sensorless homing. another command above (endstop_pin: tmc2209_stepper_y:virtual_endstop) reference this pin
run_current: 0.800
stealthchop_threshold: 0
driver_SGTHRS: 127 #Driver homing sensitivity value, essentialy lowers motor power during homing and detects a stall.

# Motor-3
[stepper_z]
step_pin: PE1
dir_pin: PE0
enable_pin: !PE2
microsteps: 16
rotation_distance: 8
#endstop_pin: PF4 #this is the format you use if using physical endstops
endstop_pin: tmc2209_stepper_z:virtual_endstop #use this definition when using sensorless homing
position_endstop: 0.5
position_max: 200

[tmc2209 stepper_z]
uart_pin: PG12
diag_pin: PF4 #Only enabled when using sensorless homing. another command above (endstop_pin: tmc2209_stepper_y:virtual_endstop) reference this pin
run_current: 0.650
stealthchop_threshold: 0
driver_SGTHRS: 127 #Driver homing sensitivity value, essentialy lowers motor power during homing and detects a stall.

# Motor-5
[extruder]
step_pin: PB5
dir_pin: PB4
enable_pin:!PB6
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PF6 # HE0
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 500
sensor_type: MAX31865 #   One of "MAX6675", "MAX31855", "MAX31856", or "MAX31865".
sensor_pin: PD6 #Motor 8
spi_speed: 4000000
spi_software_sclk_pin: PE12
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
#tc_type: K
#tc_use_50Hz_filter: False
#tc_averaging_count: 1
rtd_nominal_r: 100
rtd_reference_r: 430
rtd_num_of_wires: 2
rtd_use_50Hz_filter: False

[static_digital_output my_output_pins]
pins:!PB12

[tmc2209 extruder] #sensorless homing not used on this extruder
uart_pin: PG10
run_current: 0.800
stealthchop_threshold: 999999

[board_pins]
aliases:
    # FPC header, Aliases EXP1 & EXP2 for mini12864
    EXP1_1=PG2, EXP1_2=PD15,
    EXP1_3=PD14, EXP1_4=PD13,
    EXP1_5=PD12, EXP1_6=PD11,
    EXP1_7=PD10, EXP1_8=PE15,
    EXP1_9=<GND>, EXP1_10=<5V>,

    # EXP2 header
    EXP2_1=PE13, EXP2_2=PE12,
    EXP2_3=PG5, EXP2_4=PE11,
    EXP2_5=PG4, EXP2_6=PE14,
    EXP2_7=PG3, EXP2_8=<RST>,
    EXP2_9=<GND>, EXP2_10=<NC>```
math45klm commented 1 year ago

hi, have you tried with the jumper to select the 24v associated with the port concerned?

meyitangp commented 1 year ago

@math45klm Yes I have. It made no difference. Here is picture of current board configuration. image -removed usb jumper -set motor 8 jumper to VBB -all lights seem ok

Here is picture of error message image

math45klm commented 1 year ago

I also have the ez31865 to install for a pt1000 2 wire but I have not yet installed and I have only just read that the ez31865 uses VCCIO part of the power supply, support 3.3v-5v power input.. I deduce from this that you should not install the jumper for the 24v (perhaps wrongly) I will try to see things more clearly before making you make more mistakes, I am not sure sorry. I will come back to you if I managed to install it on my side.

meyitangp commented 1 year ago

@math45klm Ok thank you. I will try to trace MCU pins to determine Motor 8 Socket pinout. It would be nice if BIQU could provide this information. Motor socket pinout from MCU.

meyitangp commented 1 year ago

Still not able to get this work. Waiting on support.

meyitangp commented 1 year ago

for anyone who faces this issue in the future: simply comment out the 3 software spi lines and use “spi_bus: spi4”.

egoleos commented 1 year ago

for anyone who faces this issue in the future: simply comment out the 3 software spi lines and use “spi_bus: spi4”.

it doesn't work with tmc5160 steppers. can't use spi_bus: spi4 in the settings.