Pixy2 Quick Links
Basics
Connecting Pixy2 to…
Pixy2 Modes / Programs
Software and Support
Basics
Connecting Pixy2 to…
Pixy2 Modes / Programs
Software and Support
The libpixyusb library provides a software application programming interface (API) for communicating
with Pixy2 over USB. This allows you to write software that interfaces with Pixy2 like the PixyMon application.
The following procedure will outline the steps required for building the libpixyusb library and some example projects using the library. This procedure assumes the following:
The Mint-17 distribution of Linux can be downloaded here: http://www.linuxmint.com
Instructions for updating the Pixy2 firmware are here: Uploading New Firmware
Although this procedure uses Linux Mint-17, it should work with any Linux distribution that uses the Debian package manager (e.g. Ubuntu).
Start the terminal application:
In the terminal window type:
sudo apt-get install git libusb-1.0-0-dev g++
Installing the library files requires root privileges.
In the terminal window type:
sudo ./install_libpixyusb.sh
The example does the following:
To start the libpixyusb example, run 'hello_pixy' as root.
In the terminal window type:
cd /pixy/build/hello_pixy
sudo ./hello_pixy
Block data received from Pixy is displayed in stdout.
This example does the following:
Before starting the tracking demo, make sure you've set color signature '0'. Look here: Teach_Pixy_an_Object_2
In the terminal window type:
/pixy/scripts/build_pantilt_c_demo.sh
To start the pantilt demo, run 'pantilt' as root.
cd ../build/pantilt_in_c
sudo ./pantilt_c
Pixy should track objects that have color signature '0' programmed. If the tracking is not smooth try the following:
Note: If this example freezes, make sure that your version of libusb is at least 1.0.9.
We welcome your thoughts and feedback! Please let us know how we can improve.