Introduction: Arduino Serial Monitor Challenges

About: I am robotics engineer and a teacher whose passion in life is breaking down the maths and academic jargon of programming and robotics into something that everyone can understand, primary school kids included.…

Wanna test your Arduino programming skills?

Here are six challenges each of which is harder than the previous one and requires you to use more and more of the Serial Monitor functionality. All in all this is a fun way to practice your arduino programming with no circuitry needed, just plug in your Arduino and you are ready to go!

Step 1: Simple Counter

This is a program that counts from 1 onwards and prints out each number on the serial monitor.

Step 2: Countdown Timer

This is a program that counts down from a desired number and prints out “Countdown Complete” when the countdown reaches zero!

Step 3: Digital Clock

This is a program that imitates a standard clock presenting time in the same format as seen on most digital watches

Step 4: Test Even or Odd

This is a program that reads a number put in by the user and then tests whether the number entered is even or odd

Step 5: Prime Number Tester

This is a program that reads a number put in by the user and then tests whether the number entered is a prime number

Step 6: Factorisation Program

This is a program that reads a number put in by the user and then tests whether the number entered is a prime number. If the number is NOT prime the program will list all the factors of this number.

Step 7: Reversing a Number

This program takes in a real number as in input through the serial, then it prints out the same number with the digits reversed.