Show a Counter

Parts

-Arduino microcontroller and carrier board

-LiPo battery

Program the Microcontroller

/**
* @file: counter example
* @date: 2/21/2011
*
* @DESCRIPTION
* counts from 0 to 99 with serial output
*/
//--- Function: Setup ()
void setup()
{
    Serial.begin(9600);
    delay(25);
}
//--- Function: loop ()
void loop()
{
    for (int count=0; count<100; count++)
    {
        Serial.print("The count is ");
        Serial.println(count, DEC);
        delay(50);
    }
}