<< return to Pixycam.com

About Pan Tilt ı how can this?


Hi there, I have a pixy 2 camera, I’m using the servo for the pan-tilt feature of the camera, but somehow I had to read the analog value to these servos, I couldn’t do it. I use the sample pan-tilt code as a code, how can I do that?


I’m not understanding your question. I assume you are using an arduino and the ccc_pantilt program.

the angle is sent to the servos on line 73 – the pan angle is the first argument, the tilt angle is the 2nd argument:

pixy.setServos(panLoop.m_command, tiltLoop.m_command);