Hi all,
I've got a time lapse project under way with an ESP32-CAM (AI Thinker module) but I only need it to take photos at day time.
I'd like it to check the time and if its between say 8am-5pm take photos, but between 5.01pm - 7.59 be in deep sleep mode.
I've got the time lapse working and I have played around with the NTP server code
But I'm just not sure the best way to do this
Thanks in advance.
ESP32 Scheduling
Re: ESP32 Scheduling
What is the problem? If your getting the time, and you have the time lapse working.
Re: ESP32 Scheduling
I never used NTP since I have my own backends to reply with the time info.
But if you have the time-lapse working, also no idea how that is since you didn't provide any demo code, then just build something that checks the NTP time on every wake up and if it's on the "service time" then take the picture, if not just keep on sleeping another round.
But if you have the time-lapse working, also no idea how that is since you didn't provide any demo code, then just build something that checks the NTP time on every wake up and if it's on the "service time" then take the picture, if not just keep on sleeping another round.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
-
- Posts: 2
- Joined: Sat May 02, 2020 4:14 am
Re: ESP32 Scheduling
Thanks guys,
I'll pursue the Time method, just wasn't sure if there was a better way to do it such as interrupts or something along those lines
I'll pursue the Time method, just wasn't sure if there was a better way to do it such as interrupts or something along those lines
Who is online
Users browsing this forum: No registered users and 116 guests