{"id":44001,"date":"2017-10-19T14:09:13","date_gmt":"2017-10-19T14:09:13","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=44001"},"modified":"2019-04-02T10:23:26","modified_gmt":"2019-04-02T10:23:26","slug":"how-to-do-daily-tasks-with-arduino","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/how-to-do-daily-tasks-with-arduino\/","title":{"rendered":"How To Do Daily Tasks with Arduino"},"content":{"rendered":"<p>In this tutorial we&#8217;re going to show you how to perform daily tasks with the Arduino. We&#8217;re going to turn an LED on and off at a specific time of the day, everyday. You can then, easily modify the example provided to perform any other task.<!--more--><\/p>\n<p><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-44015\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?resize=700%2C394&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"700\" height=\"394\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2>Project overview<\/h2>\n<ul>\n<li>This project uses the <a href=\"https:\/\/makeradvisor.com\/tools\/real-time-clock-module-ds1307\/\" target=\"_blank\" rel=\"noopener noreferrer\">DS1307 Real Time Clock module<\/a> to keep track of the time. For an introduction to the RTC module, read: <a href=\"https:\/\/randomnerdtutorials.com\/guide-for-real-time-clock-rtc-module-with-arduino-ds1307-and-ds3231\/\" target=\"_blank\" rel=\"noopener noreferrer\">Guide for Real Time Clock Module with Arduino (DS1307 and DS3231)<\/a>.;<\/li>\n<li>The example provided will turn on an LED everyday at 7:00 PM; and will turn it off everyday at 9:00 AM;<\/li>\n<li>You can easily modify the code to trigger your own events, and the time they occur.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter wp-image-44018 size-full\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/project-overview-arduino-daily-task.jpg?resize=700%2C316&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"700\" height=\"316\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/project-overview-arduino-daily-task.jpg?w=700&amp;quality=100&amp;strip=all&amp;ssl=1 700w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/project-overview-arduino-daily-task.jpg?resize=300%2C135&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2>Parts required<\/h2>\n<p>For this example you need the following parts (click the links below to find the best price at <a href=\"https:\/\/makeradvisor.com\/tools\/\" target=\"_blank\" rel=\"noopener noreferrer\">Maker Advisor<\/a>):<\/p>\n<ul>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/compatible-arduino-uno-r3-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino UNO<\/a>\u00a0&#8211; read <a href=\"https:\/\/makeradvisor.com\/best-arduino-starter-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Best Arduino Starter Kits<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/real-time-clock-module-ds1307\/\" target=\"_blank\" rel=\"noopener noreferrer\">DS1307 RTC module<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/3mm-5mm-leds-kit-storage-box\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x LED<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x 220Ohm resistor<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\" rel=\"noopener noreferrer\">Breadboard<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\" rel=\"noopener noreferrer\">Jumper wires<\/a><\/li>\n<\/ul>\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n<h2>Schematic<\/h2>\n<p>Wire the DS1307 RTC module to the Arduino and the LED, as shown in the schematic below.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter wp-image-44005\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?resize=803%2C624&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"803\" height=\"624\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?w=1371&amp;quality=100&amp;strip=all&amp;ssl=1 1371w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?resize=300%2C233&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?resize=768%2C597&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/dailytasks_schamtic_bb.png?resize=1024%2C795&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/a>You can also refer to the following table to wire the DS1307 RTC module to the Arduino.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"283\"><strong>DS1307 RTC Module Pin<\/strong><\/td>\n<td width=\"283\"><strong>Wiring to Arduino Uno<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"283\">SCL<\/td>\n<td width=\"283\">A5<\/td>\n<\/tr>\n<tr>\n<td width=\"283\">SDA<\/td>\n<td width=\"283\">A4<\/td>\n<\/tr>\n<tr>\n<td width=\"283\">VCC<\/td>\n<td width=\"283\">5V<\/td>\n<\/tr>\n<tr>\n<td width=\"283\">GND<\/td>\n<td width=\"283\">GND<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Installing libraries<\/h2>\n<p>For this example you need to install the following libraries: <strong>Time<\/strong>, <strong>TimeAlarms<\/strong>, and <strong>DS1307RTC\u00a0<\/strong>created by Michael Margolis and maintained by Paul Stoffregen:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44024\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/install_libraries.jpg?resize=739%2C313&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"739\" height=\"313\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/install_libraries.jpg?w=739&amp;quality=100&amp;strip=all&amp;ssl=1 739w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/install_libraries.jpg?resize=300%2C127&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/p>\n<p>To install these libraries, in the Arduino IDE go to <strong>Sketch<\/strong> &gt; <strong>Include Library<\/strong> &gt; <strong>Manage Libraries<\/strong>. Then, enter the libraries&#8217; name to install them.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44023\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/manage-libraries-arduino-IDE.png?resize=490%2C240&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"490\" height=\"240\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/manage-libraries-arduino-IDE.png?w=490&amp;quality=100&amp;strip=all&amp;ssl=1 490w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/manage-libraries-arduino-IDE.png?resize=300%2C147&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/p>\n<h2>Set DS1307 RTC module time<\/h2>\n<p>To set the DS1307 RTC module time, you need to upload the next sketch to your Arduino board and run it once:<\/p>\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\n\/*\nSetTime.ino sketch to set the time of DS1307 RTC - created by Paul Stoffregen\ngithub.com\/PaulStoffregen\/DS1307RTC\/blob\/master\/examples\/SetTime\/SetTime.ino\n *\/\n \n#include &lt;Wire.h&gt;\n#include &lt;TimeLib.h&gt;\n#include &lt;DS1307RTC.h&gt;\n\nconst char *monthName[12] = {\n  &quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;,\n  &quot;Jul&quot;, &quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;\n};\n\ntmElements_t tm;\n\nvoid setup() {\n  bool parse=false;\n  bool config=false;\n\n  \/\/ get the date and time the compiler was run\n  if (getDate(__DATE__) &amp;&amp; getTime(__TIME__)) {\n    parse = true;\n    \/\/ and configure the RTC with this info\n    if (RTC.write(tm)) {\n      config = true;\n    }\n  }\n\n  Serial.begin(9600);\n  while (!Serial) ; \/\/ wait for Arduino Serial Monitor\n  delay(200);\n  if (parse &amp;&amp; config) {\n    Serial.print(&quot;DS1307 configured Time=&quot;);\n    Serial.print(__TIME__);\n    Serial.print(&quot;, Date=&quot;);\n    Serial.println(__DATE__);\n  } else if (parse) {\n    Serial.println(&quot;DS1307 Communication Error :-{&quot;);\n    Serial.println(&quot;Please check your circuitry&quot;);\n  } else {\n    Serial.print(&quot;Could not parse info from the compiler, Time=\\&quot;&quot;);\n    Serial.print(__TIME__);\n    Serial.print(&quot;\\&quot;, Date=\\&quot;&quot;);\n    Serial.print(__DATE__);\n    Serial.println(&quot;\\&quot;&quot;);\n  }\n}\n\nvoid loop() {\n}\n\nbool getTime(const char *str)\n{\n  int Hour, Min, Sec;\n\n  if (sscanf(str, &quot;%d:%d:%d&quot;, &amp;Hour, &amp;Min, &amp;Sec) != 3) return false;\n  tm.Hour = Hour;\n  tm.Minute = Min;\n  tm.Second = Sec;\n  return true;\n}\n\nbool getDate(const char *str)\n{\n  char Month[12];\n  int Day, Year;\n  uint8_t monthIndex;\n\n  if (sscanf(str, &quot;%s %d %d&quot;, Month, &amp;Day, &amp;Year) != 3) return false;\n  for (monthIndex = 0; monthIndex &lt; 12; monthIndex++) {\n    if (strcmp(Month, monthName[monthIndex]) == 0) break;\n  }\n  if (monthIndex &gt;= 12) return false;\n  tm.Day = Day;\n  tm.Month = monthIndex + 1;\n  tm.Year = CalendarYrToTm(Year);\n  return true;\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/Arduino_Daily_Task_Set_RTC.ino\" target=\"_blank\">View raw code<\/a><\/p>\n<p>This is what you will see in your Arduino IDE serial monitor:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44028\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/settime.jpg?resize=588%2C349&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"588\" height=\"349\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/settime.jpg?w=588&amp;quality=100&amp;strip=all&amp;ssl=1 588w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/settime.jpg?resize=300%2C178&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/p>\n<p>Once the time and date is properly set, you can continue this project and upload the final sketch.<\/p>\n<h2>Code<\/h2>\n<p>The code provided turns off the LED every morning at 9:00 AM, and turns it on every evening at 7:00 PM. Copy the following code to the Arduino IDE and upload it to your Arduino board.<\/p>\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/*\n *\n * Complete project details at http:\/\/randomnerdtutorials.com    \n * Based on TimeAlarmExample from TimeAlarms library created by Michael Margolis\n *\n *\/\n\n#include &lt;TimeLib.h&gt;\n#include &lt;TimeAlarms.h&gt;\n#include &lt;Wire.h&gt;\n#include &lt;DS1307RTC.h&gt;  \/\/ a basic DS1307 library that returns time as a time_t\n\nconst int led = 7; \n\nvoid setup() {\n  \/\/ prepare pin as output\n  pinMode(led, OUTPUT);\n  digitalWrite(led, LOW);\n  \n  Serial.begin(9600);\n  \/\/ wait for Arduino Serial Monitor\n  while (!Serial) ; \n  \n  \/\/ get and set the time from the RTC\n  setSyncProvider(RTC.get);   \n  if (timeStatus() != timeSet) \n     Serial.println(&quot;Unable to sync with the RTC&quot;);\n  else\n     Serial.println(&quot;RTC has set the system time&quot;);     \n  \n  \/\/ to test your project, you can set the time manually \n  \/\/setTime(8,29,0,1,1,11); \/\/ set time to Saturday 8:29:00am Jan 1 2011\n\n  \/\/ create the alarms, to trigger functions at specific times\n  Alarm.alarmRepeat(9,0,0,MorningAlarm);  \/\/ 9:00am every day\n  Alarm.alarmRepeat(19,0,0,EveningAlarm);  \/\/ 19:00 -&gt; 7:00pm every day\n}\n\nvoid loop() {\n  digitalClockDisplay();\n  \/\/ wait one second between each clock display in serial monitor\n  Alarm.delay(1000); \n}\n\n\/\/ functions to be called when an alarm triggers\nvoid MorningAlarm() {\n  \/\/ write here the task to perform every morning\n  Serial.println(&quot;Tturn light off&quot;);\n  digitalWrite(led, LOW);\n}\nvoid EveningAlarm() {\n  \/\/ write here the task to perform every evening\n  Serial.println(&quot;Turn light on&quot;);\n  digitalWrite(led, HIGH);\n}\n\nvoid digitalClockDisplay() {\n  \/\/ digital clock display of the time\n  Serial.print(hour());\n  printDigits(minute());\n  printDigits(second());\n  Serial.println();\n}\nvoid printDigits(int digits) {\n  Serial.print(&quot;:&quot;);\n  if (digits &lt; 10)\n    Serial.print('0');\n  Serial.print(digits);\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/Arduino_Daily_Task.ino\" target=\"_blank\">View raw code<\/a><\/p>\n<p>This code is simple to understand and can be easily modified. Continue reading this page to learn how the code works.<\/p>\n<h3>Importing libraries<\/h3>\n<p>First, you import the needed libraries to create time alarms and to interact with the RTC module:<\/p>\n<pre>#include <strong>&lt;TimeLib.h&gt;<\/strong>\r\n#include <strong>&lt;TimeAlarms.h&gt;<\/strong>\r\n#include <strong>&lt;Wire.h&gt;<\/strong>\r\n#include &lt;<strong>DS1307RTC.h&gt;<\/strong><\/pre>\n<h3>Getting the time<\/h3>\n<p>In the <strong>setup()<\/strong>, you get the time for the RTC with the following line:<\/p>\n<pre><strong>setSyncProvider(RTC.get)<\/strong>;<\/pre>\n<p>You also display a message on the serial monitor, so that you know whether the time has successfully synced:<\/p>\n<pre>if (timeStatus() != timeSet) \r\n  Serial.println(\"<strong>Unable to sync with the RTC<\/strong>\");\r\nelse\r\n Serial.println(\"<strong>RTC has set the system time<\/strong>\");<\/pre>\n<p>You can set the time manually &#8211; simply uncomment the next line. This is specially useful to test your sketches, because you can easily modify the time and test if the alarms are being triggered.<\/p>\n<pre><strong>\/\/setTime(8,29,0,1,1,11);<\/strong> \/\/ set time to Saturday 8:29:00am Jan 1 2011<\/pre>\n<h3>Setting Alarms<\/h3>\n<p>The following line triggers the <strong>MorningAlarm<\/strong>\u00a0function at 9:00 AM everyday. The <strong>MorningAlarm<\/strong> is defined after the loop().<\/p>\n<pre>Alarm.alarmRepeat(<strong>9,0,0, MorningAlarm<\/strong>); \/\/ 9:00am every day<\/pre>\n<p>To change the time, you just have to change the numbers <strong>9,0,0<\/strong>, with your desired time. The first number is the hour, the second number is for the minutes, and the third for seconds.<\/p>\n<p>The\u00a0<strong>EveningAlarm<\/strong>\u00a0function is triggered at 7:00 PM everyday.<\/p>\n<pre> Alarm.alarmRepeat(<strong>19,0,0, EveningAlarm<\/strong>); <span class=\"pl-c\">\/\/<\/span> 19:00 -&gt; 7:00pm every day<\/pre>\n<h3>loop()<\/h3>\n<p>In the <strong>loop()<\/strong> you display the time on the serial monitor every second by calling the <strong>digitalClockDisplay()<\/strong> function, defined later in the code.<\/p>\n<pre>void loop() {\r\n<strong>\u00a0 digitalClockDisplay();<\/strong>\r\n\u00a0 Alarm.delay(1000); \/\/ wait one second between clock display\r\n}<\/pre>\n<h3>Defining the tasks<\/h3>\n<p>The <strong>MorningAlarm()<\/strong> and <strong>EveningAlarm()<\/strong> functions will be called at the time you&#8217;ve defined at the <strong>setup()<\/strong>.<\/p>\n<p>To edit your tasks, you just have to write your tasks inside the <strong>MorningAlarm()<\/strong> and <strong>EveningAlarm()<\/strong> functions.<\/p>\n<pre>void <strong>MorningAlarm<\/strong>() {\r\n\u00a0 \/\/ write here the task to perform every morning\r\n\u00a0 Serial.println(\"Alarm: - turn lights off\");\r\n<strong>\u00a0 digitalWrite(led, LOW);\r\n<\/strong>}<\/pre>\n<pre>void <strong>EveningAlarm<\/strong>() {\r\n\u00a0 \/\/ write here the task to perform every evening\r\n\u00a0 Serial.println(\"Alarm: - turn lights on\");\r\n<strong>\u00a0 digitalWrite(led, HIGH);\r\n<\/strong>}<\/pre>\n<p>Here we&#8217;re just\u00a0 printing a message on the serial monitor and turning an LED on and off.<\/p>\n<p>The idea is that you use this example to make your Arduino perform a useful task everyday at the same time.<\/p>\n<h2>Wrapping up<\/h2>\n<p>In this tutorial we&#8217;ve shown you how you can perform daily tasks with the Arduino. The example provided is simple so that you can easily adapt it to your projects. Here&#8217;s some ideas of tasks you can automate using this technique:<\/p>\n<ul>\n<li>Turn on\/off lights at a specific time<\/li>\n<li>Close your window blinds<\/li>\n<li>Feed your pets<\/li>\n<\/ul>\n<p>Do you intend to use the Arduino daily task in one of your projects? Let us know by posting a comment down below.<\/p>\n<p>If you like Arduino, you may like the following blog posts:<\/p>\n<ul>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/guide-to-1-8-tft-display-with-arduino\/\" target=\"_blank\" rel=\"noopener noreferrer\">Guide to 1.8 TFT Display with Arduino<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/sim900-gsm-gprs-shield-arduino\/\" target=\"_blank\" rel=\"noopener noreferrer\">Guide to SIM900 GSM GPRS Shield with Arduino<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/guide-to-sd-card-module-with-arduino\/\" target=\"_blank\" rel=\"noopener noreferrer\">Guide to SD Card Module with Arduino<\/a><\/li>\n<li><strong><a href=\"https:\/\/randomnerdtutorials.com\/arduino-step-by-step-projects\/\">Arduino Step-by-step Projects course<\/a><\/strong><\/li>\n<\/ul>\n<p>We hope you&#8217;ve found this post useful. Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we&#8217;re going to show you how to perform daily tasks with the Arduino. We&#8217;re going to turn an LED on and off at a specific time of &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Do Daily Tasks with Arduino\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/how-to-do-daily-tasks-with-arduino\/#more-44001\" aria-label=\"Read more about How To Do Daily Tasks with Arduino\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":44015,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[303,267,2,230,264,10],"tags":[],"class_list":["post-44001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-arduino","category-arduino-project","category-arduino","category-guide","category-project","category-a-tutorials"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/Arduino-daily-task.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/44001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=44001"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/44001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/44015"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=44001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=44001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=44001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}