jmicrobe / odin

Repo for documentation related to the Optical Density Instrument at the Stahl lab
MIT License
1 stars 2 forks source link

Added serial output to indicate the date and time the Real-Time Clock… #31

Closed jsebrof closed 6 years ago

jsebrof commented 6 years ago

… is set to upon program start.

jmicrobe commented 6 years ago

Super! I'll try running this on the ODIn and see if it works.

jmicrobe commented 6 years ago

Great! In serial monitor it now displays:

RTC current datetime: 2017/12/19 2:35:26

  1. How do I update it to the correct day and time?
  2. Would it be possible to include the RTC datetime in the CSV file?
jsebrof commented 6 years ago
  1. Good question... Maybe try this:
    • Re-load the Arduino sketch again using you computer, with the date and time correctly set.
    • Turn off the ODIn system, also unplugging the USB cable to the Arduino.
    • Remove the coin-cell battery from the data logger shield.
    • Wait about a minute, then reinstall the coin-cell battery.
    • Power the ODIn system back on.

The LCD screen should mention, even if only briefly, that the RTC isn't working. What it will do at that point is apply the date and time from when the Arduino sketch was loaded into the RTC and start it working again.

At this point, you can plug the USB cable back in, restart the ODIn software by opening the Serial window, and hopefully the new datetime is this month, and not December.

  1. This is definitely possible, I'll see about adding something when I get home tonight.
jmicrobe commented 6 years ago

Great, date and time are correct and it's working as expected. I'll merge this and close.

jsebrof commented 6 years ago

@jmicrobe Did you still want to include the RTC datetime in the CSV file?

jmicrobe commented 6 years ago

yes if that's feasible. ideally as a new column in the csv, in addition to the elapsed time column.

jsebrof commented 6 years ago

Ok, committed and pull request created #32