Skip to content

Switchdoctorstu/Arduino-MEGA-GPS-RTC-I2C-Sender-for-Colorduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-MEGA-GPS-RTC-I2C-Sender-for-Colorduino

Stuarts code to drive ublox GPS DS1307 RTC and TM1638 Display

A project to build a household clock using a GPS reciever as the time source.

The display consists of a TM1683 based LED display along with I2C communications to drive colorduino display modules. See my other projects for the source for the display modules.

I used a mega to give me enough serial ports to link in the gps and still have usb available.

Arduino MEGA reads GPS, sets RTC, sends via I2C to Colorduino.

If (it can)  reads GPS time and date
else     Reads the RTC 
Displays time on TM1638
Handles reset of RTC
Handles button updates to RTC
Added debug mode to clear serial noise
Added better gps handler
Added I2C display module handler
Added local BMP180 module
Added watchdog
Logging bmp and temperature
Background graphic from log
Added RF24 for remote logging

known bugs:

GMT is sort of working but crudely adds an hour to the current hour and takes no account of date change points but this is only a problem when running on the rtc else the gps provides the correct date.

  Boolean isbst(int day, int month, int dow){
    if (month < 3 || month > 10)  return false; 
    if (month > 3 && month < 10)  return true; 
    int previousSunday = day - dow;
    if (month == 3) return previousSunday >= 25;
    if (month == 10) return previousSunday < 25;
    return false; // this line never gonna happen
}

RF24 setup ok Haven't completed the remote logging yet. I'll add the remote station code when i've completed it. The RF sets up ok and listens for remote stations.

About

Arduino MEGA reads GPS, sets RTC, sends via I2C to Colorduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%