manuals.online logo
Brands
  1. Home
  2. •
  3. Brands
  4. •
  5. Arduino
  6. •
  7. Microcontroller
  8. •
  9. Arduino Yun User manual

Arduino Yun User manual

Other Arduino Microcontroller manuals

Arduino MINI PRO 3.3V User manual

Arduino

Arduino MINI PRO 3.3V User manual

Arduino Portenta H7 Series User manual

Arduino

Arduino Portenta H7 Series User manual

Arduino UNO R4 Minima User manual

Arduino

Arduino UNO R4 Minima User manual

Arduino Arduino Nano User manual

Arduino

Arduino Arduino Nano User manual

Arduino Nano 33 BLE User manual

Arduino

Arduino Nano 33 BLE User manual

Arduino uno Installation and operating instructions

Arduino

Arduino uno Installation and operating instructions

Arduino Nano RP2040 Connect User manual

Arduino

Arduino Nano RP2040 Connect User manual

Arduino Portenta H7 Lite User manual

Arduino

Arduino Portenta H7 Lite User manual

Arduino ABX00032 User manual

Arduino

Arduino ABX00032 User manual

Arduino Portenta H7 Lite User manual

Arduino

Arduino Portenta H7 Lite User manual

Arduino Portenta H7 Lite User manual

Arduino

Arduino Portenta H7 Lite User manual

Arduino nKeyer User manual

Arduino

Arduino nKeyer User manual

Arduino UNO R3 User manual

Arduino

Arduino UNO R3 User manual

Arduino GIGA R1 WiFi User manual

Arduino

Arduino GIGA R1 WiFi User manual

Arduino Nano 33 IoT User manual

Arduino

Arduino Nano 33 IoT User manual

Arduino ABX00047 User manual

Arduino

Arduino ABX00047 User manual

Arduino ABX00031 User manual

Arduino

Arduino ABX00031 User manual

Arduino MEGA 2560 User manual

Arduino

Arduino MEGA 2560 User manual

Popular Microcontroller manuals by other brands

Microsemi IGLOO nano Starter Kit user guide

Microsemi

Microsemi IGLOO nano Starter Kit user guide

GOWIN DK START GW1NSR-LV4CQN48PC7I6 V 1.1 user guide

GOWIN

GOWIN DK START GW1NSR-LV4CQN48PC7I6 V 1.1 user guide

HETRONIC ERGO-S Service manual

HETRONIC

HETRONIC ERGO-S Service manual

Laird BL654PA user guide

Laird

Laird BL654PA user guide

Novatek NT6861 manual

Novatek

Novatek NT6861 manual

Lantronix Intrinsyc Open-Q 865XR SOM user guide

Lantronix

Lantronix Intrinsyc Open-Q 865XR SOM user guide

Nuvoton ISD61S00 ChipCorder Design guide

Nuvoton

Nuvoton ISD61S00 ChipCorder Design guide

STMicrolectronics ST7 Assembler Linker user manual

STMicrolectronics

STMicrolectronics ST7 Assembler Linker user manual

Texas Instruments Chipcon CC2420DK user manual

Texas Instruments

Texas Instruments Chipcon CC2420DK user manual

NEC 78GK0S/K 1+ Series Application note

NEC

NEC 78GK0S/K 1+ Series Application note

Mikroe SEMITECH N-PLC Click Application note

Mikroe

Mikroe SEMITECH N-PLC Click Application note

Intel Agilex user guide

Intel

Intel Agilex user guide

DIGITAL-LOGIC MICROSPACE manual

DIGITAL-LOGIC

DIGITAL-LOGIC MICROSPACE manual

Texas Instruments TMS320F2837 D Series Workshop Guide and Lab Manual

Texas Instruments

Texas Instruments TMS320F2837 D Series Workshop Guide and Lab Manual

CYPRES CY14NVSRAMKIT-001 user guide

CYPRES

CYPRES CY14NVSRAMKIT-001 user guide

Espressif Systems ESP8266EX Programming guide

Espressif Systems

Espressif Systems ESP8266EX Programming guide

Abov AC33M8128L user manual

Abov

Abov AC33M8128L user manual

Silicon Laboratories C8051F800 user guide

Silicon Laboratories

Silicon Laboratories C8051F800 user guide

manuals.online logo
manuals.online logoBrands
  • About & Mission
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Copyright 2025 Manuals.Online. All Rights Reserved.

