GM4JJJ 4 Digit Arduino LED GPS Clock Code
Arduino Uno LED Digital Clock using GPS for Time Sync
Brought to you by:
gm4jjj
File | Date | Author | Commit |
---|---|---|---|
LED_Clock_GPS.ino | 2018-04-27 |
![]() |
[0f2d38] bug fix |
ReadMe.ino | 2014-03-31 |
![]() |
[c2e09e] Switch replaced by IR remote |
// David Anderson GM4JJJ March 2014 www.gm4jjj.co.uk // 24 hour clock with leading 0 // GPS for time set and sync // Automatic DST for Local Time (choose Time Zone) // IR receiver and remote control for changing between Local Time and UTC (Press the 'Mode' button remote) // Demo of LED multiplexing in slow motion for fun and education (Press the 'Repeat' button on remote) // Immediately cancel the demo of LED multiplexing by pressing the 'Power - On/Off' button on the remote // Note that the GPS receiver is connected to the only hardware serial port on the Uno // This means that you NEED TO DISCONNECT the GPS RX serial lead WHEN UPLOADING the SKETCH // SoftwareSerial does not work adequately for this application. A Mega with more than one hardware serial port is another option. // Acknowledgements: // This clock engine is partly based on code from nootropicdesign.com // also Jeremy Saglimbeni 2011 - thecustomgeek.com // also Alarm_Clock Joe Pardue December 20, 2012 www.smileymicros.com\blog // <TinyGPS++.h> http://arduiniana.org/libraries/tinygpsplus/ // <Time.h> // Time Utilities http://github.com/Kernald/time // <Timezone.h> //http://github.com/JChristensen/Timezone // <IRremote.h> // IR receiver http://github.com/shirriff/Arduino-IRremote // The Sainsmart UNO R3 Starter Kit http://www.sainsmart.com/starter-kits/uno-r3-smartkits/sainsmart-uno-r3-starter-kit-with-16-basic-arduino-projects.html // Ublox NEO-6M GPS Module Aircraft Flight Controller For Arduino (eBay) // For 5461AS LED display, 4 digits, 7 segments with decimal points, no colon, COMMON CATHODE. // Pin out of the 5461AS device: // LEDPIN Name // 1 Segment E // 2 Segment D // 3 Decimal Point // 4 Segment C // 5 Segment G // 6 Digit 4 Cathode // 7 Segment B // 8 Digit 3 Cathode // 9 Digit 2 Cathode // 10 Segment F // 11 Segment A // 12 Digit 1 Cathode // Arduino UNO Pins, there are actually 20 pins that you can use. // There are digital 0-13 (3, 5, 6, 9, 10, and 11 capable of PWM output), and then Analog In A0-A5. // These Analog pins can also be referred to as pins 14-19. // Even though they are analog ‘input’ pins, they behave just the same as a digital pins, with the added function of 8 bit ADC on each one. // (It can measure voltage in 1,024 steps.)