Pages: [1]   Go Down
Author Topic: SURE3208 NTP CLOCK  (Read 1743 times)
0 Members and 1 Guest are viewing this topic.
Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 390
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I made this little project, so I can reuse my own code in an other project of mine: Castduino. http://arduino.cc/forum/index.php/topic,71543.0.html


I just shows time on only 1 SURE3208 matrix display. Because I wanted to use the HT1632 library, I had to make my own font, otherwise hour, minutes and seconds wouldn't fit on the 32x08 leds matrix. So I did and made an 6 high and 3 width font.

This is how it looks:



*this is the link to my project page: http://www.jo3ri.be/a/jo3ri.be/jo3ri/arduino/arduino-projects/sure3208-ntp-clock, where you can download the zip file, containing the sketch and the special font. You'll need the complete zip file.
« Last Edit: December 12, 2011, 06:30:25 am by JO3RI » Logged


Coppell, Texas
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've downloaded and unziped the code into my Arduino library folder.  When I try to
compile it, it complains that setTime() -- in the SetTime.ino file -- has not been declared.
It also reports that "hour", "minute", and "second" in the SetClock.ino file have not
been declared.

It appears you are using a web service to get the current time.  Is there a way to 
disable the time setting function so I can manually set the time.  I tried
commenting out "SetTime()" in the main loop and it crashes.

I like the app as it is simple and straight forward but I am not connected
to the net.  I'm using a Arduino UNO...

Thanks,
Logged

Coppell, Texas
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, you can ignore the comment regarding undeclared variables.  Seems I was missing
the Time.h file.  Got it now and it compiles... Will try to manually set time.
Logged

Hamme, Belgium
Offline Offline
Sr. Member
****
Karma: 4
Posts: 390
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can set time manually, but it won't be easy to get it right  smiley-wink

If you check the playground for the Time library:

Code:
setTime(hr,min,sec,day,month,yr);

Logged


Pages: [1]   Go Up
Jump to: