The Arduino Uno, manufactured by ZEEL with the part ID UNO, is a widely recognized and utilized microcontroller board. It is built around the ATmega328P microcontroller and is designed for ease of use and flexibility, making it a staple in the world of electronics for hobbyists, educators, and professionals alike. The Uno is particularly favored for prototyping and DIY electronics projects due to its open-source platform and extensive community support.
Pin Number | Function | Description |
---|---|---|
1-13 | Digital I/O | Digital input/output pins (0-13), PWM on 3,5,6,9,10,11 |
14-19 | Analog Input | Analog input pins (A0-A5) |
20 | RESET | Used to reset the microcontroller |
21-22 | I2C | SDA (data line) and SCL (clock line) for I2C communication |
23-24 | TX/RX | Serial communication (TX1, RX1) |
25 | 3V3 | 3.3V power supply pin |
26 | 5V | 5V power supply pin |
27 | GND | Ground pin |
28 | GND | Ground pin |
29 | Vin | Input voltage to Arduino when using an external power source |
Powering the Board:
Connecting Components:
Programming the Board:
Here is a simple example of blinking the onboard LED connected to pin 13:
// Define the LED pin
const int ledPin = 13;
// The setup function runs once when you press reset or power the board
void setup() {
// Initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
// The loop function runs over and over again forever
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
}
Remember to wrap your code comments to limit line length to 80 characters, as shown above. This ensures readability and maintains a clean, professional appearance in your code documentation.