Do It Yourself : Real Time Clock DS1307 connected on Arduino UNO | Step-by-step process | in Arduino IDE Dipslay
utopian-io·@leryam12·
0.000 HBDDo It Yourself : Real Time Clock DS1307 connected on Arduino UNO | Step-by-step process | in Arduino IDE Dipslay
<center>Bonjour Steemians! Will give another shot on Do-It-Yourself methods. Steem On!</center> >> Time really matters! It is very essential to give it a shot on how we can display time on the real/standard time with the utilization of current's technology. With this tutorial, I will give you a fresh start on a component which is the RTC (Real Time Clock) DS1307 and how can it be connected to an Arduino UNO. So sit back and relax. Let us bring it on! #### What is Real Time Clock (RTC) DS1307? The **Real Time Clock (RTC)** is an important part of technology where you are keep on track with the current time (month, year or hour). It keeps running on a battery and keeps time for you notwithstanding when there is a power blackout. Utilizing a RTC, you can monitor long courses of events, regardless of whether you reinvent your microcontroller or detach it from USB or a power plug. <center> </center> <center>[photocredits](https://www.google.com.ph/search?q=RTC+DS1307&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiUwdqylMvYAhVHgLwKHSaPBwkQ_AUICigB&biw=1242&bih=579)</center> In addition, the DS1307 which was referred on the chip is the Integrated Circuit (IC) present on the chip. Where it acts as what was described. We can also other IC which collaborates with the same function as DS1307. ###### -Why use Real Time Clock in connecting to Arduino? As we define the Real Time Clock and even on the name it suggests, it can be deciphered that it is useful when we need a real time display. The Arduino itself can display its time by millis() yet when we stop utilizing the Arduino, then the time will reset and back to zero. Hence, if you wanted to have a real time display then it will suit your standards. Moreover, on this tutorial, I will give a step by step process on the connections on the two boards with the program itself. #### Materials Needed:: - Real Time Clock (RTC) DS1307 - Arduino UNO - Breadboard (just optional - in case you are not yet confident on the direct connection then use a board for a sure support) - coin cell / CR1120 (3V battery) - laptop/computer with Arduino IDE #### Arduino UNO and RTC DS1307 pin configurations <center>**ARDUINO UNO**</center> <center></center> <center>[photocredits](https://www.google.com.ph/search?q=Arduino+UNO+pinout+configuration&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiu9fSLncvYAhVMS7wKHU-wATUQ_AUICigB&biw=1242&bih=579#imgrc=dy_nQy16--RH8M:)</center> On this board, we will be using the highlighted area where: - **_GND_** and **_VCC_** for the ground connection (completion of a closed circuit) and for power supply, respectively. - **_A4_** and **_A5_** for the connection to the RTC DS3107 ###### Important points : Of course connect the Arduino UNO on the 5V input to drive the board. I only present the pins which is physically connected on the RTC DS1307. <center>**REAL TIME CLOCK (RTC) DS1307**</center> <center></center> <center>[photocredits](https://www.google.com.ph/search?biw=1242&bih=579&tbm=isch&sa=1&ei=j-JUWqL1Isuh8QXZzpPAAw&btnG=Search&q=RTC+DS1307+pin+outs+configuration#imgrc=GfEJo4mCrPM0IM:)</center> On this chip/board, we will have the following pins: - **_GND_** and **_VCC_** for the ground connection (completion of a closed circuit) and for power supply, respectively. - **_SDA_** and **_SCL_** for the connection to the Aduino UNO Board. ### <center>Real Time Clock(RTC) DS1307 :: Step-by-Step process on connecting to the Arduino UNO Board</center> ###### Step 1 :: the PHYSICAL CONNECTION between the RTC DS1307 and Arduino UNO <center> </center> <center>[photocredits](https://www.google.com.ph/search?biw=1242&bih=535&tbm=isch&sa=1&ei=6e1UWv3SCMWo8QWCpZXYCg&q=RTC+DS1307+and+arduino+uno+connections&oq=RTC+DS1307+and+arduino+uno+connections&gs_l=psy-ab.3...11649.16043.0.16221.27.18.0.0.0.0.457.2528.2-6j0j2.8.0....0...1c.1.64.psy-ab..19.0.0....0.aN3HT6Hc4OM#imgrc=rSoMfMPju8HYdM:)</center> The connections must be followed : - VCC and GND pin of Arduino UNO must be connected to the VCC and GND pin of the RTC DS1307 , respectively. - SCL (Serial Clock) must be connected to the A5 pin on arduino. - SDA (Serial Data) must be connected to the A4 pin on arduino uno. ###### Step 2 :: the SOFTWARE CONNECTION between the RTC DS1307 and Arduino UNO - Go your Arduino IDE and change your board to Arduino UNO by the following steps : **Tools>Board>Arduino/Genuino UNO** - After which, download the library we will be using later on. Go to **Sketch > Include Library > Manage Library** <center> </center> Check your library after to see if it was really successfully installed <center> </center> - Copy the code shown on the image below. (You may neglect the comments) <center> </center> - The result on your com port window must be this. <center> </center> ### Sample Circuit :: <center> </center> <center>[photocredits](https://www.google.com.ph/search?biw=1242&bih=579&tbm=isch&sa=1&ei=j-JUWqL1Isuh8QXZzpPAAw&btnG=Search&q=RTC+DS1307+pin+outs+configuration#imgrc=UEKLTkZ2MK2s1M:)</center> *Further notes :: You may encounter along the way different packaging with the RTC DS1307 (module), well, do not panic for its the packaging only differs. The pins that we used in this tutorial is common with all RCT DS1307, hence, just follow the connection given.* ----------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------- <center> This is an Engineering DIY post. You may comment down and ask for more DIY topics, be more than happy to post it for you :D For queries/clarifications, you may DM me on my discord or on the steemit.chat @leryam12. ### ENJOY AND HAVE A GREAT LIFE AHEAD Bidding a goodbye, See you then :) </center> # <center> UPVOTE, RESTEEM AND FOLLOW </center> <center>@leryam12</center> <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@leryam12/do-it-yourself-real-time-clock-ds1307-connected-on-arduino-uno-or-step-by-step-process-or-in-arduino-ide-dipslay">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
👍 jskronos, bobdos, steemitstats, japh, dwaeji-aizelle, maedian, leryam12, neliobatis, oneday1, rye05, ted7, themanualbot, rejzons, mahalo, jcpuzs1, aleevillafranca, utopian-io, banjo, drotto, bayanihan, imkareencajes, surpassinggoogle, arcange, raphaelle, juvyjabian, marlon82, dianargenti, melvinlumacad, bien, southparkqueen, steemgigs, kingyus, plojslydia, ranielbrianulan, yanga, bollutech, scilla-eu, coolguy123, theheralds, zouxx, mcyusuf, steemph.cebu,