FarkadAdnan / code_Project_83-DS1307

Chapter 3 code_Project_83 The second part 2 of "The Arduino World Book" code_Project_83

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code_Project_83-DS1307

Chapter 3 code_Project_83 The second part 2 of "The Arduino World Book" code_Project_83

  • By:Farkad Adnan فرقد عدنان -
  • E-mail: farkad.hpfa95@gmail.com
  • inst : farkadadnan
  • #farkadadnan , #farkad_adnan , فرقد عدنان#
  • FaceBook: كتاب عالم الاردوينو
  • inst : arduinobook
  1. #كتاب_عالم_الاردوينو
  2. #كتاب_عالم_الآردوينو

Twitter Follow

# General structure At the heart of the module is a low-cost, quite accurate RTC chip from Maxim – DS1307. It manages all timekeeping functions and features a simple two-wire I2C interface which can be easily interfaced with any microcontroller of your choice. ![DS1307-RTC-Module-Pinout](https://user-images.githubusercontent.com/35774039/163474128-c0e4c962-d3fd-4826-a9bc-5b51ed9d868d.png)

library

#include <Wire.h>
#include "RTClib.h"
RTC_DS1307 rtc;

شريحة أو رقاقةDS1307 RTC عن قرب

DS1307-Module-Provision-for-DS18B20 DS1307-Module-24C32-EEPROM-Chip DS1307-Module-Chip-Crystal-Oscillator DS1307-Module-CR2032-Battery-Holder

Installing RTClib library

  • Communicating with a RTC module is a bunch of work. Fortunately, RTClib library was written to hide away all the complexities so that we can issue simple commands to read the RTC data.

  • To install the library navigate to the Sketch > Include Library > Manage Libraries…Wait for Library Manager to download libraries index and update list of installed libraries

Manage-Libraries

  • Filter your search by typing ‘rtclib’. There should be a couple entries. Look for RTClib by Adafruit. Click on that entry, and then select Install. 3

About

Chapter 3 code_Project_83 The second part 2 of "The Arduino World Book" code_Project_83


Languages

Language:C++ 100.0%