Teach Pixy an object

Version 3 (Rich LeGrand, 02/17/2014 08:25 pm)

1 1 Rich LeGrand
h1. Teach Pixy an object
2 2 Rich LeGrand
3 2 Rich LeGrand
Teaching Pixy an object is super easy, but first let's talk about which objects will work well with Pixy.  Pixy uses a hue-based color filtering 
4 3 Rich LeGrand
algorithm to detect objects.  Since Pixy uses hue (color), the object needs to have a distinct hue.  Here are some objects that are good because
5 2 Rich LeGrand
they have good, distrinct hues.
6 2 Rich LeGrand
7 2 Rich LeGrand
**
8 2 Rich LeGrand
**
9 2 Rich LeGrand
10 2 Rich LeGrand
Here are some bad objects because either there is no hue (black, white or gray) or the hue is not distinct.  
11 2 Rich LeGrand
12 2 Rich LeGrand
**
13 2 Rich LeGrand
14 2 Rich LeGrand
**
15 2 Rich LeGrand
16 3 Rich LeGrand
Keeping these guidelines in mind, choose an object to teach Pixy.  Apply power to Pixy via battery or USB cable if you haven't already.  When you power up Pixy Hold down the 
17 2 Rich LeGrand
button on top of Pixy.  As you hold the button down, the indicator LED will turn on, first white, then red, 
18 2 Rich LeGrand
then other colors, but when it turns red, release the button.  When you release