The Full Arduino Uno Pinout Guide [including diagram] (2024)

Arduino Uno Pinout Guide

In our last two posts, we focused on the software aspects of the Arduino. We saw thatArduino boards are programmed using a language derived from C and C++ in Arduino'sIntegrated Development Environment (IDE) and learned a few basic debugging methods. In this post, we'll be taking a closer look at the Arduino hardware, and more specifically, the Arduino Uno pinout. Arduino Uno is based on the ATmega328 by Atmel. The Arduino Uno pinout consists of 14 digital pins, 6 analog inputs, a power jack, USB connection and ICSP header. The versatility of the pinout provides many different options such as driving motors, LEDs, reading sensors and more. In this post, we’ll go over the capabilities of the Arduino Uno pinout.

Start Your Arduino Circuit

Arduino Uno Pinout - Diagram

The Full Arduino Uno Pinout Guide [including diagram] (1)

Pinout of ARDUINO Board and ATMega328PU” bypighixxxis licensed underCreative CommonsAttribution-Share Alike 4.0 International

Arduino Uno pinout - Power Supply

There are 3 ways to power the Arduino Uno:

  • Barrel Jack- The Barrel jack, or DC Power Jack can be used to power your Arduino board. The barrel jack is usually connected to a wall adapter. The board can be powered by 5-20 volts but the manufacturer recommends to keep it between 7-12 volts. Above 12 volts, the regulators might overheat, and below 7 volts, might not suffice.
  • VIN Pin- This pin is used to power the Arduino Uno board using an external power source. The voltage should be within the range mentioned above.
  • USB cable - when connected to the computer, provides 5 volts at 500mA.

The Full Arduino Uno Pinout Guide [including diagram] (2)

There is a polarity protection diode connecting between the positive of the barrel jack to the VIN pin, rated at 1 Ampere.

The power source you use determines the power you have available for your circuit. For instance, powering the circuit using the USB limits you to 500mA. Take into consideration that this is also used for powering the MCU, its peripherals, the on-board regulators, and the components connected to it. When powering your circuit through the barrel jack or VIN, the maximum capacity available is determined by the 5 and 3.3 volts regulators on-board the Arduino.

  • 5v and 3v3

They provide regulated 5 and 3.3v to power external components according to manufacturer specifications.

  • GND

In the Arduino Uno pinout, you can find 5 GND pins, which are all interconnected.

The GND pins are used to close the electrical circuit and provide a common logic reference level throughout your circuit. Always make sure that all GNDs (of the Arduino, peripherals and components) are connected to one another and have a common ground.

  • RESET- resets the Arduino
  • IOREF - This pin is the input/output reference. It provides the voltage reference with which the microcontroller operates.

Arduino Uno Pinout - Analog IN

The Arduino Uno has 6 analog pins, which utilize ADC (Analog to Digital converter).

These pins serve as analog inputs but can also function as digital inputs or digital outputs.

The Full Arduino Uno Pinout Guide [including diagram] (3)

Analog to Digital Conversion

ADC stands for Analog to Digital Converter. ADC is an electronic circuit used to convert analog signals into digital signals. This digital representation of analog signals allows the processor (which is a digital device) to measure the analog signal and use it through its operation.

Arduino Pins A0-A5 are capable of reading analog voltages. On Arduino the ADC has 10-bit resolution, meaning it can represent analog voltage by 1,024 digital levels. The ADC converts voltage into bits which the microprocessor can understand.

One common example of an ADC is Voice over IP (VoIP). Every smartphone has a microphone that converts sound waves (voice) into analog voltage. This goes through the device’s ADC, gets converted into digital data, which is transmitted to the receiving side over the internet.

Arduino Uno Pinout - Digital Pins

Pins 0-13 of the Arduino Uno serve as digital input/output pins.

Pin 13 of the Arduino Uno is connected to the built-in LED.

In the Arduino Uno -pins 3,5,6,9,10,11 have PWM capability.

It’s important to note that:

● Each pin can provide/sink up to 40 mA max. But the recommended current is 20 mA.

● The absolute max currentprovided (or sank) from all pins together is 200mA

