Browse over 10,000 Electronics Projects

Adding Internet connectivity to Arduino boards and apps with the YUN Shield

Adding Internet connectivity to Arduino boards and apps with the YUN Shield

Configuring Yun SHIELD

The Yun shield has both the WiFi module and the Ethernet LAN interface onboard, which can be used either for an internet connection or for system administration. The Yun shield can operate autonomously: just plug it in to have a network access point. For the first test we chose to mount it on an Arduino Uno, connecting the small antenna included in the kit, setting the Dragino HE jumper configuration to accept a 5V supply voltage and powering it by the Arduino Uno DC “barrel” connector. A 7.5V input voltage is recommended.

Fig5

 

At boot time the Yun shield, as default configuration, shows off as an access point with a SSID named “Dragino-xxxxxx”, where “x” stands for the shield MAC address. The first time connection procedure is similar to that required for Arduino Yun. Using a PC with WiFi, connect to the shield WiFi SSID (password not required) then open a browser and type the address 192.168.240.1. This method works perfectly if the PC network card is set to DHCP mode, receiving its address from Yun.

If everything went smooth, the configuration tool LuCI will be open in the browser page (we recommend using HTML5 compliant browsers, like Firefox and Chrome). You can alternatively connect via SSH using tools as Putty, WinSCP or MobaXterm, all instruments whose use has been extensively described in previous posts. Or you can type the shield host name “dragino.local” in browser URL bar: if this does not work, type the shield IP in address as told before (if YUN is our default access point it’s 192.168.240.1). If, instead, we are connected to Yun via a wired network, we must know the IP address assigned by DHCP. 



Advertisement1


Failing that, the system has a pre-configured fallback address, 172.31.255.253 with network mask 255.255.255.252 (pay attention to the final 252). This way you can connect the shield with a network cable, setting on your PC the IP address 172.31.255.253 (always with network mask 255.255.255.252). 

 

Fig6

 

Whichever way we connect, we will open the login page of the configuration tool. You access the configuration tool by entering “dragino” that is the password of the only (default) user, “root”. We get the active network interfaces configuration page. This page tells us that the network interfaces are preconfigured and a web server is already installed with an application that allows you to configure those parameters.

 

Fig7

 

Pages: 1 2 3 4 5 6 7 8 9

 


Top