Activity C1 — Get Started with Arduino

Level 1 — Upload a sketch onto an Arduino

There are 3 things to do:

  1. Start the Arduino IDE program.
  2. Put a sketch into the Arduino IDE.
  3. Upload the sketch.

Start the Arduino IDE

Arduino program in the start menu
Arduino program in the search results
New Arduino IDE window

Put a sketch into the Arduino IDE

This PC selected in the Save As... dialog Entire program selected
Entire sketch selected
void setup() {
    pinMode(12, OUTPUT);    // set up pin 12 as an output.
}

void loop() {
    digitalWrite(12, HIGH);
    delay(200);
    digitalWrite(12, LOW);
    delay(800);
}
Sketch pasted in

Upload the program

Setting the COM port
The upload button Compiling the sketch The sketch has been uploaded

Claim your achievement