<< 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 Both sides next revision
wiki:v2:hooking_up_pixy_to_a_raspberry_pi [2018/06/27 22:42]
pixycam
wiki:v2:hooking_up_pixy_to_a_raspberry_pi [2018/06/29 03:09]
pixycam
Line 1: Line 1:
  
  
-====== Hooking up Pixy to a Raspberry Pi ======+====== Hooking up Pixy2 to a Raspberry Pi ======
  
- 
-We're sorry, we're working on releasing the new version of libpixyusb. It is simpler to use, simpler to compile, and it is fully compatible with the Arduino API. Libpixyusb2 will be ready on or before June 29, 2018. 
- 
-[[wiki:​v2:​hooking_up_pixy_to_a_raspberry_pi2|link]] 
- 
-/* 
 ====== 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 43: 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 112: 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 133: Line 112:
  
  
-===== 2.5 Build and install ​libpixyusb ​=====+===== 2.5 Build and install ​libpixyusb2 ​=====
  
  
Line 140: 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: +===== 2.6. Running the 'get_blocks' example =====
- +
-''​%%sudo ./​install_libpixyusb.sh%%''​ +
- +
- +
-===== 2.6. Running the 'hello_pixy' example =====+
  
  
Line 158: Line 131:
 In the terminal window type: In the terminal window type:
  
-''​%%./​build_hello_pixy.sh%%''​+''​%%./​build_get_blocks_cpp_demo.sh%%''​
  
  
Line 190: 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