

The Arduino Yun is a microcontroller board developed by Arduino that combines the functionality of a traditional Arduino board with built-in Wi-Fi capabilities. It is designed to simplify the development of Internet of Things (IoT) applications by integrating a powerful Linux-based system alongside the Arduino microcontroller. This dual-processor architecture allows for seamless communication between the microcontroller and the internet, making it ideal for projects requiring network connectivity.








The Arduino Yun features a combination of an ATmega32U4 microcontroller and an Atheros AR9331 processor running Linux. Below are the key technical details:
| Specification | Value |
|---|---|
| Microcontroller | ATmega32U4 |
| Operating Voltage | 5V |
| Input Voltage (recommended) | 7-12V |
| Input Voltage (limit) | 6-20V |
| Digital I/O Pins | 20 (7 PWM outputs) |
| Analog Input Pins | 12 |
| Flash Memory | 32 KB (ATmega32U4) |
| SRAM | 2.5 KB (ATmega32U4) |
| EEPROM | 1 KB (ATmega32U4) |
| Clock Speed | 16 MHz (ATmega32U4) |
| Linux Processor | Atheros AR9331 |
| Linux OS | OpenWrt-based Linino |
| Wi-Fi | IEEE 802.11b/g/n |
| Ethernet | 10/100 Mbps |
| USB | Type-A USB host |
| MicroSD Card Slot | Yes |
| Pin Name | Description |
|---|---|
| VIN | Input voltage to the board when using an external power source (7-12V). |
| 5V | Regulated 5V output from the board. |
| GND | Ground pins. |
| Digital Pins 0-13 | General-purpose digital I/O pins. |
| PWM Pins | Digital pins 3, 5, 6, 9, 10, 11 support PWM output. |
| Analog Pins A0-A11 | Analog input pins (12-bit resolution). |
| ICSP Header | Used for programming the ATmega32U4 microcontroller. |
| RX/TX | Serial communication pins (0: RX, 1: TX). |
| USB Host | Connect USB devices (e.g., keyboards, storage). |
| Ethernet Port | Connect to wired networks. |
| MicroSD Slot | Expand storage for Linux-based applications. |
The Arduino Yun is versatile and can be used in a variety of projects. Below are the steps to get started and important considerations:
http://arduino.local in your browser.Bridge library to enable communication between the ATmega32U4 and the Linux processor.Below is an example of how to use the Arduino Yun to read a temperature sensor and send the data to a web server:
#include <Bridge.h>
#include <HttpClient.h>
const int sensorPin = A0; // Analog pin connected to the temperature sensor
void setup() {
Bridge.begin(); // Initialize the Bridge library
Serial.begin(9600); // Start serial communication
while (!Serial); // Wait for the serial monitor to open
Serial.println("Arduino Yun Temperature Logger");
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the sensor value
float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage
float temperature = (voltage - 0.5) * 100.0; // Convert to temperature (Celsius)
// Print temperature to the serial monitor
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
// Send temperature data to a web server
HttpClient client;
client.begin("http://example.com/log"); // Replace with your server URL
client.post("temperature=" + String(temperature));
client.end();
delay(5000); // Wait 5 seconds before the next reading
}
The board is not detected by the Arduino IDE:
Wi-Fi connection fails:
Linux processor is unresponsive:
Sketch upload fails:
Can I use the Arduino Yun without Wi-Fi?
Yes, the Yun can function as a standalone microcontroller without using its Wi-Fi capabilities.
What is the maximum storage capacity for the microSD card?
The Arduino Yun supports microSD cards up to 32 GB.
How do I access the Linux terminal?
Use an SSH client (e.g., PuTTY) to connect to the Yun's IP address. The default username is root, and the password is set during the initial configuration.
Can I run Python scripts on the Yun?
Yes, the Linux processor supports Python. You can upload scripts via SSH or the web interface.
This documentation provides a comprehensive guide to using the Arduino Yun effectively. For further assistance, refer to the official Arduino website or community forums.