-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reset/abort function gpio2 #892
Comments
Info about control switches is here. https://github.com/bdring/Grbl_Esp32/wiki/Control-Switches Make sure they are reporting their state in idle before you try testing with motion. https://github.com/bdring/Grbl_Esp32/wiki/Help-with-Switch-Problems#checking-switch-status If you still have problems, please follow this guide to give us information to help solve the problem. |
I did some testing with an arduino uno with grbl 1.1. It is responding the
way I like. IT stops the program with a short of pin A0 with Alarm 3. This
is what I was looking for when I press the estop with the reset/about pin
shorted to ground. This kills program. Is this possible with an esp32
[image: image.png]
[image: image.png]
…On Mon, May 10, 2021 at 8:51 AM bdring ***@***.***> wrote:
Info about control switches is here.
https://github.com/bdring/Grbl_Esp32/wiki/Control-Switches
Make sure they are reporting their state in idle before you try testing
with motion.
https://github.com/bdring/Grbl_Esp32/wiki/Help-with-Switch-Problems#checking-switch-status
If you still have problems, please follow this guide to give us
information to help solve the problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#892 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATQUGERQWULHL4DHPNWQOCLTM7JGFANCNFSM44QLU5OA>
.
|
You need to provide the information listed in https://github.com/bdring/Grbl_Esp32/wiki/Requesting-Help . Without that information, we cannot deduce what might be going wrong in your situation. |
I am having similar issue... I define my pin as follow: Then when I press the button my ESP32 restarts. (I start a movement first G0X1000) This is the message I get: Grbl 1.3a ['$' for help] ELF file SHA256: 0000000000000000 Backtrace: 0x400951d2:0x3ffc0600 0x400943e4:0x3ffc0620 0x40092677:0x3ffc0640 0x401706e4:0x3ffc0680 0x40171091:0x3ffc06c0 0x400df9ad:0x3ffc06f0 0x400da652:0x3ffc0710 0x400d8cd6:0x3ffc0730 0x400d8d8a:0x3ffc07d0 0x400df7bc:0x3ffc0890 0x400821b0:0x3ffc08b0 0x400822ad:0x3ffc08d0 0x4008d899:0x3ffc08f0 0x4000bfed:0x3ffbcc50 0x40093a39:0x3ffbcc60 0x40092623:0x3ffbcc80 0x401ed5fe:0x3ffbccc0 0x401dcf69:0x3ffbcce0 0x400efe2e:0x3ffbcd10 0x400f73e1:0x3ffbcd50 0x400e2b49:0x3ffbcd80 0x400eb5a2:0x3ffbcdc0 0x400eb25c:0x3ffbcde0 0x400da5a7:0x3ffbce00 0x400928de:0x3ffbce20 Core 0 register dump: ELF file SHA256: 0000000000000000 Backtrace: 0x400938ca:0x3ffc0270 0x400940aa:0x3ffc02a0 0x400929cb:0x3ffc02c0 0x40095051:0x3ffc02e0 0x4008d8a2:0x3ffc02f0 0x40222bd7:0x3ffbd540 0x4018bfb2:0x3ffbd560 0x40094075:0x3ffbd580 0x400928de:0x3ffbd5a0 Rebooting... |
I also tried the abort button while in idle mode with the same results. |
@Protoneer I think there is some bounce on the reset pin which is causing the the interrupt to be called many times. The interrupt is printing the message Printing from an interrupt is risky and the multiple hits is probably causing the crash. @MitchBradley has identified a few other areas of concern in the control pin handling and started some code changes. If you want to try some things on your own before his code is merged..
|
Thanks @bdring , I will test the filter and the code changes tonight. |
@bdring , I did some testing again and #901 has fixed the reboot issue. I have tested the code changes without adding a pull resister and when the button bounces a bit all I get is a repeat of the unlock message. (I am currently using my tweezer to short the button pins... :) )
|
As I was configuring the esp32_grbl file, I noticed that the reset pin resets the board and does not abort my cnc machine movement. How would I able to configure the reset pin to function as abort and trigger the alarm state to stop machine movement.
Thanks for your help
The text was updated successfully, but these errors were encountered: