I’m trying to simulate a clock using an arduino uno and send the time to an SD Logger which is periodically sleeping and therefore unable to time stamp correctly (as it is losing seconds).
The code on the uno looks like this:
#define rxPin 0
#define txPin 1
SoftwareSerial mySerial = SoftwareSerial (rxPin, txPin);
If I want the SDlogger to read the time and print it to a file which is already created earlier in the SDLoggers programme, how would I do it?
I’ve tried declaring a variable incomingByte and used file.print(incomingByte); but it gives random values instead of the time