I have been working for 3 nights and I can’t figure out how to sync my Arduino Mega with my PC. I also have a, I2C/SPI/Onewire Shield 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 start a program at set times throughout the day. ie. 1:00, 2:00; 3:00 etc. but it might be changed to 1:21, 2:15, 2:22, 10:05 ... That would be closer to the alarm function.
I have tried the libraries Processing, TimeSerial, TimeSerialDateString, TimeRTC, SoftSerial, on and on.
I thought that Process SyncArduinoClock should do it but I can’t compile it because:
import processing.serial.*; is not filed out.
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 as and having the serial monitor open. That is all a little over my head.
Please help me by spelling out what I need to type in, where.