<< return to Pixycam.com

Pixy2 communication

Hello,

I’m developing a project which is using Pixy V2(car for line tracking), my question is: can Pixy communicate through USB and SPI at the same time? Because I’m using Rpi to get a frame once at 0.25s and at the same time, it is connected to FRDM KL25Z via SPI, but I notice that when Pixy is not sending frames to Rpi the car is getting the lines correctly. Any solution? Thank you!

Hi, unfortunately the Pixy has limited memory so I believe it’s not possible to run the line tracking program and send frames simultaneously. Please correct me if I’m wrong @edge

Cheers,
Jesse

Hello,

Yes, this will work fine, although the USB communication will slow down the SPI communication and vice-versa.

I’m not sure I understand. Do you want full color frames from Pixy2? Assuming you want color frames, you can use changeProg() to change between video and line tracking programs.

It will really slow things down because of the program switching times, but it will allow you to get color frames and track lines simultaneously.

Hope this helps!

Edward

1 Like