• sales

    +86-0755-88291180

Arduino uno r3 pin diagram function

The pinout diagram of the Arduino Uno R3 development board contains 14 digital pins, 6 analog inputs, power jack, USB connection and ICSP header. The multiplexing function of the pins provides more different options, such as driving motors, LEDs, reading sensors, etc. The figure below shows the function of Arduino Uno pins.


Power Pin Description

VIN — When the external DC power supply is connected to the power socket, it can supply power to the outside through VIN; it can also directly supply power to UNO through this pin; when VIN has power, it will ignore the power connected from USB or other pins

5V — Power the 5V chip on the UNO via a voltage regulator or 5V from USB

3.3V — 3.3V voltage generated by the voltage regulator, the maximum drive current is 50mA

GND — ground pin

input Output

The Arduino Uno has 14 digital input and output pins that can be controlled using pinMode(), digitalWrite() and digitalRead().

Some of them have special functions, these pins are as follows:

Serial

0 (RX), 1 (TX), used to receive and send serial port data. These two pins are connected to the ATmega16u2 for serial communication with the computer.

External interrupt 2, 3, can input external interrupt signal. There are four trigger modes for interrupts: low level trigger, level change trigger, rising edge trigger, and falling edge trigger.

PWM output: 3, 5, 6, 9, 10, 11, can be used to output 8-bit PWM wave. Corresponding function analogWrite() .

SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK), can be used for SPI communication. It can be manipulated using the official SPI library.

L-LED: 13. An LED is connected to pin 13. When the pin outputs a high level, the LED is turned on, and when the pin outputs a low level, the LED is turned off.

TWI: A4 (SDA), A5 (SCL) and TWI interface, can be used for TWI communication, compatible with I²C communication. It can be manipulated using the officially provided Wire library.

Arduino Uno 6 analog input pins, analog values can be read using analogRead(). Each analog input has 10-bit resolution (ie 1024 different values). By default, the analog input voltage range is 0 to 5V, and other reference voltages can be set using the AREF pin and the analogReference() function.

The relevant pins are as follows:

AREF: Analog input reference voltage input pin.

Reset: Reset the port. Connecting to a low level will reset the Arduino, and when the reset button is pressed, the port will be connected to a low level to reset the Arduino.

Indicator lights (LED) Arduino UNO has 4 LED indicators, the functions are as follows:

ON: Power indicator light. The ON light will light up when the Arduino is powered.

TX: Serial port transmit indicator. The TX light will be on when the USB is connected to the computer and the Arduino is transmitting data to the computer.

RX: serial port receiving indicator light. When the USB is connected to the computer and the Arduino receives data from the computer, the RX light will light up

L: Programmable control indicator light. The LED is connected to pin 13 of the Arduino through a special circuit. When the pin 13 is high or high-impedance, the LED will light up; when it is low, it will not light up. The LED can be controlled to turn on or off by program or external input signal.

Communication

Arduino UNO has a variety of communication interfaces, which can communicate with computers, other Arduinos or other controllers.

ATmega328 provides UART TTL (5V) serial communication, which is located on two pins 0 (RX) and 1 (TX). ATmega16U2 on Uno will simulate a USB serial port on the computer, so that ATmega328 can communicate with the computer. The Arduino IDE provides a serial monitor, which can be used to send and receive simple text data. The RX\TX LEDs on the Uno can indicate the current communication status of the Uno.

The SoftwareSerial library can simulate any digital pin of the Uno as a serial port for serial communication.

The ATmega328 also supports I2C (TWI) and SPI communication. The Wire library that comes with Arduino IDE can be used to drive the I2C bus, and the built-in SPI library can be used for SPI communication.

TAG: Raspberry Pi 5 Audio Card Raspberry Pi 5 Raspberry Pi 5 CR2032 Raspberry Pi 5 Heatsink ESP32 2 inch Capacitive TouchScreen LCD Display ST7789 CST816D 240x320 For Arduino/Raspberry Pi/Pico MPS2280 POE Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280/2242/2230 ESP32 C3 LCD Development Board 1.3 inch Display Screen ST7789 240x240 3D Transparent Refractive Prism Mini TV For Arduino Raspberry Pi 1.3inch IPS LCD display HAT RS232/485/422 To CAN Desktop Workstation electronic Nameplate ESP32-S3 ETH Camera Development Board PoE RJ45 / OV2640 OV5640 Port / W5500 / Micro-SD Compatible With Raspberry Pi Pico Size Raspberry Pi 5 PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE Raspberry Pi 5 DSI User Guide ESP32 S3 Development Board 2.41 inch AMOLED Display 600x450 TouchScreen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Jetson Nano 3G module ESP32 C3 Raspberry Pi screen ESP32 Thermal imaging Modbus POE ETH Relay MQTT User Guide