The Full Arduino Uno Pinout Guide [including diagram] (4)

What does digital mean?

Digital is a way of representing voltage in 1 bit: either 0 or 1. Digital pins on the Arduino are pins designed to be configured as inputs or outputs according to the needs of the user. Digital pins are either on or off. When ON they are in a HIGH voltage state of 5V and when OFF they are in a LOW voltage state of 0V.

On the Arduino, When the digital pins are configured as output, they are set to 0 or 5 volts.

When the digital pins are configured as input, the voltage is supplied from an external device. This voltage can vary between 0-5 volts which is converted into digital representation (0 or 1). To determine this, there are 2 thresholds:

● Below 0.8v - considered as 0.

● Above 2v - considered as 1.

When connecting a component to a digital pin, make sure that the logic levels match. If the voltage is in between the thresholds, the returning value will be undefined.

What is PWM?

In general, Pulse Width Modulation (PWM) is a modulationtechnique used to encode a messageinto a pulsing signal. A PWM is comprised of two key components: frequency and duty cycle. The PWM frequency dictates how long it takes to complete a single cycle (period) and how quickly the signal fluctuates from high to low. The duty cycle determines how long a signal stays high out of the total period. Duty cycle is represented in percentage.

In Arduino, the PWM enabled pins produce a constant frequency of ~ 500Hz, while the duty cycle changes according to the parameters set by the user. See the following illustration:

The Full Arduino Uno Pinout Guide [including diagram] (5)

PWM signals are used for speed control of DC motors, dimming LEDs and more.

Communication Protocols

Serial (TTL) - Digital pins 0 and 1 are the serial pins of the Arduino Uno.

They are used by the onboard USB module.

What is Serial Communication?

Serial communication is used to exchange data between the Arduino board and another serial device such as computers, displays, sensors and more. Each Arduino board has at least one serial port. Serial communication occurs on digital pins 0 (RX) and 1 (TX) as well as via USB. Arduino supports serial communication through digital pins with the SoftwareSerial Library as well. This allows the user to connect multiple serial-enabled devices and leave the main serial port available for the USB.

Software serial and hardware serial- Most microcontrollers have hardware designed to communicate with other serial devices. Software serial ports use a pin-change interrupt system to communicate. There is a built-in library for Software Serial communication. Software serial is used by the processor to simulate extra serial ports. The only drawback with software serial is that it requires more processing and cannot support the same high speeds as hardware serial.

SPI - SS/SCK/MISO/MOSI pins are the dedicated pins for SPI communication. They can be found on digital pins 10-13 of the Arduino Uno and on the ICSP headers.

What is SPI?

Serial Peripheral Interface (SPI) is a serial data protocol used by microcontrollers to communicate with one or more external devices in a bus like connection. The SPI can also be used to connect 2 microcontrollers. On the SPI bus, there is always one device that is denoted as a Master device and all the rest as Slaves. In most cases, the microcontroller is the Master device. The SS (Slave Select) pin determines which device the Master is currently communicating with.

SPI enabled devices always have the following pins:

  • MISO (Master In Slave Out) - A line for sending data to the Master device
  • MOSI (Master Out Slave In) - The Master line for sending data to peripheral devices
  • SCK (Serial Clock) - A clock signal generated by the Master device to synchronize data transmission.

I2C - SCL/SDA pins are the dedicated pins for I2C communication. On the Arduino Uno they are found on Analog pins A4 and A5.

What is I2C?

I2C is a communication protocol commonly referred to as the “I2C bus”. The I2C protocol was designed to enable communication between components on a single circuit board. With I2C there are 2 wires referred to as SCL and SDA.

  • SCL is the clock line which is designed to synchronize data transfers.
  • SDA is the line used to transmit data.

Each device on the I2C bus has a unique address, up to 255 devices can be connected on the same bus.

Aref - Reference voltage for the analog inputs.

Interrupt - INT0 and INT1. Arduino Uno has two external interrupt pins.

External Interrupt -An external interrupt is a system interrupt that occurs when outside interference is present. Interference can come from the user or other hardware devices in the network. Common uses for these interrupts in Arduino are reading the frequency a square wave generated by encoders or waking up the processor upon an external event.

