Linksprite-Yuki

Yún – Wifi connection

Recommended Posts

Starting with this post, you’ll find on my website a tutorial about the new Arduino Yun: I’m going to blog about my experiments with that board and show its features through real examples… today you’ll learn how to connect it to your wifi network!

Yun and wifi

One of the most useful features Arduino Yun has is the ability to connect to wired (Ethernet) or wireless networks without the needing of an external shield.

I decided to supply my Yun using an external micro USB power supply (power supplies for modern cellphones works fine):

yun-wifi0-297x300.jpg

By default, Arduino Yun acts as an access point, broadcasting an unprotected wifi network with Arduino Yun-xx SSID:

yun-wifi.jpg

After having established a connection, your PC obtains an IP address on the network 192.168.240.0/24:

yun-wifi2.jpg

You can reach the administrative interface of Arduino Yun pointing a web browser to the address http://192.168.240.1. The default password is arduino:

yun-wifi3-300x232.jpg

After having logged in, click on configure:

yun-wifi4-300x248.jpg

You can change the board’s name (in the screenshot I chose Yun-Luca), the password, the timezone and connect the Yun to one of the wireless networks it detected:

yun-wifi5-300x206.jpg

After a reboot, the board will be connected to your network!

Upload via wifi

Now you can use a new feature of Arduino Yun: the ability to upload a sketch using the network, without the needing to connect the board to your PC using a USB cable.

Open the IDE (warning: you must download the latest version, at the moment I’m writing 1.5.4r2) and choose Arduino Yun as your board.

The IDE will scan your network searching for Yun boards and, under the port menu, will display your board and its IP address:

yun-wifi6.jpg

You can now compile and upload your sketch as usual… when the upload process will start, you’ll be prompted for the Yun password:

yun-wifi6-2.jpg

SSH terminal

You can also connect to your Yun in text mode, using an SSH client (for example PuTTY per Windows)… in the next posts you’ll discover why this can be useful:

yun-wifi7-300x188.jpg

For more details,please refer to original post

http://www.lucadentella.it/en/2013/11/05/yun-collegamento-alla-rete-wifi/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now