Paciente8159 / uCNC

µCNC - Universal CNC firmware for microcontrollers
https://github.com/Paciente8159/uCNC/wiki
GNU General Public License v3.0
265 stars 60 forks source link

[BUG] Y axis endstop triggered after a period of time and hold in this position #686

Closed lorddag closed 1 month ago

lorddag commented 3 months ago

Describe the bug When I first turn on the uCNC there is no endstop triggered (as it should be). I can even manually trigger all the endstops and it responds as expected. After a random period of time (motors on or off, is independent),the y axis endstop is reported as triggered and is hold in the triggered prosition after that. I have to reset the board to escape. uCNC then returns <Alarm|MPos:0.000,0.000,0.000|FS:0.000,0|Pn:Y> all the time. The endstop is not triggered( verified via multimeter). X endstop and Z endstop are the same, wired the same and it does not happen with them.

What is your hardware Describe your hardware:

  1. What's your board: Arduino mega + Ramps 1.4
  2. Paste your "Grbl/µCNC settings": Files attached.
  3. If this is a custom compilation tell us what configurations you changed: No. default

Additional context cnc_hal_reset - copia.txt boardmap_overrides - copia.txt boardmap_reset - copia.txt cnc_hal_overrides - copia.txt

Paciente8159 commented 3 months ago

Thanks for reporting. I will try your settings on my RAMPS too, but my first guess would be a noise problem or a faulty wire.

To test the faulty wire try swapping the X and Y limits connections an see if the problem moved to the X limit. Noise is a bit more hard to capture. Enable option ENABLE_EXTRA_SYSTEM_CMDS and ENABLE_PIN_TRANSLATIONS

This will enable some extra EEPROM commands and the $P command that allow you to print the pinout state.

lorddag commented 3 months ago

Thank you for the help and fast response. I also thought about noise, but the y endstop is reported as triggered all the time after that. I would expect from noise a random activation but not a constant activation. It also happens without power supply to the motors, so less noisy enviroment. I swapped endstops and the effect is always in the y axis.

I'll enable the commands you mentioned. I'll report the data.

Paciente8159 commented 1 month ago

Closing this issue given the time passed with no evolution. Feel free to report it again if it happens.