<< return to Pixycam.com

Pixy not responding to setServos()

I can run the pantilt and moveServos demos and the camera responds just fine. However when I try to set the values in my code it responds one out of every 5 times. I have tried adding delays and calling it at different points during the setup and loop but it hasn’t changed anything.

Hello Johannes,
It looks like there is a lot going on in your code. What are you trying to do? Most applications use the getBlocks() call to get information from Pixy.

Are you sure setServos is being called when you think it’s being called? You might try starting with the servo_move example and build on that?

Edward