Pixymon is working nicely, as shown in the following capture.
As 1 group is detected, I stopped Pixymon and tried to collect the same result with hello pixy.
I modified a few the program to get more infos. No group is detected, as printed on the serial monitor inside arduino dev env.
I have carefully read and reread the Troubleshooting Guide : http://www.cmucam.org/projects/cmucam5/wiki/My_Arduino_isn't_receiving_data_from_Pixy
So every thing seems ok and I failed to get infos from Pixy on my arduino UNO.
Is there more simple tests to perform ? For example, a simple program that sends one ‘A’ char per seconde from pixy board to arduino ?
I put down the code, the capture from Pixymon and the capture from the result in the arduino serial monitor.
(Pixymon is off when arduino serial monitor is running)
Thx in advance
/////////////////////////////////////////////////////////
#include #include Pixy pixy; void setup() { Serial.begin(9600); Serial.print("Starting...\n"); pixy.init(); } void loop() { static int i = 1; int j; static int k = 1; uint16_t blocks; char buf[32]; blocks = pixy.getBlocks(); if ((i%6000)==0) { i = 1; sprintf(buf, "Detected %d %d:\n", k, blocks); k++; Serial.print(buf); } i++; }
////////////////////////////////////////////////////////////////////