The Arduino Yún is a powerful microcontroller board that combines the features of the classic Arduino with the capabilities of a Linux system. Based on the ATmega32U4 microcontroller and the Atheros AR9331 processor, the Yún is designed to support Internet of Things (IoT) projects by providing both Wi-Fi connectivity and Ethernet port. It is an ideal choice for projects that require communication with web services, handling of complex data, or integration with sensors and actuators.
Pin Number | Function | Description |
---|---|---|
1-14 | Digital Pins | Used for digital input/output. PWM available on pins 3, 5, 6, 9, 10, 11, and 13. |
A0-A5 | Analog Inputs | Used for analog input. Can also function as digital I/O. |
RST | Reset | Resets the ATmega32U4 microcontroller. |
3V3 | 3.3V Supply | Provides a 3.3V supply from the AR9331 processor. |
5V | 5V Supply | Provides a 5V supply to the board. |
GND | Ground | Common ground for circuits. |
RX0, TX1 | Serial Comm | Serial communication pins. |
ICSP | In-Circuit Serial Programming | Used for programming the ATmega32U4. |
Powering the Arduino Yún:
Programming the Arduino Yún:
Connecting to a Network:
Interfacing with Sensors and Actuators:
Wi-Fi Connection Problems:
Sketch Upload Failure:
Here's a simple example of how to blink an LED connected to pin 13 on the Arduino Yún:
// Define the LED pin
const int ledPin = 13;
void setup() {
// Initialize the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
// Wait for one second
delay(1000);
// Turn the LED off
digitalWrite(ledPin, LOW);
// Wait for one second
delay(1000);
}
Remember to select the correct board and port in the Arduino IDE before uploading this sketch to the Arduino Yún.
For more advanced usage involving the Linux processor and networking capabilities, refer to the Arduino Yún's extensive documentation and examples provided by the Arduino community.