How to Upload Arduino Codes to Arduino Yun Through WiFi

Last updated 7 June 2017

Introduction

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 with the following item :

  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 an advance user and it is better to have some experience of using basic Arduino board like Arduino Uno, Mega or Leonardo.

Conventional way to upload code into Arduino board is by using a USB cable. In this post, I am going to show you how to upload the code into Arduino Yún board by using WiFi.

Hardware Required

Software Required

Arduino IDE

Steps to Upload Arduino Codes to Arduino Yun Through WiFi

  1. Turn on the Arduino Yun, you can use Micro USB Cable or direct battery connection. It is advised to upload YunSerialTerminal (File – Examples – Bridge) first and open up the Serial Monitor to see the progress on the Arduino Yun.

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

XXXXXXXXXXXX = is an identical code for Arduino Yun.

3. Next, open your browser (eg: Chrome) and insert 192.168.240.1 at the address bar. After a few minutes, a web that require to add a password will appear. Fill it up with “arduino” and click button Login.

4. Now, lets do some configuration to connect the Arduino Yun to the existing WiFi network.

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. Change laptop WiFi connection to the same WiFi network as the Arduino Yun. Next, insert the new IP address for Arduino Yun ar the address bar.

Insert new password for the board.

If you are in this step, it mean the new 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!

Buy

, , ,

Related Post

Getting Started with Colour Sensor Module (SN-COLOUR-MOD)

Getting Started with Tilt Sensor (SN-TILT)

Getting Started with Vibration Sensor Module (Normally Off) (SN-VIBRATE-MOD)

Getting Started with IR Distance Click

Leave a Reply

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