The following procedure outlines the steps required to build the 'hello_pixy' example on a Raspberry Pi using the Raspberrian disribution. The 'hello_pixy' example is a simple program that demonstrates how to read blocks and send commands to the Pixy over USB like PixyMon.
You will need:
NOOBS is available from the Raspberry Pi website here: http://www.raspberrypi.org/downloads/
The Raspberry Pi only has two USB ports, so a hub is needed to connect Pixy, a keyboard, and mouse simultaneously. Using the hub, connect your keyboard, mouse, and Pixy to the Raspberry Pi.
On first boot, NOOBS will display a list of install options for the Raspberry Pi. Select Raspberrian and click the install button.
Click the 'Yes' button to confirm installing.
The installer will begin installing Raspberry Pi system files. This will take some time.
When the installer is finished, click the 'OK' button to restart.
When the Raspberry Pi boots, the configuration menu will be displayed. Select the 'Enable Boot to Desktop/Scratch…' option.
Select 'Desktop log in as user pi at the graphical desktop' and select 'OK'.
Select 'Finish' to exit the configuration menu.
Select 'Okay' to reboot.
In the terminal window type:
sudo apt-get install libusb-1.0-0.dev
In the terminal window type:
sudo apt-get install libboost-all-dev
In the terminal window type:
sudo apt-get install cmake
In the terminal window type:
git clone https://github.com/charmedlabs/pixy.git
In the terminal window type:
cd pixy/scripts
./build_libpixyusb.sh
In the terminal window type:
sudo ./install_libpixyusb.sh
In the terminal window type:
./build_hello_pixy.sh
In the terminal window type:
cd ../build/hello_pixy
sudo ./hello_pixy
The output should look like something below:
Hello Pixy:
Example Version: 0.3
Pixy Firmware Version: 1.0.2
Detecting blocks...
[sig: 1 w: 11 h: 17 x:149 y: 46]
[sig: 1 w: 9 h: 21 x:148 y: 46]
[sig: 1 w: 14 h: 21 x:151 y: 45]
[sig: 1 w: 10 h: 19 x:149 y: 47]
[sig: 1 w: 8 h: 16 x:148 y: 49]
[sig: 1 w: 9 h: 19 x:148 y: 45]
[sig: 1 w: 12 h: 6 x:150 y: 54]
[sig: 1 w: 15 h: 18 x:151 y: 46]
[sig: 1 w: 11 h: 5 x:149 y: 54]
[sig: 1 w: 9 h: 7 x:148 y: 49]
[sig: 1 w: 11 h: 5 x:149 y: 50]
[sig: 1 w: 8 h: 6 x:148 y: 47]
[sig: 1 w: 10 h: 7 x:149 y: 51]
The example does the following