Introduction to Arduino

M4-R5.1 · Chapter 4: Building IoT applications · 5 min read

Introduction to Arduino

Arduino was a project started at Interaction Design Institute Ivrea (IDII) in Ivrea, Italy, with its primary goal being creating affordable and straightforward tools for non-engineers to use and create digital projects.

  • It is an open-source platform used for building electronics projects.
  • It consists of both a physical programmable circuit board and software (IDE) that runs on your computer, used to write and upload code to the board
  • Embedded C programming plays a key role in making the microcontroller perform desired actions.
  • Everyday devices like mobile phones, washing machines, security systems, and refrigerators are controlled by embedded programs.

Arduino consists of two main components: the Hardware (Arduino Board) and the software. (Arduino IDE) 

We will begin by studying the hardware, which includes different types of Arduino boards, and afterwards we will explore the software, known as the Arduino IDE

 

Arduino UNO R3 — Hardware Overview

The Arduino UNO is based on the ATmega328P microcontroller and is the most widely used Arduino board. It is ideal for beginners and makers.

2.1 Key Specifications

Feature

Specification

Microcontroller

ATmega328P

Operating Voltage

5V

Input Voltage

7-12V (recommended)

Digital I/O Pins

14 (6 PWM outputs)

Analog Input Pins

6 (A0-A5)

Flash Memory

32 KB (0.5 KB bootloader)

SRAM

2 KB

EEPROM

1 KB

Clock Speed

16 MHz

USB Connection

USB Type-B

2.2 Major Components

1. USB Plug/Connector

A printer USB port (USB Type-B) used to upload programs from the Arduino IDE. It also powers the board at 500mA, 5V from a Laptop/PC.

2. Power Supply / External Power

The barrel connector (2.1mm center-positive) accepts an AC-to-DC adapter or battery. The UNO operates at 5V but supports up to 20V input. Recommended input: 6-12V.

3. Voltage Regulator

Converts external input voltage to a regulated 5V supply for the board components.

4. ATmega328P Microcontroller

The brain of the Arduino UNO. It runs the uploaded program, controls I/O pins, and manages communication.

5. Crystal Oscillator (16 MHz)

Provides the clock signal for the microcontroller, determining how fast instructions are executed.

6. Reset Button

Restarts the currently loaded program. Useful for re-running a sketch without re-uploading.

7. ICSP Header

In-Circuit Serial Programming header, used to program the microcontroller directly, bypassing the bootloader.

2.3 Input/Output (I/O) Pins

Power Pins

  • GND — Ground pins (3 available to ground the circuit)
  • 5V — Provides regulated 5V output to components
  • 3.3V — Provides regulated 3.3V output
  • VIN — Input voltage to board when using external power
  • AREF — Analog reference voltage for ADC
  • IOREF — Reference for shields to adapt to the board's voltage

Analog Input Pins (A0-A5)

These 6 pins read analog signals (0-5V) and convert them to digital values (0-1023) using a 10-bit ADC.

Used with sensors like temperature, light, or pressure sensors.

Digital Pins (0-13)

These pins can be used as either INPUT or OUTPUT. When used as OUTPUT, they provide 5V (HIGH) or 0V (LOW).

When used as INPUT, they read external signals.

PWM Pins (~) — Pins 3, 5, 6, 9, 10, 11

Marked with a tilde (~). These digital pins can simulate analog output using Pulse Width Modulation (PWM) with 8-bit resolution (0-255) via the analogWrite() function

 Some Other Types of Arduino Boards

  • Arduino Uno (R3) — Most popular, beginner-friendly
  • Arduino Nano — Compact version of Uno
  • Arduino Micro — Even smaller, USB HID capable
  • Arduino Due — 32-bit ARM processor, 84 MHz
  • Arduino Mega (R3) — 54 digital I/O pins, for large projects
  • Arduino Leonardo — Built-in USB communication
  • LilyPad Arduino — Wearable electronics
  • Arduino Bluetooth — Built-in Bluetooth
  • Arduino Ethernet — Built-in Ethernet
  • Arduino Zero — 32-bit SAMD21 microcontroller

Note - In our Syllabus we only Study about Arduino Uno Board.