Professional Documents
Culture Documents
Agenda
Agenda
Introduction
Prerequisites
Working with Eclipse
Conclusion
Introduction
Introduction
Robotic can be very fun and exiting but you
might think that it's very difficult to start!
... YOU ARE WRONG
This course will present you some cheap
devices that you can use.
We will also explain how to configure your
development environment.
Prerequisites
Prerequisites
For this first course, you will need :
Prerequisites
Prepare your Ubuntu
We are going to use Eclipse, our first program
will be in Java.
Open a terminal and run the command:
Intel:~/Downloads$ sudo apt-get install openjdk-7-jdk
Prerequisites
Prepare your Ubuntu
Install libusb by typing the following command
in a terminal.
Intel:~/Downloads$ sudo apt-get install libusb-dev
Prerequisites
Get Eclipse
Download Eclipse for Java Developpers
Prerequisites
Install Phidget drivers
On http://www.phidgets.com go on the Drivers
page and download the drivers for your
Ubuntu version (x86 or x64)
And then
Prerequisites
Install Phidget drivers
In the terminal, retrieve the zip and
uncompress it.
intel:~/Downloads#cp libphidget_2.1.8.20130320.tar.gz ~/Applications
intel:~/Downloads#cd ~/Applications/
intel:~/Applications#tar xvfz libphidget_2.1.8.20130320.tar.gz
intel:~/Applications#cd libphidget-2.1.8.20130320
Prerequisites
Check that it works
On http://www.phidgets.com/docs/OS_-_Linux
download the Phidget Generic C Examples.
Prerequisites
Check that it works
Go in the examples directory:
intel#cd phidget21-c-examples-2.1.8.20130320/
Prerequisites
Check that it works
In the output, you should see a line that
describe your plugged device.
Hello Device Phidget Advanced Servo Controller 8-motor,
Serial Number: 177940
Prerequisites
Add udev rules
Using the command sudo can be complicated
(if you run your application in Eclipse for
example). To get ride of sudo, in the terminal,
type:
intel:~#cd Applications/libphidget-2.1.8.20130320/
intel:~/Applications/libphidget-2.1.8.20130320#sudo cp udev/99-phidgets.rules /etc/
udev/rules.d
[sudo] password for intel:
intel:~/Applications/libphidget-2.1.8.20130320#
Prerequisites
Get the Java Library
Our native library can be called in Java. But
we need to download the jar first. Go on
http://www.phidgets.com/docs/Programming_Resources
Prerequisites
Get the Java Library
Download the jar file:
Conclusion
Conclusion
Installation is easy
As you can see, the installation on Linux is
straight forward.
You only need to install the Phidget drivers to
make it work.
Phidget also provides small test applications
that can help you check your installation.
Conclusion
Using the card is easy
We need few lines of code to command the
servos.
Eclipse make the development easier.
Samples available
The samples that we used in this course are
available on
www.intel-software-academic-program.com .
Notice For any reuse or distribution, you must make clear to others the license terms of this work.
The best way to do this is with a link to this web page.
http://creativecommons.org/licenses/by/3.0/