I am trying to get the motors stop and make a turn as soon as the PIXY sees the color code, but the motors are doing what it is supposed to only after 10 secs of detecting the code. I am using SPI to communicate Arduino with PIXY. Any suggestions? I just have a simple program to make the motors stop and turn as soon as PIXY detects a code. PIXY is detecting the code as soon as it sees it but performing the instruction late.
Hi Sulav,
That sounds a bit odd. Have you tried debugging the Arduino sketch through the serial port in the Arduino IDE? How were you able to confirm that Pixy is detecting the color code right away? Have you had success moving the motors without Pixy attached?
Scott