Arduino Yun – Arduino on the Cloud Raspberry Pi’s Competitor?

The Arduino is one of our favorite DIY devices, but it’s yet to be the most powerful microcontroller on the market. There are demands on other functionality such as internet interface. The new Arduino Yun provides a solution as it’s a combination of Arduino and Linux with built-in Wi-Fi.

What is the Arduino Yun?

The Arduino Yun is a Linux-powered micro-controller similar to the Arduino Uno, and a possible replacement for a Raspberry Pi in some Arduino systems. The Arduino Yun is the first Linux-based Arduino board. It combines a regular old Ardunio Leonardo, embedded directly on the same board as a Wi-Fi system. The Linux OS is a customized version of OpenWRT which is one of the most used Linux distribution for embedded devices.

I think the name “Yun” is possibly a translation from the Chinese character 云 which means “Cloud”.

What Can the Arduino Yun do?

For a long time, the Arduino engineers have been trying to take the Arduino platform into the cloud. There are Ethernet and WiFi shields available, but it isn’t the a ideal option if you’re processing data scraped from a web page. Also in the past interfacing Arduino to web services has been difficult, as services often use text formats like XML or JSON that require a lot of RAM to parse.

The Arduino Yun is packed with a bunch of improvements over other Arduino devices. With Wi-Fi, you can upload your sketches and programs without ever plugging it into your computer and it’s incredibly easy to connect it to the internet. Likewise, the Arduino sketches you upload can communicate with the Linux command line, so you’ll be able to develop all kinds of crazy projects using both environments.

There’s a USB port for plugging in peripherals, native WiFi support (802.11n, even!), an Ethernet connector, and enough RAM to do all the interesting stuff a small computer connected to the Internet can do.

To make all this web programming easier for Arduino newbies, the YUN also includes a bridge library that allow the Linux-side and the Arduino-side to communicate with each other, and allow you to offload all the RAM-intensive networking onto the Linux machine and allow the Arduino to do the talking with hardware (that’s what the Arduino is best at :-) )

Arduino Yun on vero board

Arduino Yun on Sale and How much?

The Arduino Yun will retail for $69 or €52 a pop (VAT not part of the deal) in the Arduino Store. It combines a garden variety Leonardo board with a WiFi system-on-chip running Limino, giving owners a customizable wireless access point with Ethernet, USB and a microSD slot. Owners of the new Arduino Yun are able to enjoy tinkering with their customized wireless access point with Ethernet, USB and a microSD memory slot.

Features In Detail

The New Arduino Yun Bridge Library – Connects the Two Processors

The Arduino Yun’s bridge library allows communication between the two processors (AR9331 – the Linux system and the ATmega32U4 – the micro processor).

It’s possible to install and run your own applications using the bridge. The ATmega32U4 can be programmed from the AR9331 by uploading a sketch through the Arduino Yun’s Wi-Fi interface. When connected to the same Wi-Fi network, the board will appear under the ‘port’ menu of the arduino IDE. the sketch will be transferred to the AR9331, and the linux distribution will program the ATmega32U4 through the SPI bus, emulating an AVR ISP programmer.

Internet Connectivity Interface

The Arduino Yun has two separate network interfaces, one for cable (10/100 mbit/s fast ethernet port) and one WIFI(IEEE 802.11 b/g/n standard compliant 2.4ghz Wi-Fi interface). the WiFi interface can also be setup as an access point (AKA WiFi hotspot). In access point mode any WIFI enabled device can connect directly to the network created by the Arduino Yun. However a Arduino Yun can’t connect to the internet while it’s setup as an access point, but it could act as a hub for a group of Wi-Fi enabled sensors.

To help people develop applications that can connect to popular web services, the Arduino has partnered with Temboo, a service that simplifies accessing hundreds of the web’s most popular APis. The Temboo library comes with the Arduino Yun would allow connections to a large variety of online tools easily including Google Plus, Facebookand Twitter.

Power Source For Arduino Yun

The Arduino Yun can be powered by a micro-usb cable, the Vin pin, or the optional power over Ethernet (POE) module. When powering from the Vin pin a 5VDC Voltage is required just like any other Arduino board. But be aware there is no on-board voltage regulator for higher voltages unlike other Arduino boards.

Linux OS Running on the Arduino Yun

The Arduino Yun runs a customized version of the OpenWRT called ‘linino’. The Linux image has a full python installation and package manager you can use to install additional software. The AR9331 has 64 MB of DDR2 RAM which provides the resources to perform tasks like running a web server or streaming video from a webcam. You can also expand the storage memory by adding a micro-SD card or a USB flash drive.

Product Specification 

microcontroller:    ATmega32u4
operating voltage:    5v
input voltage:    5v via microUSB or PoE 802.3af
digital I/O pins:    14
PWM channels:    7
analog input channels:    6 (plus 6 multiplexed on 6 digital pins)
DC current per i/o pin:    40 mA
DC current for 3.3v pin:    50 mA
flash memory:    32 KB (ATmega32u4) of which 4 KB used by bootloader
SRAM:    2.5 KB (ATmega32u4)
EEPROM:    1 KB (ATmega32u4)
clock speed:    16 mhz
processor:    MIPS 24k operating at up to 400 mhz
memory:    DDR2 64mb ram and 16 mb spi flash
AP or router:    complete IEEE 802.11bgn 1×1
host/device:    USB 2.0
microSD:    poe compatible 802.3af card support

Conclusion

You can find out more about the Arduino Yun from the official blog.

Here is an Arduino Yun Introduction Video by the team, showing you how to connect to the internet and interact with the Micro-processor.

One thought on “Arduino Yun – Arduino on the Cloud Raspberry Pi’s Competitor?

  1. sorokin

    Once this is done, you can go directly to the board using the Arduino IDE instead of selecting the serial port adapter IP.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you Robot? *

I don't look at blog comments very often (maybe once or twice a week), so if you have any questions related to multirotor please post it on this forum IntoFPV.com... You're likely to get a response from me faster on there.