NooTriX

Hands on the Arduino Yún

Hands on the Arduino Yún


The Arduino Yún is a really cool board (checkout Video 1 for an overview). It is a mixture of a plain Arduino board (the Leonardo) and a Linux powered board. And of course those two parts are bridged, so you can easily build applications that interact with their environment (the Leonardo part) and perform some complex computations (the Linux part). And all at a really reasonable price (about $70). In this tutorial, we will get you started with the Yún and we’ll provide you with some tips and tricks that hopefully will help you in your experiments.


Video 1: Introduction to the Arduino Yún by Massimo Banzi and David Cuartielles

Power

First things first, you need to plug the Yún to a power source prior to using it. There are 3 ways to deliver power to the Yún. The first option is simply through USB. This is typically done by connecting the board to a PC our a USB hub via Micro-B USB cable. The second option is through the ethernet plug since the Yún does support Power over Ethernet (PoE). The third solution is to use an external electric power source through the Vin and Ground pins. But then, you need to be careful because the there is no built in 5V regulator. If you power your Yún with more than 5V, you will likely damage it. A simple way to avoid this is to use a 3LR12 lantern battery which delivers 4.5V.

Wifi

Once the Yún is connected to a power source, few seconds are required to Linino to boot. Then, you’ll see a Wifi network with a name starting with “Arduino Yun”. The full name looks like Arduino Yun-XXXXXXXXXXXX, where the Xs are alphanumerical characters. The Yún acts by default as an access point. So, you can connect your computer to the ArduinoYun Wifi and start interacting with the Yún.

You can replace this configuration and make the Yún connect to another Wifi network. This change is very easy likewise most of the setup. All you have to do is to access the configuration web interface using a web browser that opens the http://arduino.local address.

Checking the Connection

Once connected, you can open a terminal and ping the board to check that the Linino is ready by evaluating:

ping arduino.local

The arduino.local refers to your board in the local network. So, if you replace its name (through the configuration web interface) to say myYun, you should be using myYun.local instead of arduino.local. Anyway, if the everything is ok, you should get an answer similar to the following:


PING arduino.local (192.168.240.1): 56 data bytes
64 bytes from 192.168.240.1: icmp_seq=0 ttl=64 time=1.225 ms
64 bytes from 192.168.240.1: icmp_seq=1 ttl=64 time=2.502 ms
64 bytes from 192.168.240.1: icmp_seq=2 ttl=64 time=2.551 ms

Logging into Linino

The Linux carried by the Yún is a distribution based on OpenWRT named Linino (also referred to as OpenWrt-Yún). Logging into Linino can be done as with any Linux through ssh from a terminal of a computer that is on the same network as the Yún. The default user is root. So, to login in you need to type the following command line:

ssh root@arduino.local

The first time you try to connect to your Yun from a computer, the terminal will reply with a message like this :

The authenticity of host 'arduino.local (192.168.240.1)' can't be established.
RSA key fingerprint is c6:4a:45:ab:51:56:17:08:3a:04:54:14:ad:82:f8:fa.
Are you sure you want to continue connecting (yes/no)?

Type yes at this prompt to continue the process. You’ll get a response that says:

Warning: Permanently added 'arduino.local,192.168.240.1' (RSA) to the list of known hosts.

Next, you will get prompted to provide the password. By, default it is arduino. Of course you can change it through the web interface too. Et voilà, you’re in! You will quickly notice that Linino is a stripped down Linux. For example, there is no man by default. So, expect some adjustments depending on your project. Still, you can expand the default setup by installing extra packages using the package manager opkg.

Resetting the Yún

The Yún offers different levels of reset:

  • To reboot the microcontroller (Leonardo part) only, press the 32U4 RST button (see Picture 1).
  • To reboot the linux system only, press the YÚN RST button near the analog input pins.
  • If you want to reset the Wifi and make the Yún revert to its original Wifi setup (i.e. Wifi host spot with SSID Arduino Yun-XXXXXXXXXXXX), press the button labelled WLAN for more than 5 seconds. The WLAN button is located near the host USB connector (the big one). Note that while the WLAN button is pressed the WLAN led will blink in blue.
  • If you did mess up with your board configuration, or you simply need a fresh setup for a new project or experiment you can do a full reset and make the Linino go back to its default state. Press the WLAN button but this time for more than 30 seconds.

yunResetButtons

Picture 1: Reset Buttons of the Yún

Share

Related Articles

0 Comments

No Comments Yet!

There are no comments at the moment, do you want to add one?

Write a comment

Write a Comment

Related Posts

    Computers with Emotions Talk by Peter Robinson

Computers with Emotions Talk by Peter Robinson

1 comment Read Full Article
    Robots can Help Understand Humans Talk by Pierre Yves Oudeyer

Robots can Help Understand Humans Talk by Pierre Yves Oudeyer

0 comment Read Full Article
    Human-Level AI Talk by Murray Shanahan

Human-Level AI Talk by Murray Shanahan

0 comment Read Full Article
    Learn How Make Robots Hear and Localize Sound Sources

Learn How Make Robots Hear and Localize Sound Sources

0 comment Read Full Article
    Fast 3D Printing of Robot Parts

Fast 3D Printing of Robot Parts

0 comment Read Full Article
    How Many Actuators are Needed to Build a Robot?

How Many Actuators are Needed to Build a Robot?

0 comment Read Full Article
    Free Online Course on Developmental Robotics and AI

Free Online Course on Developmental Robotics and AI

0 comment Read Full Article
    Sharing USB Devices over Wifi using Arduino Yún

Sharing USB Devices over Wifi using Arduino Yún

2 comments Read Full Article
    Upgrade the Arduino Yún’s Linux

Upgrade the Arduino Yún’s Linux

4 comments Read Full Article
    ROS Indigo Igloo Preinstalled Virtual Machine

ROS Indigo Igloo Preinstalled Virtual Machine

27 comments Read Full Article
    PiBot: The Raspberry Pi-Based Robot

PiBot: The Raspberry Pi-Based Robot

0 comment Read Full Article
    Hands on the Arduino Yún

Hands on the Arduino Yún

0 comment Read Full Article
    Jimmy the 3D Printed Open Source Humanoid Robot Alternative to Nao

Jimmy the 3D Printed Open Source Humanoid Robot Alternative to Nao

1 comment Read Full Article
    How to Customize Your Turtlebot

How to Customize Your Turtlebot

0 comment Read Full Article
    Virtual Machine with ROS Hydro Medusa Pre-Installed

Virtual Machine with ROS Hydro Medusa Pre-Installed

33 comments Read Full Article
    A Robotic Elevator using Lego & Arduino – Part 4

A Robotic Elevator using Lego & Arduino – Part 4

1 comment Read Full Article
    Intelligent Robots Should Maximize Their Future Options

Intelligent Robots Should Maximize Their Future Options

0 comment Read Full Article
    Super Simple Robots for Weekend Projects

Super Simple Robots for Weekend Projects

0 comment Read Full Article
    A Robotic Elevator using Lego & Arduino – Part 3

A Robotic Elevator using Lego & Arduino – Part 3

0 comment Read Full Article

The Future of Human-Robot Interaction

Read Full Article