We started the session with a closer look at variables and datatypes in Arduino.
Project 08 was a digital hourglass that made use of the millis() function. This allows us to keep track of the amount of time the Arduino has been running in milliseconds. We also used the unsigned long datatype. This is used to store a 32-bit unsigned number (so a number between 0 and (2^32) – 1). Perfect for storing time.
The slides from this session are available here. Test your understanding with the questions at the end!Download
Check out this related project that has been counting to a billion for over ten years!