Closed flix-ui closed 4 weeks ago
What is causing you difficulties? Isn't adding a timer in the loop enough?
size_t lastSnapshotAt = 0;
size_t snapshotInterval = 10 * 60 * 1000; // in milliseconds
void loop() {
if (millis() > lastSnapshotAt + snapshotInterval || millis() < lastSnapshotAt) {
// take snapshot and save to SD...
// you can look here for a reference: https://eloquentarduino.com/posts/esp32-cam-save-pictures-to-sd-card
lastSnapshotAt = millis();
}
// rest of code...
}
okay thankyou for your feedback. i just tried from your reference in https://eloquentarduino.com/posts/esp32-cam-save-pictures-to-sd-card. but I got error (reset (TG1WDT_SYS_RESET) ). i use AI thinker ESP32-CAM.
Thankyou
Did you set the correct pins for the SD? By the way, you can use any code from Google to write to SD card if mine is throwing a error
Il ven 19 lug 2024, 05:14 flix-ui @.***> ha scritto:
okay thankyou for your feedback. i just tried from your reference in https://eloquentarduino.com/posts/esp32-cam-save-pictures-to-sd-card. but I got error (reset (TG1WDT_SYS_RESET) ). i use AI thinker ESP32-CAM.
Thankyou
— Reply to this email directly, view it on GitHub https://github.com/eloquentarduino/EloquentEsp32cam/issues/38#issuecomment-2238005094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOA7GNJD7NOK3DAL5I6JKJLZNCACDAVCNFSM6AAAAABK7ZST3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZYGAYDKMBZGQ . You are receiving this because you commented.Message ID: @.***>
hello, I have used code for object detection using the FOMO (edgeimpulse) method. Can you help me to combine it with the code to periodically save photos from the esp32cam to the micro SD every 10 minutes?
Thank You I'm waiting for the good news