Pages: [1]   Go Down
Author Topic: DateTime  (Read 578 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I loaded the datetime library and example program to the arduino board. I then ran the program to set the time in processing, and the box with the white text (Mouse click to set arduino time), and I click but it does nothing. What am I doing wrong?
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6255
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is the serial port in the Processing sketch set correctly to the port the arduino is connected to?

Running the Processing sketch prints the name of the port it is using,  the tools/serial port menu option in the Arduino IDE shows the arduino serial port. If these are different then the time will not be set.

Good luck!
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you plan on using processing in your app, it can read the time from your system clock just FYI.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! Yeah, I had the wrong port selected, I believe it works now. On a side note, while the program is running can I change the values of the time variables manually? e.g. use a button connected to one of the IO pins to increment the hour variable by one, making in manually settable?
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6255
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes you can change the time manually using buttons. I posted a sketch in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235476588/1#1
Logged

Pages: [1]   Go Up
Jump to: