<< return to Pixycam.com

receiving more than one object with UART

Helo

My name is Farhan Daemi. I’m a student from Iran. I’m working on a robot which should play soccer with an orange ball. Actually I’m going to participate in Robocup competition in junior soccer open weight league with this robot. I’m using “Pixy cmucam5” with an ATmega 16 micro controller and UART protocol. As the rules of this competition said there is some landmarks around the field and although the robot should detect the ball and catch it, it should detect this land marks and the goals to bring the ball and shout it to the goal. My problem is that I can receive only one object (signature) from pixy and I need to have more than one object. I will appreciate if you help me fix this problem.
here is a video from a match in Robocup 2016.

Best regards
Farhan Daemi

Hello Farhan,
What is the baud rate you are using? For getting more than a couple objects per frame (20ms), your baud rate should ideally be 56 Kbaud or higher. Also UART communication can be challenging because there is no flow control. This means that your processor must always be receiving data, or it might lose the data coming from Pixy (Pixy doesn’t know if the data is being received).

Is there any way you can use I2C or SPI communication? These tend to be easier to use because they have built-in flow control.

Hope this helps!

Edward