Arduino Pin Configuration – Complete Guide 2021
This guide includes the explanation of the pin configuration of Arduino UNO, Mega, Nano, Leonardo, Due and Lilypad.
Hello Guys! I hope you have learned all about Arduino in my previous guide. Before doing any project based on the Arduino board it is very important that you should know the pin configuration of the board. So in order to help you guys, in this blog, I will guide you over the Pin configuration of each Arduino Model. After going through this blog you can do any project of Arduino with ease.
You will learn pin configuration of the following models:
- Arduino Uno(R3)
- Arduino Mega (R3)
- Arduino Nano
- Arduino Leonardo
- Arduino Due
- LilyPad Arduino
- Arduino Micro
- Arduino Pro Mini
Arduino Uno (R3)
As we discussed we know that Arduino Uno is the most standard board available and probably the best choice for a beginner. We can directly connect the board to the computer via a USB Cable which performs the function of supplying the power as well as acting as a serial port.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A5 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins 0 to 13 are used as a digital input or output for the Arduino board.
Serial Pins: These pins are also known as a UART pin. It is used for communication between the Arduino board and a computer or other devices. The transmitter pin number 1 and receiver pin number 0 is used to transmit and receive the data resp.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by pin numbers 2 and 3.
PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 3,5,6,9,10 and 11 are used as a PWM pin.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintain SPI communication with the help of the SPI library. SPI pins include:
- SS: Pin number 10 is used as a Slave Select
- MOSI: Pin number 11 is used as a Master Out Slave In
- MISO: Pin number 12 is used as a Master In Slave Out
- SCK: Pin number 13 is used as a Serial Clock
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference voltage from an external power supply.
Arduino Mega (R3)
The most important thing about this board is that the board has more input-output pins so it is very beneficial for the Advanced Users or the people who want more pins for their projects.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A15 are used as an analog input and it is in the range of 0-5V. The analog pins on this board can be used as a digital Input or Output pins.
Serial pins: It is used for communication between the Arduino board and a computer or other devices.
The TXD and RXD are used to transmit & receive the serial data resp. It includes serial 0, Serial 1, serial 2, Serial 3 as follows:
- Serial 0: It consists of Transmitter pin number 1 and receiver pin number 0
- Serial 1: It consists of Transmitter pin number 18 and receiver pin number 19
- serial 2: It consists of Transmitter pin number 16 and receiver pin number 17
- Serial 3: It consists of Transmitter pin number 14 and receiver pin number 15
External Interrupts pins: This pin of the Arduino board is used to produce the External interrupt and it is done by the pin numbers 0,3,21,20,19,18.
I2C: This pin of the board is used for I2C communication.
- Pin number 20 signifies Serial Data Line (SDA)and it is used for holding the data.
- Pin number 21 signifies Serial Clock Line (SCL) and it is used for offering data synchronization among the devices.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintainSPI communication with the help of the SPI library. SPI pins include:
- MISO: Pin number 50 is used as a Master In Slave Out
- MOSI: Pin number 51 is used as a Master Out Slave In
- SCK: Pin number 52 is used as a Serial Clock
- SS: Pin number 53 is used as a Slave Select
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference voltage from an external power supply.
Arduino Nano
The Arduino Uno and nano are similar, but the only difference is that its size. The UNO size is 2 times the nano size, so the Arduino nano is more breadboard friendly. It is used for portable projects. The board has a mini USB cable slot.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A7 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins D0 to D13 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. The transmitter pin number 1 and receiver pin number 2 is used to transmit and receive the data resp.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by pin numbers 2 and 3.
PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 3,5,6,9,10 and 11 are used as a PWM pin.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintainSPI communication with the help of the SPI library. SPI pins include:
- SS: Pin number 10 is used as a Slave Select
- MOSI: Pin number 11 is used as a Master Out Slave In
- MISO: Pin number 12 is used as a Master In Slave Out
- SCK: Pin number 13 is used as a Serial Clock
I2C: This pin of the board is used for I2C communication.
- Pin A4 signifies Serial Data Line (SDA)and it is used for holding the data.
- Pin A5 signifies Serial Clock Line (SCL) and it is used for offering data synchronization among the devices.
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference voltage from an external power supply.
Arduino Leonardo
The Arduino Leonardo has more number of digital input/ output and analog input pins. The Arduino Leonardo can be powered via the micro USB connection or with an external power supply.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A11 are used as an analog input and it is in the range of 0-5V.
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. The transmitter pin number 1 and receiver pin number 0 is used to transmit and receive the data resp.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by pin numbers 2 and 3.
I2C: This pin of the board is used for I2C communication.
- Pin number 2 signifies Serial Data Line (SDA)and it is used for holding the data.
- Pin number 3 signifies Serial Clock Line (SCL) and it is used for offering data synchronization among the devices.
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference voltage from an external power supply.
Arduino Due
Arduino Due is more preferable when there are many peripherals that need to connect the board. This board has many numbers of PWM and ADC outputs so it can be more beneficial to use the Due board where you will need more PWM and ADC pins. It is the perfect board for powerful larger scale Arduino projects like designing complex systems like CNC or 3D printer.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
IOREF: It stands for Input-Output voltage REFerence. It allows the shields to check the operating voltage of the board.
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A11 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins 0 to 53 are used as a digital input or output for the Arduino board.
PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 2 to 13 are used as PWM pins.
SPI 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. The transmitter pin and receiver pin are used to transmit and receive the data resp.
I2C Communication: This pin of the board is used for I2C communication.
- Serial Data Line (SDA): It is used for holding the data.
- Serial Clock Line (SCL): It is used for offering data synchronization among the devices.
Voltage for ADC: This pin of the Arduino board is used to map the voltage value to the integer value. The voltage from 0 to 5 is mapped into the integer value from 0 to 1023.
Erase Button: This pin of the board is used to erase the Flash Memory of the microcontroller. To erase, on the power of the board press and hold the Erase button for a few seconds.
LilyPad Arduino
Arduino Lilypad is very unique in its shape and applications among the other Arduino boards. This Arduino Lilypad is based on the circular PCB with the wide holes at the corner and is optimized for the e-textiles and wearable projects. The Arduino Lilypad does not have built-in USB to UART converter as it is present in other Arduino modes.
VCC: This pin of the Arduino board is connected to +5V or +3.3V for providing supply to the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A5 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The board contains 14 digital pins that can be used as an input or output.
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. The transmitter and are used to transmit and receive the data resp.
PWM: These pins of the board are used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 9, 10, 15, 16, and 17 are used as PWM pins.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintainSPI communication with the help of the SPI library. SPI pins include:
- SS: Pin number 16 is used as a Slave Select
- MOSI: Pin number 17 is used as a Master Out Slave In
- MISO: Pin number 18 is used as a Master In Slave Out
- SCK: Pin number 19 is used as a Serial Clock
I2C Communication: This pin of the board is used for I2C communication.
- Serial Data Line (SDA): It is used for holding the data.
- Serial Clock Line (SCL): It is used for offering data synchronization among the devices.
Arduino Micro
Arduino Micro is the smallest board in the Arduino Community. The Arduino Micro has more number of analog input pins than the UNO board. It is essentially a shrunk-down version of the Arduino Leonardo
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
5V: This pin of the Arduino board is used as a regulated power supply voltage and it is used to give supply to the board as well as onboard components.
3.3V: This pin of the board is used to provide a supply of 3.3V which is generated from a voltage regulator on the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A11 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins 4, 6, 8, 9, 10, and 12 are used as a digital input or output for the Arduino board.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by pin number 0, 1, 2, and 3.
PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 3, 5, 6, 9, 10, 11, and 13 are used as PWM pins.
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. The transmitter pin number 1 and receiver pin number 0 is used to transmit and receive the data resp.
I2C: This pin of the board is used for I2C communication.
- Pin number 2 signifies Serial Data Line (SDA)and it is used for holding the data.
- Pin number 3 signifies Serial Clock Line (SCL) and it is used for offering data synchronization among the devices.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintainSPI communication with the help of the SPI library. SPI pins include:
- SS: It is used as a Slave Select
- MOSI: It is used as a Master Out Slave In
- MISO: It is used as a Master In Slave Out
- SCK: It is used as a Serial Clock
LED Pin: The board has an inbuilt LED using digital pin-13. The LED glows only when the digital pin becomes high.
AREF Pin: This is an analog reference pin of the Arduino board. It is used to provide a reference voltage from an external power supply.
Arduino Pro Mini
The Arduino Pro mini has the new pin called the RAW pin. The RAW PIN is the input to the on-board regulator. You can connect up to 12V to the RAW pin and VCC will remain at a constant voltage. This Arduino board is preferred by advanced users for greater flexibility and small size.
Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source.
VCC: This pin of the Arduino board is connected to +5V or +3.3V for providing supply to the board
GND: This pin of the board is used to ground the Arduino board.
Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.
Analog Pins: The pins A0 to A7 are used as an analog input and it is in the range of 0-5V.
Digital Pins: The pins 2 to 13 are used as a digital input or output for the Arduino board.
External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by the pin number 4 and 5
PWM Pins: This pin of the board is used to convert the digital signal into an analog by varying the width of the Pulse. The pin numbers 3, 5, 6,9,10, and 12 are used as a PWM pin.
Analog Comparator: Pin number 6 -AIN0 and pin number 7- AIN1 are connected to the internal comparator.
SPI Pins: This is the Serial Peripheral Interface pin, it is used to maintainSPI communication with the help of the SPI library. SPI pins include:
- SS: Pin number 10 is used as a Slave Select
- MISO: Pin number 11 is used as a Master In Slave Out
- MOSI: Pin number 12 is used as a Master Out Slave In
- SCK: Pin number 13 is used as a Serial Clock
I hope you enjoyed reading this article.