πŸ“Œ 1. What Is Arduino?

Arduino is an open-source electronics platform used to build:

It consists of:

πŸ“Œ 2. What You Need to Start

Mandatory:

Optional but very useful:

You can easily order a starter kit on Amazon or AliExpress.

πŸ“Œ 3. Installing the Arduino IDE

Step 1: Download Arduino IDE

πŸ‘‰ https://www.arduino.cc/en/software

Step 2: Install it

Windows / Mac / Linux supported

Step 3: Connect your Arduino board with USB

Your computer will install drivers automatically.

Step 4: Select the board

Tools β†’ Board β†’ Arduino Uno

Step 5: Select the COM port

Tools β†’ Port β†’ COMX (Arduino Uno)

πŸ“Œ 4. Understanding the Arduino IDE

Basic program structure:

void setup() {
  // runs once
}

void loop() {
  // runs forever
}

πŸ“Œ 5. Your First Project: Blink an LED

Wiring

Code: Blink LED

void setup() {
  pinMode(13, OUTPUT);  // Use pin 13
}

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

Upload β†’ The LED blinks every second.
Congratulations! You executed your first microcontroller program!

πŸ“Œ 6. Project 2: Control LED with a Button

Wiring

Code

int button = 2;
int led = 13;

void setup() {
  pinMode(button, INPUT);
  pinMode(led, OUTPUT);
}

void loop() {
  int state = digitalRead(button);

  if (state == HIGH) {
    digitalWrite(led, HIGH);
  } else {
    digitalWrite(led, LOW);
  }
}

Now the LED turns ON when you press the button.

πŸ“Œ 7. Project 3: Read Analog Values (Potentiometer)

This teaches you analog signals and analogRead().

Wiring

 

Code

int pot = A0;
int value;

void setup() {
  Serial.begin(9600);
}

void loop() {
  value = analogRead(pot);   // read 0–1023
  Serial.println(value);
  delay(200);
}

Open Serial Monitor β†’ you will see the values change.

πŸ“Œ 8. Project 4: Control LED Brightness (PWM)

Using analogWrite() on a PWM pin (marked with ~).

Wiring: LED to pin 9

Code:

int led = 9;
int brightness = 0;

void setup() {
  pinMode(led, OUTPUT);
}

void loop() {
  for (brightness = 0; brightness <= 255; brightness++) {
    analogWrite(led, brightness); 
    delay(10);
  }

  for (brightness = 255; brightness >= 0; brightness--) {
    analogWrite(led, brightness);
    delay(10);
  }
}

LED will fade in and out smoothly.

πŸ“Œ 9. Project 5: Ultrasonic Distance Sensor (HC-SR04)

Purpose: measure distance (robotics, security, parking system)

Wiring

 

Code

#define trig 9
#define echo 10

void setup() {
  Serial.begin(9600);
  pinMode(trig, OUTPUT);
  pinMode(echo, INPUT);
}

void loop() {
  digitalWrite(trig, LOW);
  delayMicroseconds(2);
  digitalWrite(trig, HIGH);
  delayMicroseconds(10);
  digitalWrite(trig, LOW);

  long duration = pulseIn(echo, HIGH);
  long distance = duration * 0.034 / 2;

  Serial.print("Distance: ");
  Serial.print(distance);
  Serial.println(" cm");

  delay(300);
}

Now you have a basic radar distance measurement system.

πŸ“Œ 10. Project 6: Servo Motor Control

Used in:

Wiring

Code

#include <Servo.h>

Servo motor;

void setup() {
  motor.attach(9);
}

void loop() {
  motor.write(0);
  delay(1000);
  motor.write(90);
  delay(1000);
  motor.write(180);
  delay(1000);
}

πŸ“Œ 11. Project 7: Temperature & Humidity Sensor (DHT11)

Wiring

 

Code

#include "DHT.h"

#define DHTPIN 2
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600);
  dht.begin();
}

void loop() {
  float h = dht.readHumidity();
  float t = dht.readTemperature();

  Serial.print("Temp: "); Serial.print(t); Serial.println("Β°C");
  Serial.print("Hum: ");  Serial.print(h); Serial.println("%");
  delay(1000);
}

You now have a mini-weather station.

πŸ“Œ 12. Summary of Essential Arduino Skills

By completing these lessons, you’ve learned:

SkillExplanation
Digital I/OUsing pinMode, digitalRead, digitalWrite
Analog InputReading sensors with analogRead
PWM OutputControlling brightness and speed
Serial MonitorDisplaying sensor data
Using Libraries(Servo, DHT, etc.)
Basic CircuitsBreadboarding + resistors

You now have enough knowledge to build real-world Arduino projects.

πŸ“Œ 13. What You Can Build Next (Advanced Projects)

Next-level ideas: