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

Programming

The Yun shield, or rather the “shield and Arduino” group is programmed by using the Arduino IDE. First, you need to customize the IDE to have it recognizing and managing the various combinations of modules and shields. 

We have already mentioned that we can download the Arduino Yun IDE from Arduino official site. For our tests, we decided to use the latest version (1.6.3). This release is particularly suitable to be customized through third-party components, making it easy to be used with “compatible” boards and modules. We chose the portable version that requires no installation (.zip file). Just unzip it in a dedicated folder. We create a desktop shortcut to “arduino.exe”. To customize the Arduino IDE we have to download the necessary software from the GitHub repository https://github.com/dragino/modules (where you can download the full .zip library, then unzip it in a folder). Inside the folder, find the “modules-master hardware YunShield sketchbook hardware YunShield” subfolder and copy it to “Arduino_1_6_3 arduino-1.6.3 hardware”. 



Advertisement1


Connect the PC to the shield by using the WiFi connection, as said before. Run the Arduino IDE. In “Tools >> Listing” menu choose the right configuration, “Arduino Uno – Dragino Yun” in our case. 

Fig19

 

 

Then, under “Tools >> Port”, select the TCP / IP connection that shows the right shield IP address.

 

Fig20

 

If you do not see the connection between shield and PC, open an SSH connection with PuTTY and run the command:

/etc/init.d/avahi-daemon restart

Pages: 1 2 3 4 5 6 7 8 9

 


Top