• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Issue with Unit 6 ESP32 with PIR Motion Sensor – Interrupts and Timers

Q&A Forum › Category: ESP32 › Issue with Unit 6 ESP32 with PIR Motion Sensor – Interrupts and Timers
0 Vote Up Vote Down
hawaii asked 3 weeks ago

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.

Question Tags: course esp32
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi.
Thanks for the feedback.
We’ll resolve that issue in the next eBook edition.
Regards,
Sara

0 Vote Up Vote Down
hawaii answered 3 weeks ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

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

0 Vote Up Vote Down
Mike Newman answered 3 hours ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 2 hours ago

Hi.
I’m sorry. You are absolutely right. That was my fault.
I’ve just fixed the code in the link. It should be working now.
I’m sorry for the inconvenience.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.