Complete Learning Platform

Build with Arduino

Explore every Arduino series, from classic Uno to ESP32. Step-by-step project guides, copyable code, parts lists, installation and deployment — all in one place.

12+
Board Series
20+
Projects
100%
Open Source

Arduino Board Series

Compare specifications across the most popular Arduino and compatible boards. Choose the right board for your project.

Classic

Arduino Uno

The most popular Arduino board for beginners and education. ATmega328P with 14 digital I/O pins.

  • MCUATmega328P
  • Clock16 MHz
  • Flash32 KB
  • SRAM2 KB
  • Digital I/O14
  • Analog In6
Compact

Arduino Nano

Small form factor with the same ATmega328P chip. Perfect for breadboard projects and wearables.

  • MCUATmega328P
  • Clock16 MHz
  • Flash32 KB
  • SRAM2 KB
  • Digital I/O14
  • Analog In8
High I/O

Arduino Mega 2560

Massive I/O count for complex projects. 54 digital pins, 16 analog inputs, and 256 KB flash.

  • MCUATmega2560
  • Clock16 MHz
  • Flash256 KB
  • SRAM8 KB
  • Digital I/O54
  • Analog In16
Wireless

ESP32

Dual-core MCU with Wi-Fi and Bluetooth built in. Ideal for IoT projects and wireless applications.

  • MCUDual-core Xtensa
  • Clock240 MHz
  • Flash4-16 MB
  • SRAM520 KB
  • Digital I/O34
  • Wi-Fi802.11 b/g/n/ac
HID

Arduino Leonardo

Built-in USB HID support — emulates keyboard and mouse. ATmega32u4 with native USB.

  • MCUATmega32u4
  • Clock16 MHz
  • Flash32 KB
  • SRAM2.5 KB
  • Digital I/O20
  • Analog In12
32-bit

Arduino Due

32-bit ARM Cortex-M3 at 84 MHz. The first Arduino with a 32-bit processor for demanding tasks.

  • MCUAT91SAM3X8E
  • Clock84 MHz
  • Flash512 KB
  • SRAM96 KB
  • Digital I/O54
  • Analog In12
BLE

Nano 33 BLE

Compact board with Bluetooth Low Energy and machine learning capabilities. nRF52840 MCU.

  • MCUnRF52840
  • Clock64 MHz
  • Flash1 MB
  • SRAM256 KB
  • Digital I/O14
  • BluetoothBLE 5.0
Budget WiFi

ESP8266

Low-cost Wi-Fi microcontroller. Great for simple IoT projects and home automation on a budget.

  • MCUESP8266EX
  • Clock80 MHz
  • Flash4 MB
  • SRAM~50 KB
  • Digital I/O17
  • Wi-Fi802.11 b/g/n

Step-by-Step Projects

Click any project to expand full instructions, parts list, wiring steps, and copyable code.

Beginner

LED Blink — Your First Arduino Program

The classic "Hello World" of Arduino. Blink an LED on and off using digital output. Learn pinMode, digitalWrite, and delay.

5 min Uno / Nano

Parts Required

  • Arduino Uno or Nano
  • LED (any color)
  • 220Ω resistor
  • Breadboard
  • Jumper wires
  • USB cable

Wiring Steps

  1. Connect the long leg (anode) of the LED to Arduino pin 13 through a 220Ω resistor.
  2. Connect the short leg (cathode) of the LED to GND on the Arduino.
  3. Plug the Arduino into your computer using the USB cable.
  4. Open the Arduino IDE, select your board and port, then upload the code below.

Code

