I need a code for DMD with GPS Module for Making a GPS Clock (Experts Help Me)

I am making a GPS Clock with Dot Matrix Display. I am Using Ublox Neo-6m GPS Module. If i use Ublox Neo-6m GPS Module i don't need a RTC DS1307 as far i know. Experts Please help me to making this Code.

I made a Code which is attached below. I am getting a error that 'class TinyGPSPlus' has no member named 'year'.

Experts please see the code and help me to complete the code and also tell me about RTC if i needed that for a GPS clock.

If any expert can make me the full code for DMD with GPS Module and paste it here.

// Menyisipkan File Library
#include <Wire.h>
#include <DMD2.h>         
#include <fonts/Arial_Black_16.h>
#include <RTClib.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>

static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 4800;

 
// Mendifinisakan Fungsi
#define bOK A0          
#define bUP A1
#define bDOWN A2
#define Panjang 2                        
#define Lebar 1                         

// Deklarasi Fungsi
SoftDMD dmd(Panjang, Lebar);                  // Panjang x Lebar
RTC_DS1307 rtc;                               // Chip RTC yang digunakan
TinyGPSPlus GPS;
SoftwareSerial ss(RXPin, TXPin);

// Deklarasi Variable
int Tahun ;
int Bulan ;
int Tanggal ;
int Jam ;
int Menit ;
int Detik ;
char dmdBuff[10];

void setup() {
  // Setup DMD
  dmd.setBrightness(150);
  dmd.selectFont(Arial_Black_16);
  dmd.begin();
  dmd.clearScreen();
 
  rtc.begin();
  rtc.adjust(DateTime(GPS.year, GPS.month, GPS.day, GPS.hour, GPS.minute, GPS.second)); 

  
  // pin Mode yang dugunakan pada Inputan
  pinMode(bOK,INPUT_PULLUP);
  pinMode(bUP,INPUT_PULLUP);
  pinMode(bDOWN,INPUT_PULLUP);
}

void showTime() {
  // Program menampilkan Jam
  DateTime now = rtc.now();
  Jam = now.hour();
  Menit = now.minute();
  Detik = now.second();
 
  sprintf(dmdBuff,"%2d:%2d:%2d",Jam,Menit,Detik);
  dmd.drawString( 1, 1, dmdBuff );
}

void loop() {
  showTime();
}

DMD_with_RTC.ino (1.6 KB)

  rtc.adjust(DateTime(GPS.year, GPS.month, GPS.day, GPS.hour, GPS.minute, GPS.second));

If you look at the library source you may see that those are functions.... try:

  rtc.adjust(DateTime(GPS.year(), GPS.month(), GPS.day(), GPS.... etc.

BulldogLowell:

  rtc.adjust(DateTime(GPS.year, GPS.month, GPS.day, GPS.hour, GPS.minute, GPS.second));

If you look at the library source you may see that those are functions.... try:

  rtc.adjust(DateTime(GPS.year(), GPS.month(), GPS.day(), GPS.... etc.

Thanks for your suggestion. I apply your code but getting same error. :cry:

Sisir_Raihan:
Thanks for your suggestion. I apply your code but getting same error. :cry:

did you look at the source code?

Post your complete updated code and complete error message.

May be my code is wrong! :cry:

Someone please make a code for DMD with GPS Module.

Sisir_Raihan:
May be my code is wrong! :cry:

Someone please make a code for DMD with GPS Module.

How much are you paying?

BulldogLowell:
did you look at the source code?

No. I am using TinyGPS++ Library.

I am using TinyGPS++ Library.

But, you haven't looked at the code. So, why do YOU think the library has a year member?

Sisir_Raihan:
No. I am using TinyGPS++ Library.

Did you look on the home page for TinyGPS++ ?

srnet:
Did you look on the home page for TinyGPS++ ?

Yes i saw the homepage. It has a year member.

http://arduiniana.org/libraries/tinygpsplus/

Sisir_Raihan:
Yes i saw the homepage. It has a year member.

http://arduiniana.org/libraries/tinygpsplus/

did you happen to see this:

Serial.println(gps.time.value()); // Raw time in HHMMSSCC format (u32)
Serial.println(gps.time.hour()); // Hour (0-23) (u8)
Serial.println(gps.time.minute()); // Minute (0-59) (u8)
Serial.println(gps.time.second()); // Second (0-59) (u8)
Serial.println(gps.time.centisecond()); // 100ths of a second (0-99) (u8)

when you looked at the examples?

Try GPS.date.year(), etc...

Sisir_Raihan:
Yes i saw the homepage. It has a year member.
http://arduiniana.org/libraries/tinygpsplus/

So compare what you used with what the webpage said to use.

Experts please tell me that can i make a GPS Clock with DMD Display?
I can't find any GPS Clock with DMD on Internet.

What do you mean by 'DMD Display' they come in lots of different forms ...............

srnet:
What do you mean by 'DMD Display' they come in lots of different forms ...............

DMD means P10 display.