Skip to content

Session 04: Digital Hourglass (31/07/2021)

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.

Check out this related project that has been counting to a billion for over ten years!

Leave a Reply

Your email address will not be published. Required fields are marked *