-
Notifications
You must be signed in to change notification settings - Fork 12
Installing and setting up Arduino with Ros
1. Installing the Arduino IDE
Please note that you only need to complete either a or b, not both.
1a. If you would like to use the older version of Arudino (1.0.5) you can do so by going through the Ubuntu Software Center, or you can do so form the terminal using the command
sudo apt-get install arduino
1b. If you would like to install the newer version(1.6.5) then you can follow these instructions: Start by going to https://www.arduino.cc/en/Main/Software and downloading the latest version from the website, make sure you select the correct version, 32 bit or 64 bit. Once you have downloaded the file, open the terminal next input
cd ~/Downloads
Note, you may need to change this link to the file name you downloaded
tar -xvf arduino-1.6.5-r5-linux64.tar.xz
sudo mv arduino-1.6.5-r5 /opt
Next you will need to install openjdk-7-jre
sudo apt-get install openjdk-7-jre
Now we need to be able to run it with a desktop icon. Navigate into the Arduino folder
cd /opt/arduino-1.6.5-r5/
Then you will need to change the permissions and run the install.sh file
chmod +x install.sh
./install.sh
Congratulations, When you click on the icon from the desktop, it should open into the arduino IDE
2. Setting Arduino up to run with ROS
Follow the instructions at this link to get ROS properly working with Arduino, the only thing you will need to note, is that if using Arduino IDE(1.0.5), the folder created is indeed called sketchbook, however when using Arduino IDE(1.6.5) the folder that was created was called Arduino. This will become necessary later on in the link below.
http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup
Thats it, You should be ready to go
If you receive a permission denied when trying to upload in ubuntu please add your user to the dialout group using the following command:
`sudo usermod -a -G dialout "user"
where user is the name of your user in ubuntu.