Guide to the Arduino Yún
The Arduino Yún is an Arduino board unlike any other. While programming it is very similar to
the Arduino Leonardo and uses the same processor, the Atmel ATmega32U4, it also has an
additional processor, an Atheros AR9331, running Linux and the OpenWrt wireless stack.
Programming the 32U4 via USB is identical to the Arduino Leonardo. Once you've configured
the Yún to connect to your WiFi network, you can program the 32U4 via WiFi as well.
To connect the Arduino Yún to your computer, you'll need a Micro-B USB cable. This USB
cable provides power and data to the board. When programming the Yún, you must choose
Arduino Yún from the Tools > Board menu in the Arduino IDE. The Yún is only supported
by Arduino IDE 1.5.4 and later.
Differences from the Arduino Leonardo
Linino
Python
External storage on the Yún
Web services
Resetting the processors (AR9331, WiFi, and 32U4)
Serial re-enumeration on reset.
No reset when you open the serial port.
Installing Drivers for the Yún
oOSX
oWindows
oLinux
Configuring the onboard WiFi
Programming the 32U4 over WiFi
Using the onboard Ethernet
Communicating with Linino via Bridge
The Console
Process
Using Bridge to pass information between processors
Connecting to internet services with Temboo
Spacebrew
Install additional software on Linux
Next Steps
Differences from the Arduino Leonardo
In addition to the 32U4 chip, the Yún has an additional processor, an Atheros AR9331, which
runs a distribution of Linux for embedded systems named Linino, based on OpenWrt. A full
install of Python 2.7 is included as well.
The Yún has a number of different physical characteristics and connectors than the Leonardo.
There is an on-board SD slot, Ethernet jack, and a USB-A Host connector. There is no power
barrel connector on the Yún; it can be powered from the micro-USB connector.
There is no built in 5V regulator. If you power your Yún with more than 5V, you will likely
damage it. If you are not powering the Yún from the micro-USB connection, you can apply
power to the Vin and 5V pins on the board. It is recommended to power the Yún from the USB
connection whenever possible.
The SD, Ethernet, and USB-A connectors are not physically connected to the 32U4 processor,
they are connected to the AR9331.
The Yún's 32U4 functions in the same way as the Leonardo, except you cannot use Serial1. It
is reserved for communication with the AR9331 processor.
The Yún also has a WiFi module built on board, allowing it to connect to a wireless router, or act
as an access point.
The 32u4, WiFi, and AR9331 processors all have their own reset buttons.
There are several status LEDs on the Yún, indicating power, WLAN connection, WAN
connection and USB. Additionally pin 13 is connected to one of the status lights.
Linino
The Yún runs a distribution of Linux called Linino, based on OpenWrt. While it's possible to
configure the system from the command line, there is a web page that allows you to configure
many of the different options available. The interface (called LuCi) gives you access to most any
setting you would need for maintaining the WiFi interface.
Accessing the web interface is described below.
To install additional software on Linino, you need to use the the Linux package manager opkg.
For more information on the manager and some common commands, see the Yún package
manager page.
When interfacing with the Linino system, you have to use a command line, either accessing it
through the Arduino's Bridge library, or via SSH. If you are unfamiliar with the command line,
you may want to read about some basics about it and some of the programs that are frequently
used.
Python
An installation of Python 2.7 is included with Linino, with which you can write applications or
scripts. For more on Python, visit the Python 2.7 documentation pages.
If you're getting started with Python for the first time, there are a number of excellent resources
on-line. "Learn Python the Hard Way" will cover everything you need to know to get up and
running with your own scripts.
External storage on the Yún
You're discouraged from using the Yún's built-in non-volatile memory, because it has a limited
number of writes.
You can use external memory like a microSD card or thumb drive for saving data, or your own
scripts, web pages, etc. For the Yún to access and store information on these drives through the
32U4, they need to have a directory named arduino in the root of the volume.
Web services
Linino uses REST for clients and servers. REST is an acronym for "Representational State
Transfer". It is a software architecture that exposes various parts of the Arduino hardware
through URLs.
By default, the REST API access is password protected. It is possible to change this to access the
services without a password. To change this setting, enter the Yún configuration panel. At the
bottom of the page, you will see toggles for changing the access.
A nice introduction to the concepts behind REST can be found here.
The there are two REST end points recognized by the Yún are:
/arduino
/data
The "/arduino" directory doesn't have anything pre-configured. Anything added to the URL after
the end point is passed from the webserver to the sketch on the 32U4. You can define your APIs
inside the sketch. See the Bridge example to see how this is done to access the pins on the board.
"/data" is used to access to the internal key/value storage. The available calls are:
/put/KEY/VALUE : stores a value inside the storage
/get/KEY : obtains the value of the requested key in JSON
/get : obtains the entire storage list in JSON.
/delete : deletes the internal storage
Resetting the processors (AR9331, WiFi, and 32U4)
To restart the AR9331, which reboots Linino, press the "YÚN RST" reset button that is close to
the analog inputs pins and the LEDs of the board.
To restart the the 32U4 and restart the currently installed Arduino sketch, tap the button next to
the Ethernet port two times.
The reset button for WiFi is located next to the USB-A connector. When you press the button,
the WLAN LED will flash.
If you move to a different network and can no longer wirelessly access the Yún through its web
interface, you can reset the Yún's network configuration by pressing the Wifi reset button for
longer longer than 5 seconds, but less than 30, the AR9331 processor will reboot. The WiFi
configuration will be reset and the Yún will start its own wiFi network Arduino Yún-
XXXXXXXXXXXX. Any other modification/configuration will be retained.
To reset the Linino distribution to its default state, press the WiFi reset button for at least 30
seconds. The board reverts to the original settings as if it had been reflashed or taken out of the
box. Among other things, this removes all installed files and network settings.
Serial re-enumeration on reset.
Since the Yún does not have a dedicated chip to handle serial communication, it means that the
serial port is virtual -- it's a software routine, both on your operating system, and on the board
itself. Just as your computer creates an instance of the serial port driver when you plug in any
Arduino, the 32u4 creates a serial instance whenever it runs its bootloader. The board is an
instance of USB's Connected Device Class (CDC) driver.
This means that every time you reset the 32U4 processor, the USB serial connection will be
broken and re-established. The board will disappear from the list of serial ports, and the list will
re-enumerate. Any program that has an open serial connection to the Yún will lose its
connection. This is in contrast to the Arduino Uno, with which you can reset the main processor
(the ATmega328P) without closing the USB connection (which is maintained by the secondary
ATmega8U2 or ATmega16U2 processor). This difference has implications for driver
installation, uploading, and communication.
No reset when you open the serial port.
The Yún won't restart your sketch when you open a serial port on the computer. That means you
won't see serial data that's already been sent to the computer by the board, including, for
example, most data sent in setup().
This also applies to the Console, described below.
This means that if you're using any Serial or Console print(), println() or write() statements in
setup(), they won't show up when you open the serial monitor or Console connection. To work
around this, you can check to see if the port is open like so:
// stops the program until Serial Monitor is opened
while (!Serial) ;
[Get Code]
or
// stops the program until Console is opened
while (!Console) ;
[Get Code]
Installing Drivers for the Yún
OSX
The first time you plug a Yún into a Mac, the "Keyboard Setup Assistant" will launch.
There's nothing to configure with the Yún; you can close this dialogue by clicking the red
button in the top left of the window.
Wi
n
Win
d