Arduino C++
/* Blink — LED on for 1 second, off for 1 second Pin 13 has an LED connected on most Arduino boards. */ void setup() { // Initialize digital pin 13 as an output pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // Turn LED on delay(1000); // Wait 1 second digitalWrite(13, LOW); // Turn LED off delay(1000); // Wait 1 second }
Beginner

Ultrasonic Distance Sensor with HC-SR04

Measure distances using ultrasonic sound waves. Perfect introduction to sensor input and serial monitoring.

15 min Uno / Nano

Parts Required

  • Arduino Uno
  • HC-SR04 ultrasonic sensor
  • Breadboard
  • Jumper wires (4x female-to-male)
  • USB cable

Wiring Steps

  1. Connect HC-SR04 VCC to Arduino 5V.
  2. Connect HC-SR04 GND to Arduino GND.
  3. Connect HC-SR04 Trig to Arduino pin 9.
  4. Connect HC-SR04 Echo to Arduino pin 10.
  5. Upload the code and open Serial Monitor at 9600 baud.

Code

Arduino C++
/* Ultrasonic Distance Sensor — HC-SR04 Measures distance and prints to Serial Monitor. */ const int trigPin = 9; const int echoPin = 10; void setup() { Serial.begin(9600); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); } void loop() { // Send 10µs pulse to trigger digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Read echo pulse duration long duration = pulseIn(echoPin, HIGH); // Calculate distance in cm float distance = duration * 0.0343 / 2; Serial.print("Distance: "); Serial.print(distance); Serial.println(" cm"); delay(500); }
Beginner

LDR Light Detection System

Detect darkness using a Light Dependent Resistor. Automatically turn on an LED and buzzer when light drops below threshold.

20 min Nano / Uno

Parts Required

  • Arduino Nano Every
  • LDR (photoresistor)
  • 10KΩ resistor
  • LED
  • 220Ω resistor
  • Active buzzer
  • Breadboard & wires

Wiring Steps

  1. Connect one leg of LDR to 5V, the other to analog pin A0 and a 10KΩ resistor to GND.
  2. Connect LED positive to pin 3 through 220Ω resistor, negative to GND.
  3. Connect buzzer positive to pin 2, negative to GND.
  4. Upload the code and cover the LDR to trigger the alert.

Code

Arduino C++
/* LDR Light Detection System Turns on LED + buzzer when light drops below threshold. */ int ldrPin = A0; int ldrread; int dl = 500; int orange = 3; int green = 4; int buzzer = 2; void setup() { Serial.begin(9600); pinMode(ldrPin, INPUT); pinMode(green, OUTPUT); pinMode(orange, OUTPUT); pinMode(buzzer, OUTPUT); } void loop() { ldrread = analogRead(ldrPin); Serial.println(ldrread); delay(dl); if (ldrread >= 60) { digitalWrite(orange, HIGH); digitalWrite(green, LOW); digitalWrite(buzzer, LOW); } else { digitalWrite(green, HIGH); digitalWrite(orange, LOW); digitalWrite(buzzer, HIGH); } }
Intermediate

Control LEDs with Analog Joystick

Use a 2-axis analog joystick to control four LEDs based on direction. Learn analog input mapping and conditionals.

25 min Uno

Parts Required

  • Arduino Uno Rev3
  • Analog joystick module
  • 4x LEDs (any color)
  • 4x 220Ω resistors
  • Breadboard 400 contacts
  • Jumper wires

Wiring Steps

  1. Connect joystick VCC to 5V and GND to GND.
  2. Connect joystick X-axis to A0 and Y-axis to A1.
  3. Connect four LEDs to pins 8, 9, 10, 11 with 220Ω resistors to GND.
  4. Upload code and move the joystick to light each LED.

Code

Arduino C++
/* Control LEDs using an Analog Joystick Move joystick in four directions to light corresponding LED. */ const int x_pot = A0; const int y_pot = A1; const int right_led = 11; const int bot_led = 10; const int left_led = 9; const int top_led = 8; void setup() { pinMode(x_pot, INPUT); pinMode(y_pot, INPUT); pinMode(right_led, OUTPUT); pinMode(top_led, OUTPUT); pinMode(left_led, OUTPUT); pinMode(bot_led, OUTPUT); } void loop() { int current_y = analogRead(y_pot); int current_x = analogRead(x_pot); while (current_y > 1000) { digitalWrite(top_led, HIGH); current_y = analogRead(y_pot); } digitalWrite(top_led, LOW); while (current_x > 1000) { digitalWrite(right_led, HIGH); current_x = analogRead(x_pot); } digitalWrite(right_led, LOW); while (current_y < 50) { digitalWrite(bot_led, HIGH); current_y = analogRead(y_pot); } digitalWrite(bot_led, LOW); while (current_x < 50) { digitalWrite(left_led, HIGH); current_x = analogRead(x_pot); } digitalWrite(left_led, LOW); delay(100); }
Intermediate

PIR Motion Sensor with LCD Display

Detect motion using a PIR sensor and display status on a 16x2 LCD. Includes I2C communication and sensor integration.

35 min Uno

Parts Required

  • Arduino Uno
  • PIR motion sensor (HC-SR501)
  • 16x2 LCD with I2C backpack
  • Breadboard
  • Jumper wires

Wiring Steps

  1. Connect PIR VCC to 5V, GND to GND, OUT to pin 2.
  2. Connect LCD I2C VCC to 5V, GND to GND, SDA to A4, SCL to A5.
  3. Install the LiquidCrystal_I2C library via Library Manager.
  4. Upload the code and wave your hand in front of the PIR sensor.

Code

Arduino C++
#include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2); const int pirPin = 2; void setup() { lcd.init(); lcd.backlight(); pinMode(pirPin, INPUT); lcd.setCursor(0, 0); lcd.print("Motion Sensor"); delay(1000); } void loop() { int motion = digitalRead(pirPin); lcd.clear(); if (motion == HIGH) { lcd.setCursor(0, 0); lcd.print("Motion Detected"); lcd.setCursor(0, 1); lcd.print("Alert!"); } else { lcd.setCursor(0, 0); lcd.print("No Motion"); } delay(500); }
Advanced

ESP32 WiFi Temperature Monitor

Build an IoT temperature monitor with ESP32 and DHT22. Serves a web page showing live sensor readings over WiFi.

45 min ESP32

Parts Required

  • ESP32 DevKit V1
  • DHT22 temperature/humidity sensor
  • 10KΩ pull-up resistor
  • Breadboard & wires
  • USB cable

Wiring Steps

  1. Connect DHT22 VCC to ESP32 3.3V, GND to GND.
  2. Connect DHT22 DATA to ESP32 GPIO 4 with 10KΩ pull-up to 3.3V.
  3. Install "DHT sensor library" and "Adafruit Unified Sensor" via Library Manager.
  4. Update WiFi credentials in the code, upload, and open Serial Monitor to get the IP address.
  5. Open that IP in any browser on the same network to see live readings.

Code

Arduino C++
#include <WiFi.h> #include <WebServer.h> #include <DHT.h> #define DHTPIN 4 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); WebServer server(80); const char* ssid = "YOUR_SSID"; const char* password = "YOUR_PASSWORD"; void setup() { Serial.begin(115200); dht.begin(); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println("\nConnected!"); Serial.print("IP: "); Serial.println(WiFi.localIP()); server.on("/", []() { float t = dht.readTemperature(); float h = dht.readHumidity(); String html = "<html><body><h1>ESP32 Sensor</h1>"; html += "<p>Temp: " + String(t) + " C</p>"; html += "<p>Humidity: " + String(h) + " %</p>"; html += "</body></html>"; server.send(200, "text/html", html); }); server.begin(); } void loop() { server.handleClient(); }
Advanced

Arduino Nano Snake Game with OLED

Classic Snake game on a 128x64 OLED display with joystick control. Uses SSD1306 display driver and game logic.

60 min Nano

Parts Required

  • Arduino Nano
  • 128x64 OLED display (SSD1306, I2C)
  • Analog joystick module
  • Breadboard & wires
  • USB cable

Wiring Steps

  1. Connect OLED VCC to 3.3V, GND to GND, SDA to A4, SCL to A5.
  2. Connect joystick VCC to 5V, GND to GND, X to A0, Y to A1.
  3. Install "Adafruit SSD1306" and "Adafruit GFX" libraries.
  4. Upload the full game code and use the joystick to play.

Code

Arduino C++
#include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); const int joyX = A0; const int joyY = A1; // Simple snake game variables int snakeX[50], snakeY[50]; int snakeLen = 3; int dirX = 1, dirY = 0; int foodX, foodY; bool gameOver = false; void setup() { display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(1); display.setTextColor(WHITE); randomSeed(analogRead(A2)); spawnFood(); } void spawnFood() { foodX = random(0, 16); foodY = random(0, 8); } void loop() { if (gameOver) { display.clearDisplay(); display.setCursor(20, 28); display.println("GAME OVER"); display.display(); delay(2000); gameOver = false; snakeLen = 3; spawnFood(); return; } int xVal = analogRead(joyX); int yVal = analogRead(joyY); if (xVal < 300) { dirX = -1; dirY = 0; } if (xVal > 700) { dirX = 1; dirY = 0; } if (yVal < 300) { dirX = 0; dirY = -1; } if (yVal > 700) { dirX = 0; dirY = 1; } // Move snake for (int i = snakeLen - 1; i > 0; i--) { snakeX[i] = snakeX[i - 1]; snakeY[i] = snakeY[i - 1]; } snakeX[0] += dirX; snakeY[0] += dirY; // Check food if (snakeX[0] == foodX && snakeY[0] == foodY) { snakeLen++; spawnFood(); } // Check collision if (snakeX[0] < 0 || snakeX[0] >= 16 || snakeY[0] < 0 || snakeY[0] >= 8) { gameOver = true; } display.clearDisplay(); display.setCursor(0, 0); display.print("Score: "); display.println(snakeLen - 3); // Draw snake for (int i = 0; i < snakeLen; i++) { display.fillRect(snakeX[i] * 8, snakeY[i] * 8 + 10, 6, 6, WHITE); } // Draw food display.fillRect(foodX * 8, foodY * 8 + 10, 6, 6, WHITE); display.display(); delay(150); }
Intermediate

Smart Waste Bin with Ultrasonic Sensor

Automatic touchless waste bin that opens when motion is detected. Uses servo motor and ultrasonic sensor for proximity detection.

30 min Nano

Parts Required

  • Arduino Nano
  • HC-SR04 ultrasonic sensor
  • SG90 servo motor
  • Foam board or small bin
  • Jumper wires

Wiring Steps

  1. Connect HC-SR04 VCC to 5V, GND to GND, Trig to pin 7, Echo to pin 6.
  2. Connect servo signal to pin 9, VCC to 5V, GND to GND.
  3. Mount the sensor on the front of the bin and servo on the lid hinge.
  4. Upload the code — the lid opens when an object is within 20 cm.

Code

Arduino C++
#include <Servo.h> Servo lidServo; const int trigPin = 7; const int echoPin = 6; const int servoPin = 9; void setup() { pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); lidServo.attach(servoPin); lidServo.write(0); Serial.begin(9600); } void loop() { digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); long duration = pulseIn(echoPin, HIGH); float distance = duration * 0.0343 / 2; if (distance < 20 && distance > 0) { lidServo.write(90); delay(3000); } else { lidServo.write(0); } delay(100); }

Install Arduino IDE

Download and install the Arduino IDE 2 on your operating system. Follow the steps for your platform.

  1. Visit the official Arduino Software page at arduino.cc/en/software and download the Windows installer (.exe).
  2. Run the downloaded file. The installer requires Windows 10 or newer (64-bit) and may take several minutes.
  3. Follow the on-screen instructions with default settings.
  4. Connect your Arduino board via USB. Windows will automatically install the drivers.
  5. Open the Arduino IDE, go to Tools → Board and select your board (e.g., "Arduino Uno").
  6. Go to Tools → Port and select the COM port that appeared when you plugged in the board.
  1. Download the macOS version of Arduino IDE from arduino.cc/en/software. Requires macOS 10.15 Catalina or newer (64-bit).
  2. Open the downloaded .dmg file and drag the Arduino IDE app into your Applications folder.
  3. Launch the IDE from Applications.
  4. Connect your Arduino board via USB. macOS should recognize it automatically.
  5. In the IDE, go to Tools → Board and select your board model.
  6. Under Tools → Port, select the port (e.g., /dev/cu.usbmodem...).
  1. Download the AppImage (64-bit) from arduino.cc/en/software.
  2. Right-click the AppImage file → Properties → Permissions → check "Allow executing file as program".
  3. Double-click the AppImage to launch. If it fails, install FUSE:
    sudo apt install libfuse2 (Ubuntu ≥ 22.04) or sudo dnf install fuse (Fedora).
  4. To allow serial port access, add this udev rule:
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", GROUP="plugdev", MODE="0666"
    Save as /etc/udev/rules.d/99-arduino.rules and reload: sudo udevadm control --reload-rules.
  5. Connect your board, select it under Tools → Board, and pick the port under Tools → Port.

Upload & Deploy Code

How to compile, upload, and run your code on Arduino boards. Includes ESP32 board manager setup.

  1. Open your .ino sketch in the Arduino IDE. Each project has one main sketch file.
  2. Click the Verify button (checkmark icon) to compile the code. Fix any errors reported in the console.
  3. Ensure the correct Board and Port are selected under the Tools menu.
  4. Click the Upload button (right arrow icon). The IDE compiles and transfers the code to the board.
  5. Wait for the "Done uploading" message. The board will reset and start running your program.
  6. For ESP32: Go to File → Preferences, add this URL to "Additional Boards Manager URLs":
    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
  7. Then go to Tools → Board → Boards Manager, search for "esp32" and install the package. Select your ESP32 board from Tools → Board.
  8. For libraries: Use Sketch → Include Library → Manage Libraries to search and install required libraries (e.g., DHT, Adafruit SSD1306, LiquidCrystal_I2C).