GK SOLUTIONS
AI • IoT • Arduino • Projects & Tutorials
DEFEAT THE FEAR

🛠️ Lesson 2: Setup & Components

⏱️ Estimated time: 20 minutes | Difficulty: Beginner

Getting Ready

To start your Arduino journey, you need the Arduino IDE and some basic components like LEDs, resistors, and breadboards.

Step 1: Install Arduino IDE

  1. Download from arduino.cc/en/software
  2. Install with default settings
  3. Connect Arduino via USB cable
  4. Select your board: Tools → Board → Arduino Uno
  5. Select port: Tools → Port → COMx (Windows) or /dev/tty (Mac/Linux)

Essential Components

Component Purpose
LED Light output
Resistor Limits current flow
Button User input
Potentiometer Variable resistance (knob)
Breadboard Prototype circuit without soldering
Jumper Wires Connect components

Your First Sketch: Blink

// Blink the built-in LED on pin 13
void setup() {
    pinMode(13, OUTPUT);  // Set pin 13 as output
}

void loop() {
    digitalWrite(13, HIGH);  // LED ON
    delay(1000);             // Wait 1 second
    digitalWrite(13, LOW);   // LED OFF
    delay(1000);             // Wait 1 second
}

Upload Your Sketch

  1. Click ✓ (Verify) to check for errors
  2. Click → (Upload) to send code to Arduino
  3. Watch the LED blink! 🎉

✅ Quick Quiz

❓ What does pinMode() do?

❓ What does delay(1000) do?

❓ What does a breadboard do?

← Previous Next: Digital I/O →