GithubHelp home page GithubHelp logo

rodan / ds3231 Goto Github PK

View Code? Open in Web Editor NEW
136.0 136.0 93.0 35 KB

arduino library for DS3231 RTC

Home Page: http://www.maxim-ic.com/datasheet/index.mvp/id/4627

C 23.35% C++ 76.65%
arduino-library

ds3231's People

Contributors

helmut64 avatar rodan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ds3231's Issues

Ds3231 Code wont work

The code that is provided will not allow me to upload it to my board and it keeps telling me that there is an error compiling at first I thought it was my software but then I did a different code and it worked help me please

How to check that DS3132 is present

Hi,

Is there a way to check that the DS3231 is answering ?
I would like to make an if statement that stops the sketch if the a DS3231 boar dis not answering.

Thanks,

displaying dayOfWeek

Hi im trying to figure out how to print dayOfWeek on LCD

`//DHT11 Sensor:
#include "DHT.h"
#include <DS3231.h>
#define DHTPIN 5 // what digital pin we're connected to
#define DHTTYPE DHT11 // DHT 11

DHT dht(DHTPIN, DHTTYPE);
DS3231 clock;
RTCDateTime dt;

//I2C LCD:
#include <Wire.h> // Comes with Arduino IDE
#include <LiquidCrystal_I2C.h>

// Set the LCD I2C address
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

void setup() {
Serial.begin(9600);
lcd.begin(20,4);
Serial.println("DHT RTC with LCD Test");
Serial.println("Initialize DS3231");
clock.begin();
dht.begin();
}

void loop() {
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
int h = dht.readHumidity();
int t = dht.readTemperature();
dt = clock.getDateTime();

// set the cursor to (0,0):

lcd.setCursor(0, 0);
// print from 0 to 9:

lcd.print("Temp: ");
lcd.print(t);
lcd.print("C");

// set the cursor to (16,1):
lcd.setCursor(0,1);
lcd.print("Humidity: ");
lcd.print(h);
lcd.print("%");

lcd.setCursor(0,3);
//lcd.print("DateTime:");
lcd.print(clock.dateFormat("d-m-Y H:i:s", dt));

/*Serial.print("Long number format: ");
Serial.println(clock.dateFormat("d-m-Y H:i:s", dt));

Serial.print("Temp: ");
Serial.print(t);
Serial.print("C, Humidity: ");
Serial.print(h);
Serial.println("%");
delay(1000);
*/

}
`

appreciate your support

Error in example rtc_ds3231

The statement " t.wday = inp2toi(cmd, 7);" appears to be in error. It does not cause an issue for execution of the example or the compiler. However, the weekday field is only one byte not two. Therefore, the value stored in t.wday is invalid.

day of week

having issues understanding day of week number, is Sunday=1 or 0, or 7?
i.e. is it Mon-Sun (1-7)?

When I set the date time, the wday seems to be ignored (from what i send in), yet when I change the date to something else in the week, it doesn't appear to update correctly.

Thanks,

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.