someone help me
DS3231 does serial print this date but R⸮V⸮42⸮4S⸮⸮4R⸮⸮42⸮G ⸮ ⸮6S⸮⸮F⸮⸮⸮BA0S⸮4S⸮⸮i⸮C⸮⸮BBE5⸮BA5⸮4R⸮⸮⸮B⸮V⸮BA0W⸮4R⸮⸮R⸮V⸮<⸮⸮R⸮V⸮BC0W⸮BC0W⸮BA42⸮42⸮i⸮C⸮⸮G⸮BBA5⸮
does my DS3231 is garbage? is there a way to fix this problem??
(deleted)
Welcome to the Forum. Please read these two posts:
General Guidance and How to use the Forum and
Read this before posting a programming question ...
#include <DS3231.h>
// Init the DS3231 using the hardware interface
DS3231 rtc(SDA, SCL);
void setup()
{
// Setup Serial connection
Serial.begin(115200);
// Uncomment the next line if you are using an Arduino Leonardo
//while (!Serial) {}
// Initialize the rtc object
rtc.begin();
// The following lines can be uncommented to set the date and time
//rtc.setDOW(WEDNESDAY); // Set Day-of-Week to SUNDAY
//rtc.setTime(12, 0, 0); // Set the time to 12:00:00 (24hr format)
//rtc.setDate(1, 1, 2014); // Set the date to January 1st, 2014
}
void loop()
{
// Send Day-of-Week
Serial.print(rtc.getDOWStr());
Serial.print(" ");
// Send date
Serial.print(rtc.getDateStr());
Serial.print(" – ");
// Send time
Serial.println(rtc.getTimeStr());
// Wait one second before repeating
delay (1000);
}
You really need to answer to reply #1!
Welcome to the Forum. Please read these two posts about how to post code and ask questions here:
General Guidance and How to use the Forum and
Read this before posting a programming question ...
(deleted)
its okay now i set baud rate to 19200 thank you
Now read about how to post questions and code.