text: I posted the elsewhere but didn't get any resonce.
  Postby herring_fish » Wed Apr 13, 2011 10:26 pm
  I have been working for 3 (now 6) nights and I can’t figure out how to sync my Arduino Mega with my PC. I also have a, I2C/SPI/Onewire Shield from Andrew Oke that I have use or not used while trying to get this working.
  I want to get a synced time and store it in the I2C/SPI. Then I want to unplug the USB and still start a program at set time throughout the day. ie. 1:00, 2:00; 3:00 etc.
  I have tried the libraries Processing, TimeSerial, TimeSerialDateString, TineRTC, SoftSerial, on and on.
  I thought that Process SyncArduinoClock should do it but I can’t compile it because it errors out here:
  import processing.serial.*;
  It says: * portIndex must be set to the port connected to the Arduino
  But I don’t know what that means. I am using com port 5 to upload to the Arduino.
  I also read about not being about to get the time through the serial port at the same time and having the serial monitor. That is all a little over my head.
  Please help me by spelling out what I need to type in, where.
  softrtc.pde compiles and give a proper time in the Serial Monitor