Arduino has two forms of interrupt:

  • External
  • Pin Change

There are two external interrupt pins on the ATmega168/328 called INT0 and INT1. both INT0 and INT1 are mapped to pins 2 and 3. In contrast, Pin Change interrupts can be activated on any of the pins.

Arduino Uno Pinout - ICSP Header

ICSP stands for In-Circuit Serial Programming. The name originated from In-System Programming headers (ISP). Manufacturers like Atmel who work with Arduino have developed their own in-circuit serial programming headers. These pins enable the user to program the Arduino boards’ firmware. There are six ICSP pins available on the Arduino board that can be hooked to a programmer device via a programming cable.

The Full Arduino Uno Pinout Guide [including diagram] (6)

Know your Pinout

The Arduino Uno Microcontroller is one of the most versatile boards on the market today and that’s why we decided to focus on it in this guide. This guide displays most of its capabilities, but there are also more advanced options which we did not go into in this post.

The important thing to know when you choose a board for your project is its capabilities and limitations. It’s also important to understand the different communication protocols that the board uses. Of course, you don’t need to remember all of this information, you can always go back to this post and read the relevant information for you (this is a good time to bookmark this post btw).

Start Your Arduino Circuit

If you have any comments or questions, you are welcome to write them below and of course, feel free to share this post with your Arduino-loving friends

=D

The Full Arduino Uno Pinout Guide [including diagram] (2024)

FAQs

What are all the pins on an Arduino Uno? ›

Arduino Uno Pinout
Pin CategoryRepresentation
Power Pins of Arduino Uno5V, RESET, 3.3V, GND (3), Vin, AREF, IOREF
Digital Pins of Arduino Uno0 to 13
PWM Pins of Arduino Uno (Digital pins)11,10, 9, 6, 5, 3
Analog Pins of Arduino UnoA0 to A5 (A5 for SCL and A4 for SDA)
2 more rows

What are the 14 digital pins in Arduino? ›

The 14 digital input/output pins can be used as input or output pins by using pinMode(), digitalRead() and digitalWrite() functions in arduino programming. Each pin operate at 5V and can provide or receive a maximum of 40mA current, and has an internal pull-up resistor of 20-50 KOhms which are disconnected by default.

What are the pinout numbers for Arduino? ›

Digital Pins: The pins 4, 6, 8, 9, 10, and 12 are used as a digital input or output for the Arduino board. Serial Pins: This pin is also known as a UART pin. It is used for communication between the Arduino board and a computer or other devices.

What are the parts of Arduino Uno and its function? ›

The Arduino UNO board has six analog input pins A0 through A5. These pins can read the signal from an analog sensor like the humidity sensor or temperature sensor and convert it into a digital value that can be read by the microprocessor. Each Arduino board has its own microcontroller (11).

What are the 3 main pin sections on the Arduino board? ›

Pins (5V, 3.3V, GND, Analog, Digital, PWM, AREF)
  • GND (3): Short for 'Ground'. ...
  • 5V (4) & 3.3V (5): As you might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin supplies 3.3 volts of power. ...
  • Analog (6): The area of pins under the 'Analog In' label (A0 through A5 on the UNO) are Analog In pins.

What voltage is Arduino pin? ›

Each of the 14 digital pins on the UNO can be used as an input or output, using pinMode(),digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive 20 mA as recommended operating condition and has an internal pull-up resistor (disconnected by default) of 20-50k ohm.

How many analog pins does Arduino Uno have? ›

Each of the 14 digital pins and 6 analog pins on the Uno can be used as an input or output, under software control (using pinMode(), digitalWrite(), and digitalRead() functions). They operate at 5 volts.

Why is pin 13 special Arduino? ›

It is pin SCK used for SPI communication. This pin is connected with a built-in LED, when pin 13 is HIGH – the LED is on, and when pin 13 is LOW, it is off.

Is Arduino 10 bit or 8 bit? ›

