Giter Club home page Giter Club logo

rtc_set's Introduction

rtc_set

Motivation

Motivation to write this program is that setting exact time to RTC clock is nearly impossible due to resets when serial connection is initiated.

UTC time is used because few of my Arduinos are going to serve as data logger and I don't want to care about daylight saving time.

It clears RTC alarms and resets interrupt as well.

Anyways, don't expect that 1$ RTC from China are real DS323X, at least they are far from this datasheet specifications:

  • Accuracy ±2ppm from 0°C to +40°C
  • Accuracy ±3.5ppm from -40°C to +85°C

Installation / Dependencies

Program needs Python with PySerial library installed. Installing PySerial is easy.

c:
cd \python34
scripts\pip.exe install pyserial

Usage

  • Open rtc_set.ino in Arduino IDE and upload it
  • Close serial monitor in Arduino IDE
  • Change serial port in rtc_set.py if needed
  • Run the script

Screenshots

Running Python script:
Screenshot 1

Serial console, it's there for testing and verification:
Screenshot 2

rtc_set's People

Contributors

pavel-perina avatar

Watchers

 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.