Code Monkey home page Code Monkey logo

rtc's Introduction

Rtc

Arduino Real Time Clock library.
An RTC library with deep device support.

Donate

Now supports esp8266.

For quick questions jump on Gitter and ask away.
Gitter

Installing This Library

Clone (Git) this project into Documents/Arduino/libraries/Rtc.
It should now show up in the import list.

Supported Devices

###DS1307 Full support including squarewave output pin and memory access

###DS3231 Full support including squarewave output pin and alarms.

Samples

###DS1307 Simple This demonstrates how to set and get the date and time from the device.

###DS1307 Memory This demonstrates how to write and read data from the extended memory of the device. This memory is retained even after the device has lost power.

###DS3231 Simple This demonstrates how to set and get the date and time from the device.

###DS3231 StoreIt This demonstrates how to turn off the Rtc clock so that the onboard battery will last longer.

###DS3231 Alarms This demonstrates how to set the alarms and check when the alarms are triggered. This includes using the squarewave output to trigger an interrupt.

Connecting the Devices

The RTC devices expose two digital wires labeled SDA and SCL. These need to be connected to the wires exposed by your Arduino board labled the same way. This varies from board to board so you will need to consult the Arduino reference documents for which pins are the SDA and SCL. For ESP8266, these default to SDA = GPIO04 and SCL = GPIO05. The RTC devices also require power. Make sure that VCC is connected to the proper voltage that your device requires. DS1307 requires 5v while the DS3231 can use either 3.3v or 5v. The GND must be connected to the Arduino GND even if you are not powering the RTC from the Arduino voltage pins.

rtc's People

Contributors

makuna avatar ivankravets avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.