Most Arduino boards consist of an Atmel 8-bit AVR microcontroller (ATmega8, ATmega168, ATmega328, ATmega1280, or ATmega2560) with varying amounts of flash memory, pins, and features.

What is Arduino Mega 2560 pin? ›

The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button.

How are pinouts numbered? ›

Pins are numbered (counted) from the bottom of the row to the top, then picked up at the bottom of the next row. For male headers, start on the left and for female headers, start on the right. For headers attached to ribbon cables, the pins are numbered linearly across the cable.

What is a pinout? ›

A pinout is a reference to the pins or contacts that connect an electrical device or connector. It describes the functions of transmitted signals and the circuit input/output (I/O) requirements. Each individual pin in a chip, connector or singular wire is defined in text, a table or a diagram.

What is Arduino explain its all parts? ›

The Arduino UNO board has 6 analog input pins, labeled “Analog 0 to 5.” These pins can read the signal from an analog sensor like a temperature sensor and convert it into a digital value so that the system understands. These pins just measure voltage and not the current because they have very high internal resistance.

How many functions are there in Arduino? ›

There are two required functions in an Arduino sketch, setup() and loop(). Other functions must be created outside the brackets of those two functions.

What are the main UNO structures? ›

The main bodies of the United Nations are the General Assembly, the Security Council, the Economic and Social Council, the Trusteeship Council, the International Court of Justice, and the UN Secretariat. All were established under the UN Charter when the Organization was founded in 1945.

What are the two main types of Arduino pins? ›

There are three main types of Arduino pins: digital pins, analog pins and power pins. Digital pins can be used as both input and output pins on most Arduino microcontrollers. This means that a single pin can both send and receive digital data.

How many inputs can an Arduino have? ›

It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button.

Is Arduino 5V AC or DC? ›

Arduino boards can operate satisfactorily on power that is available from the USB port. It provides 5V DC voltage and can be sourced from the port from a PC, wall socket adapter or portable power bank.

Can I power Arduino with 12V battery? ›

"The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts."

Can Arduino run on 3 volts? ›

All official Arduinos run on 5 volts, which for a long time was the 'standard' voltage for hobbyist electronics and microcontrollers. But now the coolest new sensors, displays and chips are 3.3V and are not 5V compatible. For example, XBee radios, and SD cards and acellerometers all run on 3.3V logic and power.

Is Arduino a C++ or Python? ›

The Arduino language (based on Wiring) is implemented in C/C++, and therefore has some differences from the Processing language, which is based on Java.

Is Arduino 32 or 64 bit? ›

The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. It is the first Arduino board based on a 32-bit ARM core microcontroller.

What language is Arduino code? ›

What language is Arduino? Arduino code is written in C++ with an addition of special methods and functions, which we'll mention later on. C++ is a human-readable programming language. When you create a 'sketch' (the name given to Arduino code files), it is processed and compiled to machine language.

What is Arduino Uno full form? ›

"Uno" means one in Italian and was chosen to mark the release of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE) were the reference versions of Arduino, now evolved to newer releases.

What voltage is Arduino Uno? ›

You can power the Arduino board via the USB connector or via the DC power jack. The power jack is 2.1mm center powered. You can use between 6V and 20V DC to power the board. It is recommended that you should not go below 7V to allow for the voltage drop across the power regulator.

How many analog pins does Arduino board have list all of them? ›

Analog Input with Arduino

Arduino can take analog inputs from any analog device or source then convert them into digital signals using a 10-bit Analog to Digital converter. Arduino has a total of 14 input output pins, out of which 6 pins from A0 to A5 are analog pins.

What does 1024 mean in Arduino? ›

The Arduino has a 10-bit ADC (2^10 = 1024). We store this value into an int because x is bigger (10 bits) than what a byte can hold (8 bits). Let's print this value to watch it as it changes: Copy Code Serial.

What do pins 0 and 1 do on Arduino? ›

Pins 0 and 1 are used by the USB port to upload your sketch. After the sketch is loaded, you can use them as digital pin. Just call them 0 and 1. You can power your Arduino from USB if you don't draw more than what your computer can supply (around 500ma).

Can a pin be both input and output? ›

