{"id":5027,"date":"2026-11-11T08:26:53","date_gmt":"2026-11-11T16:26:53","guid":{"rendered":"https:\/\/www.donluc.com\/?p=5027"},"modified":"2026-11-11T08:26:53","modified_gmt":"2026-11-11T16:26:53","slug":"project-15-environment-rtc-real-time-clock-mk52","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=5027","title":{"rendered":"Project #15: Environment \u2013 RTC (Real-Time Clock) \u2013 Mk52"},"content":{"rendered":"<div style=\"width: 1200px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-5027-1\" width=\"1200\" height=\"675\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #RTC #TextoSpeech #Environment #SD #FireBeetle2ESP32E #ESP32 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04a.jpg\" alt=\"RTC (Real-Time Clock)\" width=\"720\" height=\"677\" class=\"alignnone size-full wp-image-5029\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04a.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04a-300x282.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04b.jpg\" alt=\"RTC (Real-Time Clock)\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-5030\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04b-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04c.jpg\" alt=\"RTC (Real-Time Clock)\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-5031\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/11\/DL2610Mk04c-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>RTC (Real-Time Clock)<\/strong><\/p>\n<p>A Real-time clock (RTC) is a dedicated electronic device or integrated circuit that tracks human-readable time (seconds, minutes, hours, days, months, and years). Crystal Oscillator: It relies on a quartz crystal (typically vibrating at 32.768 kHz) to generate a steady, accurate time pulse. Backup Power: It uses a small coin-cell lithium battery or supercapacitor so it keeps running even when the main system power is turned off or lost. Communication: It connects to microcontrollers or processors via serial interfaces like I2C or SPI. Many modern RTC chips include built-in alarms, watchdog timers, calendars, and temperature compensation to prevent time drift. If you are working on a project, tell me what microcontroller or board you are using (like Arduino or ESP32) so I can recommend an RTC module and wiring setup.<\/p>\n<p><strong>DL2610Mk04<\/strong><\/p>\n<p>1 x DFRobot FireBeetle 2 ESP32-E<br \/>\n1 x Adafruit SSD1306<br \/>\n1 x Gravity: IO Shield for FireBeetle 2<br \/>\n1 x Gravity: I2C HUB<br \/>\n1 x Gravity: I2C SD2405 RTC Module<br \/>\n1 x Fermion: MicroSD Card Module<br \/>\n1 x MicroSD 8 GB<br \/>\n1 x Gravity: LED Switch Green<br \/>\n1 x Gravity: Text to Speech Voice Synthesizer Module<br \/>\n1 x Gravity: Digital Push Button (White)<br \/>\n1 x Gravity: Digital Blue LED Light Module<br \/>\n1 x Lithium Ion Battery &#8211; 1000mAh<br \/>\n1 x USB 3.0 to Type-C Cable<\/p>\n<p><strong>DL2610Mk04p<\/strong><\/p>\n<p><strong>DL2610Mk04p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/****** Don Luc Electronics \u00a9 ******\r\nSoftware Version Information\r\nProject #15: Environment \u2013 RTC (Real-Time Clock) \u2013 Mk52\r\n15-52\r\nDL2610Mk04p.ino\r\nDL2610Mk04\r\n1 x DFRobot FireBeetle 2 ESP32-E\r\n1 x Adafruit SSD1306\r\n1 x Gravity: IO Shield for FireBeetle 2\r\n1 x Gravity: I2C HUB\r\n1 x Gravity: I2C SD2405 RTC Module\r\n1 x Fermion: MicroSD Card Module \r\n1 x MicroSD 8 GB\r\n1 x Gravity: LED Switch Green\r\n1 x Gravity: Text to Speech Voice Synthesizer Module\r\n1 x Gravity: Digital Push Button (White)\r\n1 x Gravity: Digital Blue LED Light Module\r\n1 x Lithium Ion Battery - 1000mAh\r\n1 x USB 3.0 to Type-C Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ Wire\r\n#include &lt;Wire.h&gt;\r\n\/\/ SD Card\r\n\/\/ File System\r\n#include &quot;FS.h&quot;\r\n\/\/ SD Card\r\n#include &quot;SD.h&quot;\r\n\/\/ SPI (Serial Peripheral Interface)\r\n#include &quot;SPI.h&quot;\r\n\/\/ Speech Synthesis\r\n#include &lt;DFRobot_SpeechSynthesis_V2.h&gt;\r\n\/\/ Adafruit SSD1306\r\n#include &lt;Adafruit_SSD1306.h&gt;\r\n\/\/ RTC (Real-Time Clock)\r\n#include &quot;GravityRtc.h&quot;\r\n\r\n\/\/ Adafruit SSD1306\r\n#define SCREEN_WIDTH 128\r\n#define SCREEN_HEIGHT 64\r\n#define OLED_RESET -1\r\nAdafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &amp;Wire, OLED_RESET);\r\n\r\n\/\/ RTC Initialization\r\nGravityRtc rtc;\r\n\/\/ Date and Time\r\nString dateRTC = &quot;&quot;;\r\nString timeRTC = &quot;&quot;;\r\n\r\n\/\/ Speech Synthesis\r\nDFRobot_SpeechSynthesis_I2C ss;\r\n\r\n\/\/ Button\r\n\/\/ The number of the pushbutton pin\r\nconst int iButton = D10;\r\n\/\/ Variables will change:\r\nint iButtonState = 0;\r\n\r\n\/\/ Switch\r\n\/\/ The number of the pushbutton pin\r\nconst int iSwitch = D12;\r\n\/\/ variables will change:\r\nint switchState = 0;\r\nint iState = 0;\r\n\r\n\/\/ SD shield\r\nconst int chipSelect = D6;\r\n\/\/ FullString\r\nString FullString = &quot;&quot;;\r\nlong lineToRead = 0;\r\n\/\/ Random\r\nlong randNumber;\r\nString lineContent = &quot;&quot;;\r\nString zzzzzz = &quot;&quot;;\r\n\r\n\/\/ D11 LED Blue\r\nconst int iLedBlue = D11;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;15-52&quot;;\r\n\r\nvoid loop() {\r\n  \r\n  \/\/ RTC (Real-Time Clock)\r\n   isRTC(); \r\n  \r\n  \/\/ isButton\r\n  isButton();\r\n\r\n  \/\/ isDisplay Button\r\n  isDisplayButton();\r\n\r\n}\r\n<\/pre>\n<p><strong>getButton.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Button\r\n\/\/ isButton\r\nvoid isButton(){\r\n\r\n  iButtonState= digitalRead(iButton);  \/\/ read input value\r\n\r\n  if (iButtonState == HIGH) { \r\n      \r\n    \/\/  Switch\r\n    isSwitch();\r\n\r\n   } else {\r\n\r\n      \/\/ Turn LED Off\r\n      digitalWrite(iLedBlue, LOW);\r\n\r\n   }\r\n\r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Adafruit SSD1306\r\n\/\/ isDisplayUID\r\nvoid isDisplayUID(){\r\n\r\n    \/\/ Intentar ambas direcciones\r\n  if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {\r\n    \/\/Serial.println(&quot;Error con 0x3C, probando 0x3D...&quot;);\r\n    if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3D)) {\r\n      \/\/Serial.println(&quot;Error OLED en ambas direcciones&quot;);\r\n      return;\r\n    }\r\n  }\r\n  \r\n  \/\/ Clear Display\r\n  display.clearDisplay();\r\n  display.setTextSize(1);\r\n  display.setTextColor(SSD1306_WHITE);\r\n  \/\/ Don Luc Electronics\r\n  display.setCursor(0,0);\r\n  display.println(&quot;Don Luc Electronics&quot;);\r\n  \/\/ Motor Drive\r\n  display.setCursor(0,20);\r\n  display.print(&quot;DL2610Mk04&quot;);\r\n \/\/ Version\r\n  display.setCursor(0,20);\r\n  display.print(&quot;Version&quot;);\r\n  display.setCursor(0,40);\r\n  display.print( sver );\r\n  \/\/ Display\r\n  display.display();\r\n\r\n}\r\n\/\/ isDisplay Button\r\nvoid isDisplayButton(){\r\n\r\n  \/\/ Clear Display\r\n  display.clearDisplay();\r\n  display.setTextSize(1);\r\n  display.setTextColor(SSD1306_WHITE);\r\n  \/\/ Don Luc Electronics\r\n  display.setCursor(0,0);\r\n  display.println(&quot;Don Luc Electronics&quot;);\r\n  \/\/ \r\n  display.setCursor(0,20);\r\n  if (iState == 1) {\r\n\r\n    \/\/ English\r\n    display.print(&quot;Book English&quot;);\r\n\r\n  }\r\n  else {\r\n\r\n    \/\/ Spanish\r\n    display.print(&quot;Book Spanish&quot;);\r\n\r\n }  \r\n  \r\n  \/\/ Line Content\r\n  display.setCursor(0,40);\r\n  display.print( lineContent );\r\n  \/\/ Display\r\n  display.display();\r\n\r\n}\r\n<\/pre>\n<p><strong>getRTC.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Real-Time Tlock\r\n\/\/ Date and Time RTC\r\nvoid isRTC () {\r\n\r\n  \/\/ Date and Time\r\n  dateRTC = &quot;&quot;;\r\n  timeRTC = &quot;&quot;;\r\n  rtc.read();\r\n  \r\n  \/\/ Date\r\n  dateRTC = rtc.year; \r\n  dateRTC = dateRTC + &quot;\/&quot;;\r\n  dateRTC = dateRTC + rtc.month;\r\n  dateRTC = dateRTC + &quot;\/&quot;;\r\n  dateRTC = dateRTC + rtc.day;\r\n\r\n  \/\/ Time\r\n  timeRTC = rtc.hour;\r\n  timeRTC = timeRTC + &quot;:&quot;;\r\n  timeRTC = timeRTC + rtc.minute;\r\n  timeRTC = timeRTC + &quot;:&quot;;\r\n  timeRTC = timeRTC + rtc.second;\r\n  \r\n}\r\n<\/pre>\n<p><strong>getSD.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ MicroSD Card\r\n\/\/ MicroSD Setup\r\nvoid isSetupSD() {\r\n\r\n    \/\/ MicroSD Card\r\n    pinMode( chipSelect , OUTPUT );\r\n    \r\n    \/\/ MicroSD Card\r\n    if(!SD.begin()){\r\n        Serial.print(&quot;MicroSD Card No&quot;);;  \r\n        return;\r\n    }\r\n    \r\n    uint8_t cardType = SD.cardType();\r\n\r\n    \/\/ CARD NONE\r\n    if(cardType == CARD_NONE){\r\n        ; \r\n        return;\r\n    }\r\n\r\n    \/\/ SD Card Type\r\n    if(cardType == CARD_MMC){\r\n        ; \r\n    } else if(cardType == CARD_SD){\r\n        ; \r\n    } else if(cardType == CARD_SDHC){\r\n        ; \r\n    } else {\r\n        ; \r\n    } \r\n\r\n    \/\/ Size\r\n    uint64_t cardSize = SD.cardSize() \/ (1024 * 1024);\r\n \r\n}\r\n\/\/ MicroSD Card English\r\nvoid isSDEnglish() {\r\n\r\n  zzzzzz = &quot;&quot;;\r\n\r\n  \/\/DLE|Version|Date|Time|\r\n  zzzzzz = &quot;DLE|&quot; + sver + &quot;|&quot; + String( dateRTC ) + &quot;|&quot; + String( timeRTC ) \r\n  \/\/English|lineContent|\\r\r\n  + &quot;|English|&quot; + lineContent + &quot;|*\\r&quot;;\r\n\r\n  \/\/ msg + 1\r\n  char msg[zzzzzz.length() + 1];\r\n\r\n  zzzzzz.toCharArray(msg, zzzzzz.length() + 1);\r\n\r\n  \/\/ Append File\r\n  appendFile(SD, &quot;\/DLEDATA.txt&quot;, msg );\r\n\r\n}\r\n\/\/ MicroSD Card Spanish\r\nvoid isSDSpanish() {\r\n\r\n  zzzzzz = &quot;&quot;;\r\n\r\n  \/\/DLE|Version|Date|Time|\r\n  zzzzzz = &quot;DLE|&quot; + sver + &quot;|&quot; + String( dateRTC ) + &quot;|&quot; + String( timeRTC ) \r\n  \/\/Spanish|lineContent|\\r\r\n  + &quot;|Spanish|&quot; + lineContent + &quot;|*\\r&quot;;\r\n  \r\n  \/\/ msg + 1\r\n  char msg[zzzzzz.length() + 1];\r\n\r\n  zzzzzz.toCharArray(msg, zzzzzz.length() + 1);\r\n\r\n  \/\/ Append File\r\n  appendFile(SD, &quot;\/DLEDATA.txt&quot;, msg );\r\n\r\n}\r\n\/\/ Read a specific line (1-indexed)\r\nString readSpecificLine(fs::FS &amp;fs, const char * path, int targetLine) {\r\n  File file = fs.open(path);\r\n  if(!file || file.isDirectory()){\r\n    return &quot;Error: Failed to open file&quot;;\r\n  }\r\n\r\n  int currentLine = 1;\r\n  String lineContent = &quot;&quot;;\r\n\r\n  while(file.available()){\r\n    char ch = file.read();\r\n    \r\n    if (currentLine == targetLine) {\r\n      if (ch == &#039;\\n&#039; || ch == &#039;\\r&#039;) {\r\n        file.close();\r\n        return lineContent; \/\/ Found line, return it\r\n      }\r\n      lineContent += ch;\r\n    }\r\n\r\n    if (ch == &#039;\\n&#039;) {\r\n      currentLine++;\r\n    }\r\n\r\n    if (currentLine &gt; targetLine) {\r\n      break; \r\n    }\r\n  }\r\n\r\n  file.close();\r\n  \r\n  if (currentLine == targetLine &amp;&amp; lineContent.length() &gt; 0) {\r\n    return lineContent; \/\/ Return last line if it lacks a trailing newline\r\n  }\r\n  \r\n  return &quot;Error: Line not found&quot;;\r\n}\r\n\/\/ List Dir\r\nvoid listDir(fs::FS &amp;fs, const char * dirname, uint8_t levels){\r\n    \r\n    \/\/ List Dir\r\n    dirname;\r\n    \r\n    File root = fs.open(dirname);\r\n    \r\n    if(!root){\r\n        return;\r\n    }\r\n    \r\n    if(!root.isDirectory()){\r\n        return;\r\n    }\r\n\r\n    File file = root.openNextFile();\r\n    \r\n    while(file){\r\n        if(file.isDirectory()){\r\n            file.name();\r\n            if(levels){\r\n                listDir(fs, file.name(), levels -1);\r\n            }\r\n        } else {\r\n            file.name();\r\n            file.size();\r\n        }\r\n        file = root.openNextFile();\r\n    }\r\n    \r\n}\r\n\/\/ Write File\r\nvoid writeFile(fs::FS &amp;fs, const char * path, const char * message){\r\n    \r\n    \/\/ Write File\r\n    path;\r\n    \r\n    File file = fs.open(path, FILE_WRITE);\r\n    \r\n    if(!file){\r\n        return;\r\n    }\r\n    \r\n    if(file.print(message)){\r\n        ;  \r\n    } else {\r\n        ;  \r\n    }\r\n    \r\n    file.close();\r\n    \r\n}\r\n\/\/ Append File\r\nvoid appendFile(fs::FS &amp;fs, const char * path, const char * message){\r\n\r\n    \/\/ Append File\r\n    path;\r\n    \r\n    File file = fs.open(path, FILE_APPEND);\r\n    \r\n    if(!file){\r\n        return;\r\n    }\r\n    \r\n    if(file.print(message)){\r\n        ;  \r\n    } else {\r\n        ;  \r\n    }\r\n    \r\n    file.close();\r\n\r\n}\r\n<\/pre>\n<p><strong>getSpeechSynthesizer.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Speech Synthesis\r\n\/\/ isSetupSS\r\nvoid isSetupSS(){\r\n\r\n  \/\/ Begin\r\n  ss.begin();\r\n  \/\/ Set voice volume to 9\r\n  ss.setVolume(9);\r\n  \/\/ Set playback speed to 9\r\n  ss.setSpeed(7);\r\n  \/\/ Set tone to 5\r\n  ss.setTone(5);\r\n  \/\/ For English, speak word \r\n  ss.setEnglishPron(ss.eWord);\r\n\r\n}\r\n<\/pre>\n<p><strong>getSwitch.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Switch\r\n\/\/ isSwitch\r\nvoid isSwitch(){\r\n\r\n  \/\/ Turn LED off:\r\n  digitalWrite(iLedBlue, LOW);\r\n\r\n  randNumber = random(1, 6);\r\n\r\n  if ( randNumber == 4 ) {\r\n\r\n     \/\/ Switch\r\n     switchState = digitalRead(iSwitch);\r\n\r\n     if (switchState == HIGH) {\r\n    \r\n       \/\/ Turn LED On:\r\n       digitalWrite(iLedBlue, HIGH);\r\n\r\n       iState = 1;\r\n       \r\n       \/\/ English\r\n       \/\/ Example: Read line from &quot;english\/engliso.txt&quot;\r\n       lineToRead = random(1, 2048);\r\n\r\n       lineContent = readSpecificLine(SD, &quot;\/english\/engliso.txt&quot;, lineToRead);\r\n            \r\n       if (lineContent != &quot;&quot;) {\r\n\r\n         Serial.print(&quot;Line &quot;);\r\n         Serial.print(lineToRead);\r\n         Serial.print(&quot;: &quot;);\r\n         Serial.println(lineContent);\r\n         \/\/ Speak\r\n         ss.speak( lineContent );\r\n         \/\/ MicroSD Card English\r\n         isSDEnglish();\r\n\r\n      } else {\r\n\r\n         Serial.println(&quot;Line not found or file error.&quot;);\r\n\r\n      }\r\n\r\n\r\n    } else {\r\n\r\n     \/\/ Turn LED On:\r\n     digitalWrite(iLedBlue, HIGH);\r\n\r\n     iState = 0;\r\n      \r\n      \/\/ Spanish\r\n      \/\/ Example: Read line from &quot;spanish\/spanisho.txt&quot;\r\n      lineToRead = random(1, 1938);\r\n\r\n      lineContent = readSpecificLine(SD, &quot;\/spanish\/spanisho.txt&quot;, lineToRead);\r\n\r\n      if (lineContent != &quot;&quot;) {\r\n\r\n         Serial.print(&quot;Line &quot;);\r\n         Serial.print(lineToRead);\r\n         Serial.print(&quot;: &quot;);\r\n         Serial.println(lineContent);\r\n         \/\/ Speak\r\n         ss.speak( lineContent );\r\n         \/\/ MicroSD Card Spanish\r\n         isSDSpanish();\r\n\r\n      } else {\r\n\r\n         Serial.println(&quot;Line not found or file error.&quot;);\r\n\r\n      }\r\n\r\n    }\r\n\r\n  }\r\n     \r\n}  \r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup()\r\n{\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n  \r\n  \/\/ Serial\r\n  Serial.begin(9600);\r\n  \r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ LED Blue\r\n  pinMode(iLedBlue, OUTPUT);\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ iButton\r\n  pinMode(iButton, INPUT);\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  delay(100);\r\n  \r\n  \/\/ iSwitch\r\n  pinMode(iSwitch, INPUT);\r\n\r\n  \/\/ Wire\r\n  Wire.begin();\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ Setup RTC\r\n  rtc.setup();\r\n\r\n  \/\/Set the RTC time automatically: Calibrate RTC time by your computer time\r\n  rtc.adjustRtc(F(__DATE__), F(__TIME__));\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/MicroSD Card\r\n  isSetupSD();\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ isSetupSS\r\n  isSetupSS();\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ Random Seed\r\n  randomSeed(analogRead(A3));\r\n\r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ Adafruit SSD1306 - UID\r\n  \/\/ Don Luc Electronics\r\n  \/\/ Versioc\r\n  isDisplayUID();\r\n  \r\n  \/\/ Delay\r\n  delay( 5000 );\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Consultant, R&#038;D, Electronics, IoT, Teacher and Instructor<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Automation<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank , Underwater and UAV Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial,  Marine and UAV<\/li>\n<li>Machine Learning<\/li>\n<li>Artificial Intelligence (AI)<\/li>\n<li>RTOS<\/li>\n<li>Sensors, eHealth Sensors, Biosensor, and Biometric<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Consulting<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2026<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/LucPaquinCVEng2026Mk01.pdf<br \/>\nhttps:\/\/www.donluc.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.jlpconsultants.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/@thesass2063<br \/>\n<strong>DFRobot:<\/strong> https:\/\/learn.dfrobot.com\/user-10186.html<br \/>\n<strong>TikTok:<\/strong> https:\/\/www.tiktok.com\/@luc.paquin8<br \/>\n<strong>Hackster:<\/strong> https:\/\/www.hackster.io\/luc-paquin<br \/>\n<strong>LinkedIn:<\/strong> https:\/\/www.linkedin.com\/in\/jlucpaquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #RTC #TextoSpeech #Environment #SD #FireBeetle2ESP32E #ESP32 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; RTC (Real-Time Clock) A Real-time clock (RTC) is a dedicated electronic device or integrated circuit that tracks human-readable time (seconds, minutes, hours, days, months, and years). Crystal Oscillator: It relies on a quartz crystal &#8230; <a title=\"Project #15: Environment \u2013 RTC (Real-Time Clock) \u2013 Mk52\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=5027\" aria-label=\"Read more about Project #15: Environment \u2013 RTC (Real-Time Clock) \u2013 Mk52\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106,50,49,317,38,80,59,115,5,287,58,82,10],"tags":[6,92,102,4,320,87,19,107,83,85,24,9,84,27,442,248,33,34,108],"class_list":["post-5027","post","type-post","status-publish","format-standard","hentry","category-environment","category-arduino","category-consultant","category-dfrobot","category-digitalelectronics","category-esp32","category-fritzing","category-e-mentor","category-microcontrollers","category-program","category-arduino-programming","category-program-esp32","category-projects","tag-arduino","tag-battery","tag-components","tag-consultant","tag-dfrobot","tag-display","tag-electronics","tag-environment","tag-esp32","tag-fritzing","tag-microcontroller","tag-programming","tag-programming-esp32","tag-projects-2","tag-rtc-real-time-clock","tag-sensors","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/5027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5027"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/5027\/revisions"}],"predecessor-version":[{"id":5032,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/5027\/revisions\/5032"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}