n
dows
d
ows now
c
Downlo
a
Once yo
c
omes with
a
d Arduino
u've read t
h
an installer
IDE 1.5.4
i
h
e license,
a
r
for the ID
E
i
nstaller or
l
a
nd if you a
g
E
and drive
r
l
ater, and d
o
g
ree with it
r
s.
o
uble click
, click the "
the installe
"
I agree" b
u
r icon.
u
tton
By default all available components are selected. These include the IDE, drivers, and
shortcuts
Select the location you wish to install the IDE.
The installer will display its progress as it extracts the files to the proper locations
if you chose to install the drivers, a pop-up window will confirm your selection
When the installer has completed, you can press the "Close" button to finish.
NB: The Yún uses Bonjour services for auto-discovery on a wireless network. This service
is not included with Windows by default. If you do not have Bonjour already installed, you
can download the service from here. Additionally, you should make sure any anti-virus
software is not blocking communication on port 5353.
Linux
There is no need to install drivers for Ubuntu 10.0.4 and later, but make sure port 5353 is not
being blocked by a firewall.
Configuring the onboard WiFi
The Yún has the ability to act as an Access Point, but it can also connect to an existing network.
These instructions walk you through connecting your Yún to a wireless network. The Yún can
connect to unencrypted networks, as well as networks that support WEP, WPA, and WPA2
encryption.
When you first power on the Yún, it will create a WiFi network called ArduinoYun-
XXXXXXXXXXXX. Connect your computer to this network.
Once you've obtained an IP address, open a web browser, and enter http://arduino.local or
192.168.240.1 in the address bar. After a few moments, a web page will appear asking for a
password. Enter "arduino" and click the Log In button.