The Arduino UNO is a versatile microcontroller board based on the ATmega328P. It is an open-source platform used for building electronics projects. The UNO board features digital and analog input/output (I/O) pins that can be interfaced with a wide range of sensors, actuators, displays, and other electronic components. It is particularly popular among hobbyists, educators, and prototyping professionals due to its ease of use and extensive community support.
Pin Number | Function | Description |
---|---|---|
1-13 | Digital I/O | Digital pins which can be used as input or output |
14-19 | Analog Input | Analog pins which can be used to read analog voltages |
A0-A5 | Analog Channels | Same as pins 14-19 |
0, 1 | Serial | Rx and Tx for serial communication |
2-13 | PWM | Provide 8-bit PWM output |
3.3V | Power Output | 3.3V supply generated by the onboard regulator |
5V | Power Output | 5V supply used by the microcontroller and I/O pins |
GND | Ground | Common ground for circuits |
AREF | Analog Reference | Reference voltage for the analog inputs |
RESET | Reset | Used to reset the microcontroller |
Powering the Board:
Connecting I/O Devices:
Programming the Board:
// The setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// The loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Remember to keep your code comments concise and within the 80-character line length limit. This example demonstrates a simple program to blink the onboard LED of the Arduino UNO.