help ... code

Added by lotfi hannachi 3 months ago

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 !!!


Replies (2)

RE: help ... code - Added by Edward Getz 3 months ago

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

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

RE: help ... code - Added by Jesse French 3 months ago

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

(1-2/2)