Teachers and seniors can login to Lynda using a NSW Education login. Then following these video instructions, use the Arduino IDE to create your first sketch that will make a built in LED on the Arduino board blink on and off repeatedly.
Junior students will need to copy and paste the following code into your Arduino IDE and upload. Make sure you delete everything from the Arduino file before pasting in the new code!
//This code will make the built-in LED on your Arduino board blink on for one second and off for half a second repeatedly.
int LED = 13; //Define the variable LED and set it to pin 13 on your Arduino board
void setup (){
pinMode (LED, OUTPUT); //Initialise the LED pin to be used for output
}
void loop (){
digitalWrite (LED, HIGH); //Turn the LED on
delay (1000); //Wait for one second (1000 milliseconds)
digitalWrite (LED, LOW); //Turn the LED off
delay (500);
}