This short tutorial will show you how to mount a Pixy2 CMUcam to an ActivityBot 360°.
You will need:
Your ActivityBot 360° will be equipped to try out the BlocklyProp, Propeller C, or Spin code examples for the Pixy2 CMUcam.
The Pixy2 CMUcam w/ Cable + Mounting Hardware kit comes with the following parts. Make sure you have everything:
(1) - Pixy2 Camera with ribbon cable (in camera box; #30027)
(1) - Screw, #4-40 x 3/8" panhead (#700-00002)
(4) - Screw, #4-40 x 1/4", panhead (#700-00028)
(4) - Nut, #4-40 (#700-00003)
(1) - Locknut, #4-40, 1/4" (#700-00024)
(10 wires) - Jumper wires, MF, 100 mm (#800-00063)
From your ActivityBot 360° kit you will also need a Parallax screwdriver (#700-00064) or other #1 Philips screwdriver, and the Parallax Combination Wrench (#713-00007) or other #4 hex wrench.
You will be able to adjust the tilt of the Pixy2 camera up or down, depending on the needs of the application. If the camera tilts down on its own, just tighten the screw and locknut connecting the 'L' brackets together.
Now your ActivityBot 360° is ready to run the Pixy2 test code available in BlocklyProp, Propeller C, or Spin language:
Pixy2 CMUcam Demo Code Downloads [3]
The Pixy2 module needs to be trained to recognize the objects you want it to detect when you are running your Propeller program. For guides on how to train your Pixy2 using the PixyMon software, see the official Pixy2 Index at pixycam.com.
Links
[1] https://www.parallax.com/product/32600
[2] https://www.parallax.com/product/30028
[3] https://www.parallax.com/package/pixy2-cmucam-demo-code/
[4] https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:start