<< return to Pixycam.com

Turn on relay due to signature angle

can the pixy turn on a relay if a tracked object moves left or right from the center of the screen?

Hello,
It would probably be easiest to have an Arduino drive the relay based on some kind of conditon (based on the data that Pixy provides.). Pixy could possibly drive a relay, but it would require that you create your own firmware, which is more challenging.

Hope this helps!

Edward

1 Like

thanks for the quick reply!

Is there documents on the commands it has built in i.e (get angle, get distance ) for arduino?

I’m building a cart that will track a yellow tag on someone’s back and follow them, by turning on and off relays controlling four motors.

Hello,
You should check out these pages:

To get started with Arduino:
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29

The Arduino APIs (this is what you probably want):
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:ccc_api

but these are useful too:
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:general_apihttps://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_api
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:video_api

Hope this helps!

Edward

Hope

1 Like