Open links in new tab
  1. Arduino programs (called sketches) are written in C/C++ using the Arduino IDE. Every sketch has two main functions:

    • setup() – runs once at the start to initialize settings.

    • loop() – runs repeatedly after setup() finishes.

    A very common beginner example is the LED Blink program, which demonstrates digital output control.

    Example: Blink an LED connected to Pin 13

    // The setup function runs once when you press reset or power the board
    void setup() {
    pinMode(13, OUTPUT); // Set digital pin 13 as OUTPUT
    }

    // The loop function runs over and over again forever
    void loop() {
    digitalWrite(13, HIGH); // Turn the LED on
    delay(1000); // Wait for 1 second (1000 ms)
    digitalWrite(13, LOW); // Turn the LED off
    delay(1000); // Wait for 1 second
    }
    Copied!

    How it works:

    1. pinMode(13, OUTPUT) – Configures pin 13 to send signals (control the LED).

    2. digitalWrite(13, HIGH) – Sends a HIGH signal (5V) to turn the LED on.

    3. delay(1000) – Pauses the program for 1000 milliseconds (1 second).

    4. digitalWrite(13, LOW) – Sends a LOW signal (0V) to turn the LED off.

    5. The loop() repeats indefinitely, creating a blinking effect.

  1. 150+ Arduino Tutorials and Projects for Beginners

      1. Soft Starter for 3 Phase Induction Motor using Microcontroller In this project we …
      2. Three Phase Sine Wave Inverter using Arduino In this Arduino tutorial, we will …
      3. Pick and Place Multi-Axis Robotic Arm In this Arduino tutorial we will learn what …
      4. Difference Between Raspberry Pi and Arduino In this Arduino tutorial we will …
      5. Relay Module Interfacing with Arduino In this Arduino tutorial we will learn what …
  2. Arduino Coding Basics - GeeksforGeeks

    Jul 23, 2025 · We have seen how Arduino can be used for programming electronic devices using IDEs and programming languages. We have also learned some …

  3. Arduino Programming Made Easy: Arduino Coding Step …

    Oct 18, 2025 · In this guide, you’ll learn what Arduino programming is, how the Arduino programming language works, and how to write your first program …

  4. Program Examples - The Foundations Resource Hub

    A collection of program examples has been created to help you learn how to use the Arduino board and the components in your project kit. Each example walks through how to control a specific component …

  5. Basic Arduino Programming Tutorials - Circuit Basics

    Learn the basics of Arduino programming with easy to follow tutorials on variables, loops, functions, conditional statements, and more!.

  6. Arduino Tutorials

    You will learn: how sensors/actuators work, how to connect sensors/actuators to Arduino, how to program Arduino step by step. The detail instruction, video tutorial, line-by-line code explanation are …

  7. Arduino Programming Language – A Complete …

    Aug 14, 2025 · A beginner-friendly guide to the Arduino programming language. Learn how to code, use libraries, and develop creative electronics projects.

  8. Getting Started with Arduino

    Sep 26, 2025 · To explore the whole Arduino API, please refer to the Arduino Language Reference, an in-depth wiki maintained by Arduino and its community. …

  9. 12 Arduino Projects for Beginners — With Code

    12 Arduino Projects for Beginners — With Code: Have you ever wanted to learn how to write code for the Arduino board by working on fun Arduino projects, but never …

  10. People also ask
    Loading
    Unable to load answer