<< return to Pixycam.com

PixiCam2 rotate to 90 degrees

Hello everyone, I have connected a PixyCam 2 to an ESP32 and it works perfectly.
Is it possible to turn the camera 90 degrees so that the X and Y coordinates remain?

Hello,
Glad you got it working with the ESP32!

You want to tilt Pixy 90 degrees but not have the results (which rely on the x, y coordinates) not tilted 90 degrees?

You could employ a simple transformation the the x, y values. That is if you rotate to the left by 90 degrees:

x’ = -y
y’ = x

Hope this helps!

Edward