Bukit Mertajam, Penang

How to Upload Arduino Codes to Arduino Yun Through WiFi

Last updated 7 June 2017


The Arduino Yún is a microcontroller board based on the ATmega32u4 and the Atheros AR9331. The Atheros processor supports a Linux distribution based on OpenWrt named Linino OS. The board has built-in:

  1. Ethernet and WiFi support.
  2. USB-A port.
  3.  Micro-SD card slot.
  4.  20 digital input/output pins (7 of them can be used as PWM outputs and 12 as analog inputs).
  5.  16 MHz crystal oscillator.
  6.  Micro USB connection.
  7.  ICSP header.
  8.  3 reset buttons.

Arduino Yún is recommended for advanced users as some experience on using basic Arduino boards like Arduino Uno, Mega or Leonardo would be useful.

The conventional way to upload code into Arduino boards is by using a USB cable. But in this post, I am going to show you how to upload code into an Arduino Yún board by using WiFi.

Hardware Required

Software Required

Arduino IDE

Steps to Upload Arduino Codes to Arduino Yun Through WiFi

  1. Power on the Arduino Yun through a Micro USB Cable or a battery. It is advised to upload YunSerialTerminal (File – Examples – Bridge) first and open up the Serial Monitor to see the status of the Arduino Yun.

2. The first time you turn on the Arduino Yun , it will act as an AP (Access Point) with SSID Arduino-Yun-XXXXXXXXXXXX*. Connect your laptop to this network just like any WIFI network.

XXXXXXXXXXXX = is an identical code for Arduino Yun.

3. Next, open your browser (eg: Chrome) and insert at the address bar. The page will load in a few minutes asking for a password. Type in arduino and click Login.

4. Now, lets configure the Arduino Yun to connect to existing WiFi networks.

First page to configure Arduino Yun. Click Next.
First page to configure Arduino Yun. Click Next.

Fill up the name of the board, time zone and password. Click Next.

Select WiFi network and fill in the password for that WiFi. Click Next.

Click Next

Click Save

Please wait while Arduino Yun board is setting up a new configuration.

Click Stay

Type Ifconfig at Arduino Serial Monitor, to check the new IP address for Arduino Yun.

5. Connect your laptop to the same WiFi network as the Arduino Yun. Next, insert the new IP address (copied in the last step) for Arduino Yun into the address bar of your browser.

Insert new password for the board.

If you are at this step, it mean the configuration is successful!

6. Now is the time to upload the Arduino code thru WiFi to Arduino Yun.

ClickTools – Ports and choose Network ports with IP address Arduino Yun.

Click upload icon, if password required, fill it with Arduino Yun board password.

Successfully upload the code!


Related Posts

Leave a comment