This course we learnt how to build an Arduino project. We started from the tutorials, make a simple project called miniteglass. 6 LEDs light on one by one and they all turned off when the tilt switch status changes.

All the materials we need:

  • 1 Arduino board
  • 6 LEDs
  • 1 tilt switch
  • 7 resistors

First we make the circuit as the graph shows:



Write the code in the Arduino:


The minuteglass video shows here:

#Arduino #minuteglass

A post shared by HighLengCo (@alchemist_coco) on

Publié dans Uncategorized