<< return to Pixycam.com

help ... code

Hello … I need your help in my project that obtain a certificate of studies.
Material :
Carte arduino uno
Camera sensor Pixy CMUcam5
3 leds ( green,blue,red)
Question:
Can I detect object through the leds (each object has its own illumination)
Exp:
If the camera pixy detect object 1 then Green led is HIGH
If the camera pixy detect object 2 then Red led is HIGH
If the camera pixy detect object 3 then Blue led is HIGH

I tried a lot in the cod hello_world , but I could not succeed .
if (sig==1) {
digitalWrite(led1, HIGH);
}

Thank you !!!

Hello,
The hello_world example for Arduino is a good starting point. :slight_smile:

Here is some more information on the Arduino API:

http://cmucam.org/projects/cmucam5/wiki/Can_I_use_my_LEGO_Pixy_with_Arduino

Hope this helps!

Edward

Here’s the link for the Arduino API, I think the above link is wrong: http://cmucam.org/projects/cmucam5/wiki/Arduino_API