<< return to Pixycam.com

follow a target

Hello, I’m currently working on a robot that has to follow a target thanks to the pixy camera. I need help we are stuck on the arduino program to track the target. Can you help me with a program in arduino, this program is very important because it is useful for our diploma. Thanks in advance !

Hi Anto,

have you tried using the example code in our Pixy Arduino library? We provide a Pan/Tilt example that should help with this.

Documentation here: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:run_the_pantilt_demo#running-the-demo-from-an-arduino

Cheers,
Jesse

Hello, first of all thank you for your answer, I forgot to mention that we use CMUCam5 camera. We have tested the program that allows to obtain different coordinates of the chosen signature but we are stuck we do not know how to recover these values.
thanks in advance.
(sorry for my expression in English, I’m not :))

OK, please see our Arduino tutorial for original Pixy here: https://docs.pixycam.com/wiki/doku.php?id=wiki:v1:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29

This should help you receive data from Pixy!

Thank you for your answer, I have already done what is on the help page, however we can not manage to process the variables, get them an idea, or other people we can do a similar project ?
Thanks in advance !

I’m sorry, I don’t understand what you’re asking for. It sounds like you are receiving data (like object coordinates) from Pixy, is that correct? Can you say more about what you’re having trouble with?

Hello, so yes I have a camera cmucam thanks to the program arduino provided I can get coordinates , my problem is that I can not integrate these variables to ensure the follow-up of a target through engines on a program arduino so I wanted to ask the community if some people have already done programs like this.
thanks in advance

Hello Anto,
This guide might give you some ideas:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:pixy_zumo_howto

Edward