The program below can be used for a very basic version without LCD display, or for a version with LCD display as shown in the picture.
To use below code without display, you can remove the programming lines starting with "lcd.set" and " lcd.print". Also the library code "LiquidCrystal.h" is not needed.
Programming the Arduino board is easy. Download the latest software code version here and upload the code to the Arduino board.
For an overview of all Vinduino project related postings click here