Each I/O pin is both an input and an output and can be used as both at the same time. Input pins are used to read the outside world and output pins are used to control the outside world.

Is Arduino a C or Python? ›

Arduino is an open-source platform that uses a programming language based on C++, which makes it easy to use for beginners and professionals.

Does Arduino use C or Python? ›

Arduino uses its own programming language, which is similar to C++. However, it's possible to use Arduino with Python or another high-level programming language. In fact, platforms like Arduino work well with Python, especially for applications that require integration with sensors and other physical devices.

Is Arduino C or C++ or C#? ›

C/C++ is the only language for programming an Arduino.

Is Arduino Mega same as Arduino Uno? ›

Arduino boards use SRAM (Static Random-Access Memory). The Mega 2560 has the most SRAM space with 8 kB, which is 4x more than the Uno, and 3.2x more than the Micro. With more SRAM space, the Arduino has more space to create and manipulate variables when it runs.

Can I use Arduino UNO instead of Mega? ›

Since Uno is smaller in size, it helps to make easy and compact projects in the system than Mega. All the codes written for Uno will work with Mega due to the less number of pins and the pins availability in Mega. But the code written for Mega will not work in Uno because all the pins are not available in Uno as Mega.

What is the difference between Arduino Uno and Arduino Mega? ›

Arduino Mega uses Atmega 2560 and Arduino Uno uses Atmega 328P. Arduino Uno is a microcontroller board based on the ATmega328 which has 14 digital input/output pins. 6 of them (D3, D5, D6, D9, D10, and D11) can be used as PWM outputs and 6 analog inputs, one serial communication line (D0, D1).

What are the different types of pinouts? ›

Phone pinouts come in two varieties, straight and reverse. Straight cables are used to send data, like a fax machine, while reverse cables are used for voice, like a telephone. On a straight cable, the wires will connect to the same metal pins on either side of the cable.

What are the most common pin numbers? ›

By the way, the most common four-digit PINs according to the study are: 1234, 0000, 2580, 1111 and 5555 (scroll down for a longer list) – 2580 is there because it is a vertical column on a numeric keypad.

What are the different types of pin connectors? ›

  • Barrel, Bullet Connectors.
  • Housing, Boots.
  • PC Pin Receptacles, Socket Connectors.
  • PC Pin, Single Post Connectors.
  • Quick Connects, Quick Disconnect Connectors.
  • Rectangular Connectors.
  • Ring Connectors.
  • Screw Connectors.

What are pins 0 and 1 Arduino? ›

Digital pin 0 and digital pin 1 of Arduino, are the first two digital input-output pins provided by almost every Arduino boards. These two digital pins are used by the USB port for uploading your sketch to the Arduino board.

What are pins and ports in Arduino? ›

Ports are groups of pins. In the arduino, pins 0-7 are controlled by port D and pins 8-13 are controlled by port B. I arbitrarily chose port D as my port. All 5 LEDs should now be blinking merrily away.

What are digital pin 0 and pin 1 on Arduino board specifically used for? ›

Digital IO pins 0 and 1 are used as Serial RX and TX pins to receive and transmit serial data. These pins are connected to the serial pins of the on-board USB to Serial Converter IC. Analog Input Pins A4 and A5 have alternative functions.

How many types of pins are there? ›

A large variety of types has been known for a long time; the most commonly used are solid cylindrical pins, solid tapered pins, groove pins, slotted spring pins and spirally coiled spring pins.

What are the 12 ports? ›

What are the 13 major ports of India?
  • Chennai- Tamil Nadu.
  • Kochi- Kerala.
  • Ennore-Tamil Nadu.
  • Kolkata-West Bengal.
  • Kandla-Gujarat.
  • Mangalore-Karnataka.
  • Mormugao-Goa.
  • Mumbai Port Trust-Maharashtra.

What are Arduino connectors called? ›

The most commonly seen pin headers are 0.1" (2.54mm) single or double row connectors. This is a standard breadboard compatible pitch. These come in male and female versions, and are the connectors used to connect Arduino boards and shields together. Users can easily connect jumper wires to breadboards.

Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6760

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.