How to use a timer in Arduino

A Timer is capable to run multiple countdown timers, which you can check anytime with the 'timers' command as you can see in the 3rd video, below. You can read the protocol for more commands. For example you can pause the timers anytime you wish. In reality the countdown timers are virtual timers adjusted by the global timer. These virtual timers can promptly start any function added to the programcode.

Prerequisites

  • Ozeki 10 installed on your computer
  • Programmable board (Arduino Mega/Nano/Uno or any Ozeki Matrix Module)
  • USB cable between the board and your computer

Step 1 - Plug a board into your computer

Choose your board for the Timer and please plug it to your computer

Step 2 - Upload code to the microcontroller

(Here is the code to upload)

Step 3 - Start a serial monitor to try the timer

Step 4 - Understand the timer protocol

You can communicate with the Timer through a serial monitor, with the following protocol.

More information