Hi. We are using a Pixy with various flavors of Teensy mcu’s, which cycle much faster than arduino atmega mcu’s. We have noticed that get blocks returns zero unless we put a 20 microsecond delay in our loop function. We assume this is because the Teensy’s calls to the Pixy are faster than the Pixy can handle. We would like to have the smallest delay possible and can use the clock to time the calls to the Pixy. What is the maximum frequency that we can call the get blocks function and can you please provide some detail on what’s going on here? Thanks.
Hello Jonathan,
Pixy will return new object data. If you read faster than 20ms, you will likely get 0 blocks as a result. This thread describes things a little better:
http://cmucam.org/boards/9/topics/5734?r=5758#message-5758
Hope this helps!
Edward