MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.25k stars 19.23k forks source link

[BUG] Not Z homing using default configuration for Tronxy X5SA #21339

Closed luiggies closed 3 years ago

luiggies commented 3 years ago

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

I got newest bugfix.2.0.x and newest configuration file for Tronxy X5SA. I flashed printer and I tray homing it but Z axis not homing.

When I call G28 command (or use Auto home from printer's menu):

  1. Bed goes down 10 mm - correct
  2. homing X axis - correct
  3. homing Y axis - correct
  4. extruder goes to center point of the bed (XY move) - correct
  5. should homing Z axis but bed does not move - Z axis not homing - NOT correct.
  6. Bed goes down 10 mm again - correct

Step 5 is very fast. Move from step 4 to 6 is very fast. Step 5 is not observable.

Tronxy X5SA ueses to homing and bed probe the same inductive sensor, so Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN and USE_PROBE_FOR_Z_HOMING are defined

Configuration files: MarlinConfig.zip

1 (2)

Bug Timeline

No response

Expected behavior

Z homing correctly

Actual behavior

  1. Distance between bed and extruder increase to 10 mm
  2. Homing XY correctly
  3. Homing Z - not effect
  4. Distance between bed and extruder increase to 10 mm again.

Steps to Reproduce

Flash Tronxy X5SA newest bugfix-2.0.x and use default configuration file for this printer

Version of Marlin Firmware

Marlin bugfix-2.0.x

Printer model

Tronxy X5SA

Electronics

BOARD_CHITU3D_V5

rhapsodyv commented 3 years ago

Change to BOARD_CHITU3D_V6

luiggies commented 3 years ago

On the BOARD_CHITU3D_V6 during homing procedure: Bed moves up (good), but soft doesn't listen inductive Z endstop - bed collision with extruder.

2 2

BTW: earlier issue with touch screen doesn't appear

rhapsodyv commented 3 years ago

This is exactly the same board I have. You need to use V5 board + this env chitu_v5_gpio_init

luiggies commented 3 years ago

Not good result. I set environment:

[platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = chitu_v5_gpio_init include_dir = Marlin

and board defined as BOARD_CHITU3D_V5 but result is the same as main ticket description: https://github.com/MarlinFirmware/Marlin/issues/21339#issue-830578612

rhapsodyv commented 3 years ago

Can you try my tronxy branch?

https://github.com/rhapsodyv/Marlin

Because what you described is either a issue with the board version, or a issue with gpio init env, or a hardware issue.

luiggies commented 3 years ago

I tried it and effect is still the same, no correctly Z-homing. Configuration.zip On stock firmware Tronxy homing correctly. any more advice?

Dark-Lancer commented 3 years ago

I had a similar problem on mz xy-2 pro. I checked the endstop states with pronterface M119. After power on my z-sensor was at High until i triggered it 1 time manually. I uncommented the following lines in configuration.h:

1030 #define ENDSTOPPULLUP_ZMIN 1031 #define ENDSTOPPULLUP_ZMIN_PROBE

then it works for me.

luiggies commented 3 years ago

Thank you for help but doesn't work - probably I must to change the mainboard...

rhapsodyv commented 3 years ago

@luiggies did it work for you?

luiggies commented 3 years ago

@rhapsodyv, not for the stock mainboard, I going to change it. I bought SKR v1.3, but I don't change it, yet.

luiggies commented 3 years ago

@rhapsodyv about tronxy mainboard: I noticed that, after starting the printer, Z homing does not work correctly, but if i activate Z probing endstop (example I touch this using some piece of metals) before homing, homing procedure works correctly.

Dark-Lancer commented 3 years ago

@luiggies This is what i mentioned. Check the Endstoppullups in the marlin config. this worked for me.

luiggies commented 3 years ago

@Dark-Lancer I tried your solution but it does not working for me.

Dark-Lancer commented 3 years ago

Hmmm, okay. I have the V6 board. Just as an idea, have you tried to use the pulldown settings in marlin? Maybe the boards have other internal routings. In a forum, someone had the similar error, but also a v6 board :/ https://drucktipps3d.de/forum/topic/tutorial-tronxy-x5sa-von-chitu-auf-marlin/?part=14#postid-135991 In Posting #138 he has written his found solution.

Otherwise i have no ideas left. Wish u luck to get it running.

Dark-Lancer commented 3 years ago

@luiggies I found a second changed in my files which i haven't remembered.

I had to change the assigned pin on my v6 board, but i found no information if it's the same on the v5 board.

In the File: buildroot\share\PlatformIO\variants\marlin_CHITU_F103\wirish\board_setup.cpp i changed the GPIO-PIN for the Zmin/Sensor in Line 103 Original from Rhapsody: GPIOA->regs->BSRR = (1U << PA14); My Change: GPIOA->regs->BSRR = (1U << PG9);

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.