<< return to Pixycam.com

Raspberry Pi PixyMon

Anyone have any luck compiling & running PixyMon on a PI3?
I get 'PixyMon: cannot connect to X server ’ when I try to build.

There seems to be no clear answer for this.

Thanks in advance.

Hello Henry,
That sounds like a runtime issue, not a build issue. Do you get this message when you try to run PixyMon? This message is something you would expect to see if you are not running a windowing system (X windows). Are you running from a console of some sort – perhaps through a remote terminal?

Edward

Ya I am using terminal. Would be great if I could use this camera via terminal. Haven’t had any luck with it at all on Pi.

Thanks for the reply.

Got it working in GUI, can’t launch from ssh though. Can Iget data from cam via terminal after I set up in gui?

Hello Henry,
I assume you could get PixyMon connected to a remote X server, but I haven’t tried. Perhaps someone on the forum has (?)

You might try ssh with the -X option. I suspect it will require some permission tweaking and setup though.

Edward

hello,
the first steps seem to be redundant and outdated because a Pi has already 4 USB ports and Jessie is already installed normally, and so it’s to me:

so it actually starts with paragraph
2.3.1. Install libusb

h1. but I have been asking for C/C++ source code examples, just like for Arduino C Sketch code examples:
where are they? What have you been missing?

(BTW, where is a “quote” button for quote tags in the editor?

Thanks for the reply. It was permission issue and I have build thats works. Is the workflow: train pixy with PixMon, control pixy & retrieve data via libusb ? Is it possible to control the servo via ssh ?

Thanks again, for the reply. I appreciate it.

Henry Luther wrote:

Thanks for the reply. It was permission issue and I have build thats works. Is the workflow: train pixy with PixMon, control pixy & retrieve data via libusb ? Is it possible to control the servo via ssh ?

Great! Did you get Pixymon working remotely using ssh -X? If you did, you can control the servo through PixyMon by issuing by issuing servo move commands from the command/status window. Hit the stop button and type in the following commands into the command/status window:

“rcs_setPos 0 0” moves servo 0 to its clockwise limit
“rcs_setPos 0 1000” moves servo 0 to its counter-clockwise limit
“rcs_setPos 1 0” moves servo 0 to its clockwise limit
“rcs_setPos 1 1000” moves servo 0 to its counter-clockwise limit

You can train Pixy with either button teach or through PixyMon. For Raspberry Pi, USB is the recommended communication mode.

Hope this helps!

Edward