Skip to content

Part 2. Installing the Arduino IDE and Libraries

Rachel edited this page Aug 20, 2015 · 3 revisions

Communicating with your Arduino is mostly done through the Arduino IDE. This is how we upload sketches to the board that execute every time the board is powered on. The awesome thing about the Yun is that we can upload sketches without being connected to your computer via USB cable.

Visit the Arduino Software page and find your computer type in the list to the right of the current version of the IDE that is available. Download the zip file and unzip it to install.

Open the IDE with your Yun powered on. Click on Tools and go to Board. Select "Arduino Yun" from the list. Still under Tools, go to Port and select "Arduino at (IP address)" if using the independent power supply, or the "/dev/tty.usbmodem****" that reads "Arduino Yun" after it if using the USB cable.

Now that you have the IDE setup to interact with the Yun, we need to install a library to go with the Grove Ultrasonic ranger.

This particular project only requires you to install one library, but there are all sorts out there that can make your life easier and your code shorter. They are also very easy to install.

This library is called "Grove_Ultrasonic_Ranger". Go here and download the zip by clicking the button in the bottom of the right column. Then go back to the IDE and select Sketch -> Include Library -> Add .ZIP Library....

arduinoideaddlibrary

Select the zip file you just downloaded and then click "Choose". All done!

<< Part 2: Connecting to WiFi - Part 3: Adding a Sensor >>