Tell us about yourself!

Complete Your Profile
  • Timekeeping on ESP8266 & arduino uno WITHOUT an RTC (Real Time CLock)?

    The counter holding the millis value would roll over.You would do this... On power up set an 'overflow' variable to zero and a 'last millis' variable to zero.When you read millis you check to see if the current value is less than 'last millis' and if it is you increment the 'overflow' variable by 1. You then set 'last millis' to the current millis value.When you want to work out the total uptime you multiply the 'overflow' value by the maximum value that millis could be then add the current millis value and return that.

    View Instructable »