<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:hooking_up_pixy_to_a_raspberry_pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:v2:hooking_up_pixy_to_a_raspberry_pi [2018/05/23 23:00]
pixycam [2.4. Install Pixy Source Code]
wiki:v2:hooking_up_pixy_to_a_raspberry_pi [2018/06/29 03:09]
pixycam
Line 1: Line 1:
  
  
- +====== Hooking up Pixy2 to a Raspberry Pi ======
- +
-====== Hooking up Pixy to a Raspberry Pi ====== +
  
 ====== 1. Introduction ====== ====== 1. Introduction ======
  
-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.+The following procedure outlines the steps required to build the 'get blocks' example on a Raspberry Pi using the Raspberrian ​distribution. The 'get blocks' example is a simple program that demonstrates how to read blocks and send commands to the Pixy2 over USB like PixyMon.
  
 You will need: You will need:
  
-  * SD Card with NOOBS 1.3.9 installed+  * SD Card withinstalled
   * USB Hub with at least three ports   * USB Hub with at least three ports
-  * Pixy updated to latest firmware ​(1.0.2) +  * Pixy2 updated to latest firmware ​
-  * libpixyusb version is 0.3+
  
 NOOBS is available from the Raspberry Pi website here: http://​www.raspberrypi.org/​downloads/​ NOOBS is available from the Raspberry Pi website here: http://​www.raspberrypi.org/​downloads/​
Line 40: Line 36:
  
  
-==== 2.1.3. Connect Keyboard, Mouse, and Pixy to USB hub ====+==== 2.1.3. Connect Keyboard, Mouse, and Pixy2 to USB hub ====
  
-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.+The Raspberry Pi only has two USB ports, so a hub is needed to connect ​Pixy2, a keyboard, and mouse simultaneously. Using the hub, connect your keyboard, mouse, and Pixy2 to the Raspberry Pi.
  
 {{wiki:​img:​0ba4d834c473bc80612ef7d56b16f651885e1359.jpg?​400}} {{wiki:​img:​0ba4d834c473bc80612ef7d56b16f651885e1359.jpg?​400}}
Line 109: Line 105:
  
  
-==== 2.3.2. Install libboost ==== +===== 2.4. Install ​Pixy2 Source Code =====
- +
-In the terminal window type: +
- +
-''​%%sudo apt-get install libboost-all-dev%%''​ +
- +
- +
-==== 2.3.3. Install cmake ==== +
- +
-In the terminal window type: +
- +
-''​%%sudo apt-get install cmake%%''​ +
- +
- +
-===== 2.4. Install ​Pixy Source Code =====+
  
 In the terminal window type: In the terminal window type:
Line 130: Line 112:
  
  
-===== 2.5 Build and install ​libpixyusb ​=====+===== 2.5 Build and install ​libpixyusb2 ​=====
  
  
Line 137: Line 119:
 In the terminal window type: In the terminal window type:
  
-''​%%cd ​pixy/​scripts%%''​\\ +''​%%cd ​pixy2/​scripts%%''​\\ 
-''​%%./​build_libpixyusb.sh%%''​ +''​%%./​build_libpixyusb2.sh%%''​
- +
- +
-==== 2.5.2. Install the library ==== +
- +
-In the terminal window type:+
  
-''​%%sudo ./​install_libpixyusb.sh%%''​ 
  
  
-===== 2.6. Running the 'hello_pixy' example =====+===== 2.6. Running the 'get_blocks' example =====
  
  
Line 155: Line 131:
 In the terminal window type: In the terminal window type:
  
-''​%%./​build_hello_pixy.sh%%''​+''​%%./​build_get_blocks_cpp_demo.sh%%''​
  
  
Line 187: Line 163:
 The example does the following The example does the following
  
-  - Connects to Pixy using USB +  - Connects to Pixy2 using USB 
-  - Displays firmware version installed on Pixy +  - Displays firmware version installed on Pixy2 
-  - Block information is displayed if color signatures have been set and if the signatures are currently being detected by Pixy.+  - Block information is displayed if color signatures have been set and if the signatures are currently being detected by Pixy2.
  
  
wiki/v2/hooking_up_pixy_to_a_raspberry_pi.txt · Last modified: 2018/06/29 23:55 by pixycam