<< return to Pixycam.com

Pixy Camera Color detection with sound

Hey guys, I got my pixy camera CMUcam5 last week and ever since I have been playing around with it. So now I would like to make a project. What im trying to do is get the pixy to detect an object, using pixy mon, when it detects the object i would like it to identify the object using sound. So far what i have done is use a Arduino Uno and made a SD card WAV music player for the sound part. I have made the sound files for the object, which is a Red LED i might add and got the micro controller to play the WAV file, but i cannot seem to use the pixy camera to correlate with my WAV file sketch. Any ideas what i could do here? I dont know where to begin. So far the pixy camera works and ive been playing around with the “Hello World” example, tried a few custom sketches but no dice. Another problem when i connect my pixy cam to arduino is the WAV sketch stops playing all sound. Im pretty sure it should be easy because all i have to do is get each signature to play a WAV file, im guessing you’d use something like “pixy.blocks[i].signature;” and in void loop something like " if (signature == 1); tmrpcm.play(Red.wav);" .Any help would be appreciated.

Also im using the ISCP port on the arduino with the wire provided in the Cam

Hello Randeep,
I’m not familiar with playing wav files on the Arduino. Does the API have a simple call to play the wav file?

Can you post the code you are playing with?

Edward