<< return to Pixycam.com

Pixy2 with Raspberry Pi

I am having Pixy2 with firmware version 3.0.11 and Raspberry Pi with Xubuntu 18.04. I need to interface Pixy2 with Raspberry Pi. I am referring this link.
I get the following error while running the Color Identification Example:

robokits@robokits-desktop:~/pixy2/build/get_blocks_cpp_demo$ ./get_blocks_cpp_demo
=============================================================
= PIXY2 Get Blocks Demo                                     =
=============================================================
Connecting to Pixy2...Error
pixy.init() returned -1

Also, I am not able to access output of Pixy2 using PixyMon while referring to this link. The error is:

robokits@robokits-desktop:~/pixy2/build/pixymon$ ./PixyMon
libEGL warning: DRI2: failed to authenticate

There are a few changes that I made using the PixyMon link. For example, there is no folder such as ‘bin’ in pixy2/build/pixymon/.

Hello,
This might be a permissions issue. Try running get_blocks_cpp_demo or pixymon as root.

e.g.

sudo ./get_blocks_cpp_demo

Edward

1 Like

il reste ma donner l’erreur malgré que j’ai utiliser le sudo
sudo ./get_blocks_cpp_demo

= PIXY2 Get Blocks Demo =

Connecting to Pixy2…Error
pixy.init() returned -1

Hello,
I’m not sure what could be causing this. I’m wondering if your Pixy2 is working correctly. Do you have access to a Windows machine that you can install PixyMon onto and see if your Pixy2 is able communicate (render video,etc)?

Edward

it is working in windows normaly

Hello,
What kind of host platform are you using? Is it a Raspberry Pi?

Edward