Hi,
I had issues with the example code of the PIR motion sensor as using Serial.println(“MOTION DETECTED!!!”); in an Interrupt function causes this error if you use the motion sensor multiple times while the esp32 is running.
source: https://stackoverflow.com/questions/71992044/esp32-core-1-paniced-interrupt-wdt-timeout-on-cpu1
To fix it I applied another boolean and moved the Serial.println(“MOTION DETECTED!!!”); to the void loop where it is no problem to use.
https://pastebin.com/Lf7bxWi1
Maybe this can be changed in the course so others are not struggeling with the same issue.
Hi.
Thanks for the feedback.
We’ll resolve that issue in the next eBook edition.
Regards,
Sara
Hi Sara,
thank you 🙂 I also want to say that I’m very happy with the course as it really helped me a lot to.
Great job with the course.
Best,
Kai
That’s great. Thank you.
I’m glad you’re enjoying the course.
I’ll mark this issue as resolved. If you have any doubts or need any help, you just need to open a new question in our forum.
Regards,
Sara
I’m butting my head against that problem right now, have been on it for many hours. I was able to prove I had no hardware issues by downloading an alternative interrupt sketch and modifying it to debounce the sensor.
I’ll now try and get this sketch running and understand what is going on. I haven’t been able to source enough information from around the net to understand what the original problem is exactly.
The online resources are what need fixing the link in the Ebook takes you there, but it is wrong. Should be a fairly easy fix that doesn’t need to await an Ebook update.
Mike.