Using Interrupt Causes ESP32 Cam To Continuously Reboot

attachInterrupt(interruptPin, trigger, RISING);

This one line of code above, causes my ESP32 Cam to just continuously reboot. When I comment it out, everything works fine. Here is the error from the monitor.


I’m using the Basic Image Classification program, Arduino 1.8.19.

Can anyone help me fix this? If you need all my code, I will happily provide it.

Hi @sureiguess,

My guess is that it has something to do with this: ESP always crashing when attach an Interrupt. · Issue #90 · espressif/esp-who · GitHub. From what I understand, the ESP32 camera module already attaches an interrupt during initialization, and you can’t do it again. Please see that thread for some possible solutions.

Thank you, this is exactly what I was looking for.

1 Like