Forum 2005-2010 (read only)
(Read 623 times)
May 29, 2009, 05:22 am
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?
May 29, 2009, 08:11 am
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.
May 29, 2009, 11:02 pm
If you plan on using processing in your app, it can read the time from your system clock just FYI.
Jun 03, 2009, 04:23 am
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?
Jun 03, 2009, 04:57 am
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