Skip to content

Has anyone successfully built one? #5

@Gittheheckout

Description

@Gittheheckout

I've been working on this project for several weeks. Ordered all the parts, installed the latest Arduino IDE, double checked the libraries. Ran the example sketches for the individual components, and it still doesn't work. The fastclock.ino verifies and completes the upload. However, the displayed clock data is gibberish. A series of horizontal bars, sanscrit characters, and not much else. There is an entire block of code that has been commented out.

// This block sets the real and fast clocks
{
InitialSetClocks();

/* // Get time from the Real Time Clock
if (timeStatus() != timeSet) { // Check if RTC set the real clock
realClock = 1; // When RTC fails, Set real clock time to midnight 1/1/1970
setTime(realClock);
}
realClock = now();
prevRealClock = realClock;
// Set default start time for fastClock
timeParts.Hour = DEFAULTHH;
timeParts.Minute = DEFAULTMM;
timeParts.Second = 0;
timeParts.Wday = weekday(); // Set Day of week, sunday is day 1 - Default to Real Clock
timeParts.Day = day(); // Set Day of month - Default to Real Clock
timeParts.Month = month(); // Set Month - Default to Real Clock
timeParts.Year = year() - 1970; // Set year offset from 1970 - Default to Real Clock
fastClock = makeTime(timeParts); //Create FastClock storage
//fastClock = 68400UL; //Set starting fasttime
*/

Is there an operational piece of code that is available to get this program working?
Setting DEBUG _MODE on does show that the RTC is functioning while looking at the serial monitor.
Nothing else works except the charges on my Paypal parts bill.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions