here is the basic arduino blink-the-led program, everyone starts by getting this working, so try and understand what each line is doing. There is a built in LED on pin 13, you have up to 20 pins to play with (I use php tags cuz it looks pretty, but it is C).
PHP Code:
int ledPin = 13; // LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
borrowed from:
http://www.arduino.cc/en/Tutorial/Blink
Have you considered posting on the
arduino.cc forum? This learning stuff is right up their alley, though I'm sure more than a few ecomodders don't mind the exposure either. It is a very enabling technology.