<< return to Pixycam.com

Pan/Tilt Not Working

I can teach the Pixy objects but the pan/tilt does not seem to be working. The servos are definitely alive as they are difficult to turn. It teaches ok and when I run the pan/tilt demo from PixyMon it responds with runprog 1, but no hint the servos want to move around. Trying the setpos command to test the servos returned an unsupported command message.

Please help.

Peter

Hello Peter,
You want to select “Run the pantilt demo” in the Action menu. The Default program will not move the servos. There is more information here:
http://cmucam.org/projects/cmucam5/wiki/Run_the_Pantilt_Demo

Regarding setpos, you should use the rcs_setPos command. It is case-sensitive. There is more information here:

http://cmucam.org/projects/cmucam5/wiki/My_pantilt_is_acting_sort_of_crazy

Hope this helps!

Edward

Thanks Edward,

Perhaps I was a bit too brief. I have read the relevant wiki and other pages about the pan/tilt demo and was trying to run the pan/tilt demo from the Action Menu in PixyMon. Whilst there is an occasional twitch from the servos there has been no proper tracking of the object I have taught it.

I was using rcs_setpos 0 1000 and the message was “error:procedure unsupported”. This was after running the pan/tilt demo (>runprog 1 in the command window). I had stopped the program and typed in the command.

Hope this helps and you can diagnose my problem.

Peter

Oops! I’ve just noticed I was not using the correct text for rcs_setPos - that at least now works fine.

Peter

OK I’ve fixed it.

The solution was to not use the Default Program and the Pixy for object teaching but to use PixyMon Signature 1 and the mouse to set the bound for the object to be tracked. Then switching to the Pan/Tilt demo and it locked on very accurately.

Peter