<< return to Pixycam.com

Pixy and Raspberry Pi

Hi All,

Thought i would create a thread for anything to do with using the Pixy with the Raspberry Pi.
Fee free to add other questions below to keep the info in the one place.

I am using these as my learning into electronics and robotics so i am green. Please be gentle and thorough. Thanks

Anyway,

My problem last night was following the wiki on installing the ‘libpixiusb’ i got the attached error after the command ‘cmake …/pixy/host/libpixyusb’.
Any ideas what that means.

Thanks.

Hi Cee Jay,

It looks like you are missing the Boost library, which is required for compiling libpixyusb. I believe all package managers support installing Boost, so, for example, if you have Ubuntu just run: @sudo apt-get install libboost-all-dev@

“Here”:http://www.boost.org/ is the Boost website, which should have more information to help you with the install.

Please let me know if you have any other questions.

Scott

I have got my Pixy and Raspberry pi working successfully together. I wrote a bit of code to extract the x and y coordinates from the char array buf, using if statements - real mickey mouse but I couldn’t figure out how to get only the x & y coordinates available in int type.

My question:
How do I access the X & Y coordinates of a detected object directly from the pixy via USB?

Background:
My project team and I are making an autonomous foosball table that will play against a human. The only object it will track is the orange foosball and I need it’s coordinates as often as I can get them from the pixy.

Cheers

Hello Cal,
I’m confused. Are you using libpixyusb, or something else?

Edward