Notifications
Clear all
ESP32 & ESP8266
19
Posts
2
Users
1
Likes
4,236
Views
Topic starter
2021-04-05 1:39 am
Thanks, I'll read it tomorrow.
Topic starter
2021-04-05 3:10 pm
The only difference I see in that article is the use of IRAM_ATTR for the interrupt handler. I added this but it still fails.
I then took out the use of interrupts and now it loops until the motion sensor pin is HIGH, at which point it takes a picture. I now get:
Initialising camera
[E][camera.c:1249] esp_camera_init(): Camera probe failed with error 0x103
Camera init failed with error 0x103
Topic starter
2021-04-05 5:31 pm
From a dev on the ESP camera project:
currently ESP-Camera and
attachInterrupt
do not work together. They will work in a near future
Phew! I thought I was going crazy!
Topic starter
2021-04-05 8:34 pm
If works if I use the native ESP32 interrupt code:
gpio_set_intr_type(INPUT_PIN, GPIO_INTR_POSEDGE);
gpio_isr_handler_add(INPUT_PIN, ISR_HANDLER, NULL);
Page 2 / 2
Prev