<< return to Pixycam.com

About the value of X and Y returned through Arduino

I successfully linked the Pixy with my Arduino Mega. In the serial monitor, there are values of X and Y showing. What does the value represent? What does the coordinate look like? Does it follow the pin-hole camera coordinate?

Thank you very much. This is pretty urgent

Hi Yuchen,

check out the Arduino API here: http://cmucam.org/projects/cmucam5/wiki/Arduino_API

pixy.blocks[i].x The x location of the center of the detected object (0 to 319)
pixy.blocks[i].y The y location of the center of the detected object (0 to 199)

The coordinates are just relative to the image in Pixy’s sensor, there’s no calibration happening.

Cheers,
Jesse