0% found this document useful (0 votes)
111 views

M3 Arduino Pinout

This document provides an overview of Arduino pinouts. It discusses the different Arduino models and their number of pins. It then describes the various pin types including power pins, GND pins, analog pins, digital pins, and PWM pins. Additional function pins like interrupt, serial, I2C, and SPI pins are also covered. Pinout diagrams are shown for the Arduino Uno and Nano boards as examples.

Uploaded by

Leonardo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views

M3 Arduino Pinout

This document provides an overview of Arduino pinouts. It discusses the different Arduino models and their number of pins. It then describes the various pin types including power pins, GND pins, analog pins, digital pins, and PWM pins. Additional function pins like interrupt, serial, I2C, and SPI pins are also covered. Pinout diagrams are shown for the Arduino Uno and Nano boards as examples.

Uploaded by

Leonardo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Arduino pinout

Diego Sánchez de Rivera


Outline

• Arduino models recap


• Pinout diagram
• Pins
– Power
– GND
– Analog pins
– Digital pins
– PWM
– Additional functions

Arduino pinout Diego Sánchez de Rivera 2


Arduino models recap

• Each Arduino board has different number of pins


used to communicate with external devices

– Uno – Mega
– Nano – Yun
– Leonardo – LilyPad

Arduino pinout Diego Sánchez de Rivera 3


Arduino models recap

• Number of external pins available


Model Digital I/O Digital I/O Analog Inputs Total
with PWM
Uno 14 6 6 20
Mega 54 15 16 70
Nano 14 6 8 22
Yun 14 6 12 20
Leonardo 20 7 12 20
LilyPad 14 6 6 20

Arduino pinout Diego Sánchez de Rivera 4


Pinout diagram

• What is a pinout diagram?


It is a cross-reference between the pins of an electrical
connector and their functions

Arduino pinout Diego Sánchez de Rivera 5


Pinout diagram

Pinout diagrams can


represent:
 The chip
 The whole board

Each board has a different layout

Each board has a different pinout

Arduino pinout Diego Sánchez de Rivera 6


Pinout diagram examples
• You can find pinout diagram for each board, here are some examples

UNO NANO

*www.bq.com

Arduino pinout Diego Sánchez de Rivera 7


Power pins
• Power pins are related to voltage input and output
Power the board and drain current with a selected voltage is possible

• Powering the board • Recommended and max. ratings


– USB connector (They vary between boards, always check datasheet or pinout
diagrams!!!)
– Plug-in socket connector
– Input voltages:
(When available)
• Most Arduinos: 7-12V(rec), 6-20V(max)
– Vin pins (Also accts as – DC current per I/O pins:
external voltage output) • Arduino UNO: 20mA(rec), 40mA(max), 200mA(Total)
– 5V pins (Only regulated • Arduino Mega: 10mA(rec), 20mA(max), 200mA(Total)
power supply) • Arduino Nano: 20mA(rec), 40mA(max), 200mA(Total)

• Reset button: Pressing the push button momentarily to reset the board

Arduino pinout Diego Sánchez de Rivera 8


GND pins
• GND pins are the common ground for all remaining pins
All GND pins are interconnected

*Some boards have multiple GND pins!

Arduino pinout Diego Sánchez de Rivera 9


Analog pins
• Boards offer analog inputs and reference voltage pins

• Analog Ref (AREF) • 5V, 3V


It’s the reference voltage to compare the Acting as outputs, they supply a reference
maximum voltage range in analog pins voltage to others devices

• Analog I/O
– Analog input
Each board has several analog inputs commonly used to read data from analog
devices.
Resolution: 10bit (1024 states)
– Analog output
Only Arduino Due has an DAC chip that allows writing true analog value
Although, creating a simulated analog signal can be performed with PWM.

Arduino pinout Diego Sánchez de Rivera 10


Digital pins
• Digital I/O pins are used to interact with external devices or circuits
User can activate or deactivate each pin to 0V or IOREF
• IOREF • RESET
It is the reference voltage to the high state Driving the maximum voltage to this pin
on the digital pins (usually 3V or 5V) reset the Arduino board

• Digital I/O
– Digital input
In each digital port, user can read the current state of the pin, whether it is in the
LOW state (0V) or HIGH state (IOREF).
– Digital output
As reading, each digital pin can write a specific state to its output, LOW or HIGH.

As a previous step, it is necessary to stablish the function mode of each pin


OUTPUT or INPUT (w/o pull-up)
Arduino pinout Diego Sánchez de Rivera 11
PWM pins
• Some digital pins can enter into PWM mode
PWM, is a technique for getting analog results with digital means. Digital control is used to create a
square wave, a signal switched between HIGH and LOW.

• PWM signal is a digital square wave, where the


frequency is constant, but that fraction of the time
the state is HIGH (the duty cycle) can be varied
between 0 and IOREF.

Frequency: 490Hz (default)


Duty Cycle: 0 – 100%

• It is possible to change the PWM frequency, but affects the


internal timers and disrupts the normal operation of many
functions that rely on time (delay(), millis(), …).

Arduino pinout Diego Sánchez de Rivera 12


Additional function pins
• Special pins on each board allow more specific operations
Serial, I2C, SPI connections and interruption signals are handled with specific pins
in the Arduino board

• Interrupt pins
Arduino has two different kinds of interrupts: “external”, and “pin change”.
Uno and Nano boards has two external INT pins, mapped to pins 2 (INT0) and 3 (INT1).
Others boards offer more than two INT pins.
• Serial ports
Each serial port (noted RX, TX) allows a serial connection with the Arduino.
The number of available serial ports depends with each board.
A special library allows create a virtual serial using two digital pins (SoftwareSerial.c)
Will be explain in
• I2C pins following chapters
SCL and SDA are the only two pins needed to provide I2C communication.
• SPI pins
MISO, MOSI, SCK and SLAVE are the required pins to provide the SPI bus.

Arduino pinout Diego Sánchez de Rivera 13


THANK YOU

Diego Sánchez de Rivera

You might also like