Arduino Board Overview and Pinout

Arduino Board Overview and Pinout

Arduino Pinout

Arduino Uno Layout

The Arduino Uno is the most popular board. Let's understand its components:

Main Parts

PartDescription
USB PortPower and programming connection
Barrel JackExternal power input (7-12V)
Reset ButtonRestarts the sketch
ATmega328PMain microcontroller chip
LED SocketsBuilt-in LED on pin 13
Power Pins5V, 3.3V, GND
Analog PinsA0-A5 for sensors
Digital PinsD0-D13 for inputs/outputs

Understanding the Pins

Digital Pins (0-13)

Digital pins can read or write two states: HIGH (5V) or LOW (0V).

  • PWM Pins: Pins 3, 5, 6, 9, 10, 11 support PWM (Pulse Width Modulation)
  • Serial Pins: Pin 0 (RX) and 1 (TX) for serial communication
  • SPI Pins: Pin 11 (MOSI), 12 (MISO), 13 (SCK)

Analog Pins (A0-A5)

Analog pins read voltages from 0 to 5V with 10-bit resolution (0-1023 values).

Power Pins

PinVoltageUse
5V5VPower sensors and modules
3.3V3.3VLow-power sensors
GND0VGround reference
Vin7-12VExternal power input

Pin Mapping

digitalWrite(pin, HIGH)  -> Sets pin to 5V
digitalWrite(pin, LOW)   -> Sets pin to 0V
analogRead(pin)          -> Reads 0-1023 (0-5V)
analogWrite(pin, value)  -> PWM output 0-255

Built-in LED

Arduino Uno has a built-in LED connected to pin 13. This is useful for testing without external components.

Onboard Components

  • Power LED: Lights when board has power
  • TX/RX LEDs: Flash during serial communication
  • LED on Pin 13: Programmable LED

Shields and Accessories

Shields are circuit boards that stack on top of Arduino:

ShieldFunction
Ethernet ShieldNetwork connectivity
WiFi ShieldWireless connectivity
Motor ShieldControl DC motors
LCD ShieldDisplay text
Relay ShieldControl high voltage

Connecting Arduino

Via USB

Connect Arduino to your computer using a USB cable (Type-B for Uno, micro-USB for Nano).

Power Options

1. USB: 5V from computer 2. Barrel Jack: 7-12V adapter 3. Vin Pin: 7-12V from circuit

Warning: Never exceed 12V on the barrel jack or Vin pin!

Summary

Understanding the Arduino pinout is essential:

  • Digital pins for on/off signals and PWM
  • Analog pins for reading variable voltages
  • Power pins to supply external components
  • PWM pins for variable output (motors, LEDs)

Next Lesson

In the next lesson, you'll learn how to install the Arduino IDE on Windows.

Quiz - Quiz - Arduino Board Overview

1. How many digital I/O pins does Arduino Uno have?

2. Which pin has a built-in LED on Arduino Uno?

3. What voltage do the 5V and 3.3V pins provide?

4. Which function configures a pin as input or output?

What is Arduino?