{"id":114555,"date":"2023-03-31T14:00:18","date_gmt":"2023-03-31T08:30:18","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=114555"},"modified":"2024-07-26T17:45:07","modified_gmt":"2024-07-26T12:15:07","slug":"esp32-rtc-based-camera-using-motion-sensor","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/esp32-rtc-based-camera-using-motion-sensor","title":{"rendered":"ESP32 RTC Based Camera Using Motion Sensor"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-55476\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2019\/08\/Ashwini-EFY-Tested-150x147.png\" alt=\"ashwini\" width=\"150\" height=\"147\" \/>In the previous version of ESP32 cam project published in February issue you could live stream the video and access the video over Wi-FI. Carrying that forward, in this project the ESP32 cam attached with RTC can take pictures based on time and save them on an SD card attached to the board. The design can be further developed to capture a video picture only when some motion is detected, so that it can act as a wireless security camera.<\/p>\n<p><center><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/32iZx2sZE6E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/center><br \/>\nThe author\u2019s prototype is shown in Fig. 1 while the components required for the project are listed under Bill of Material table. The circuit diagram for the ESP32 RTC based camera is shown in Fig. 2.<\/p>\n<figure id=\"attachment_114576\" aria-describedby=\"caption-attachment-114576\" style=\"width: 1000px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-114576\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board.jpg\" alt=\"Author\u2019s prototype soldered on board\" width=\"1000\" height=\"466\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board-500x233.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board-696x324.jpg 696w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board-50x23.jpg 50w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-1-Authors-prototype-soldered-on-board-100x47.jpg 100w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption id=\"caption-attachment-114576\" class=\"wp-caption-text\">Fig. 1: Author\u2019s prototype soldered on board<\/figcaption><\/figure>\n<figure id=\"attachment_114577\" aria-describedby=\"caption-attachment-114577\" style=\"width: 1000px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-114577\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit.jpg\" alt=\" ESP32 RTC based camera circuit\" width=\"1000\" height=\"345\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit-500x173.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit-696x240.jpg 696w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit-50x17.jpg 50w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-2-ESP32-RTC-based-camera-circuit-100x35.jpg 100w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption id=\"caption-attachment-114577\" class=\"wp-caption-text\">Fig. 2: ESP32 RTC based camera circuit<\/figcaption><\/figure>\n<p>The circuit is built around voltage regulator LM1117, an OLED, and ESP32 cam. For programming the ESP32 you need the USB-to-serial programmer shown in Fig. 3.<\/p>\n<figure id=\"attachment_114578\" aria-describedby=\"caption-attachment-114578\" style=\"width: 1000px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-114578\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam.jpg\" alt=\"USB-to-serial programming for the cam\" width=\"1000\" height=\"300\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam-500x150.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam-696x209.jpg 696w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam-50x15.jpg 50w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2023\/03\/Fig.-3-USB-to-serial-programming-for-the-cam-100x30.jpg 100w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption id=\"caption-attachment-114578\" class=\"wp-caption-text\">Fig. 3: USB-to-serial programming for the cam<\/figcaption><\/figure>\n<table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"191\" \/>\n<col width=\"136\" \/><\/colgroup>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" colspan=\"2\" rowspan=\"1\" data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Bill of Material&quot;}\"><strong>Bill of Material<\/strong><\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Components&quot;}\">Components<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Quantity&quot;}\">Quantity<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;ESP32 with camera (MOD1)&quot;}\">ESP32 with camera (MOD1)<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;OLED display, 2.44cm (0.96-inch) (MOD2)&quot;}\">OLED display, 2.44cm (0.96-inch) (MOD2)<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;I2C RTC \u2013 DS3231\/DS1307&quot;}\">I2C RTC \u2013 DS3231\/DS1307<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;USB to serial FTDI chip&quot;}\">USB to serial FTDI chip<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;LM1117 3.3V regulator&quot;}\">LM1117 3.3V regulator<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;PIR sensor&quot;}\">PIR sensor<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Optocoupler&quot;}\">Optocoupler<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Transistor BC547&quot;}\">Transistor BC547<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;10k-ohm resistor and 100\u00b5F capacitor&quot;}\">10k-ohm resistor and 100\u00b5F capacitor<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;2 and 1&quot;}\">2 and 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Software<\/h2>\n<div class=\"mepr_error\"><div class=\"locked-content\">\n<b>EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.<\/b><\/p>\n<p>Oops! This is an EFY++ article, which means it's our Premium Content. You need to be a Registered User of our website to read its complete content.<\/p>\n<p><b>Good News: <\/b>You can register to our website for FREE! <a href=\"https:\/\/www.electronicsforu.com\/plans\/subscription-plans\" target=\"_blank\" rel=\"noopener\">CLICK HERE<\/a> to register now.<\/p>\n<p><b>Already a registered member? <\/b>If YES, then simply login to you account below. (TIP: Use 'forgot password' feature and reset and save your new password in your browser, if you forgot the last one!)\n<\/div>\n<\/div><div>\n<div class=\"mp_wrapper mp_login_form\">\n                  <!-- mp-login-form-start -->     <form name=\"mepr_loginform\" id=\"mepr_loginform\" class=\"mepr-form\" action=\"https:\/\/www.electronicsforu.com\/login\" method=\"post\">\n            <div class=\"mp-form-row mepr_username\">\n        <div class=\"mp-form-label\">\n                              <label for=\"user_login\">Username<\/label>\n        <\/div>\n        <input type=\"text\" name=\"log\" id=\"user_login\" value=\"\" \/>\n      <\/div>\n      <div class=\"mp-form-row mepr_password\">\n        <div class=\"mp-form-label\">\n          <label for=\"user_pass\">Password<\/label>\n          <div class=\"mp-hide-pw\">\n            <input type=\"password\" name=\"pwd\" id=\"user_pass\" value=\"\" \/>\n            <button type=\"button\" class=\"button mp-hide-pw hide-if-no-js\" data-toggle=\"0\" aria-label=\"Show password\">\n              <span class=\"dashicons dashicons-visibility\" aria-hidden=\"true\"><\/span>\n            <\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n            <div>\n        <label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Remember Me<\/label>\n      <\/div>\n      <div class=\"mp-spacer\">&nbsp;<\/div>\n      <div class=\"submit\">\n        <input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary mepr-share-button \" value=\"Log In\" \/>\n        <input type=\"hidden\" name=\"redirect_to\" value=\"\/wp-json\/wp\/v2\/posts\/114555\" \/>\n        <input type=\"hidden\" name=\"mepr_process_login_form\" value=\"true\" \/>\n        <input type=\"hidden\" name=\"mepr_is_login_page\" value=\"false\" \/>\n      <\/div>\n    <\/form>\n    <div class=\"mp-spacer\">&nbsp;<\/div>\n    <div class=\"mepr-login-actions\">\n      <a href=\"https:\/\/www.electronicsforu.com\/login?action=forgot_password\">Forgot Password<\/a>\n    <\/div>\n\n      \n    <!-- mp-login-form-end --> \n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous version of ESP32 cam project published in February issue you could live stream the video and access the video over Wi-FI. Carrying that forward, in this project the ESP32 cam attached with RTC can take pictures based on time and save them on an SD card attached to the board. The design [&hellip;]<\/p>\n","protected":false},"author":116810,"featured_media":114576,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,3713,6189],"tags":[1985,1911,110,83,10280],"class_list":{"0":"post-114555","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-electronics-projects","8":"category-hardware-diy","9":"category-premium","10":"category-esp32-projects","11":"tag-diy-projects","12":"tag-do-it-yourself","13":"tag-electronics-projects","14":"tag-featured","15":"tag-mar-2023"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/114555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/users\/116810"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=114555"}],"version-history":[{"count":1,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/114555\/revisions"}],"predecessor-version":[{"id":144969,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/114555\/revisions\/144969"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/114576"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=114555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=114555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=114555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}