Giter VIP home page Giter VIP logo

ds3231rtc's Introduction

DS3231RTC

Basic sketch for the DS3231 Real Time Clock

This is the version of the Maxim Integrated Extremely Accurate Real Time Clock that uses the I2C communication protocol. The DS3234 uses SPI.

The claimed accuracy is +/- 2 ppm in the 0 to 40 C temperature interval, which is just over one minute per year.

This sketch shows how to read from and write to the device registers, how to set the time, date, and year, how to read time, date, and year, how to read temperature in degrees Centigrade, and how to display all on a Nokia 5110 68 x 84 pixel display. Also shown is the use of the two RTC alarms with either status register polling or hardware interrupt. There is an ATMEL 32K byte EEPROM on the ZS-042 breakout board used here that can be used for data logging and/or to store alarm sound.

Added EEPROM read/write functions so sounds can be stored for later playing upon the hour or when alarms are triggered. Making use of the Arduino tone() function to drive a speaker to play the sounds read from and stored in the EEPROM as sound frequency (0 - 255 Hz, which covers more than one octave) bytes. The 128 pages (each of 32 bytes) capacity of the EEPROM is more than enough memory to store sounds for all occasions needed by even the most elaborate clock.

ds3231rtc's People

Contributors

kriswiner avatar

Watchers

James Cloos avatar minida28 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.