The Arduino UNO is a versatile and user-friendly microcontroller board based on the ATmega328P microcontroller. It is an integral part of the Arduino platform, which provides an accessible way for hobbyists, artists, and engineers to create interactive projects. With its array of digital and analog I/O pins, the Arduino UNO can interface with a wide range of sensors, actuators, and shields, making it suitable for countless applications from robotics to home automation.
Pin Number | Function | Description |
---|---|---|
0 | RX | Digital pin used for serial communication (RX). |
1 | TX | Digital pin used for serial communication (TX). |
2-13 | Digital I/O | Digital pins for input/output. Pins 3,5,6,9,10,11 are PWM. |
A0-A5 | Analog Input | Analog input pins. |
AREF | Analog Reference | Reference voltage for the analog inputs. |
GND | Ground | Ground pins. |
RST | Reset | Used to reset the microcontroller. |
3V3 | 3.3V Supply | Provides 3.3V output (50 mA max). |
5V | 5V Supply | Provides 5V output (drawn from USB or VIN). |
VIN | Input Voltage | Used to power the board with an external power source. |
Here is a simple example of blinking the onboard LED:
// Define the LED_BUILTIN pin as a constant to improve readability
const int ledPin = LED_BUILTIN;
void setup() {
// Initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
The Arduino UNO is not recognized by the computer:
Sketch not uploading:
Unexpected behavior in circuits:
Can I power the Arduino UNO with a battery?
How do I reset the Arduino UNO?
What is the maximum current the Arduino UNO can supply?
For more detailed troubleshooting, refer to the Arduino forums and the extensive community resources available online.