<< return to Pixycam.com

Using pixy to power plc

So im a total noob.
Im using a pixy and rpi2. The pixy has learned the signature that I need.
What I ultimately want it to do is when it detects a sig, i want to send a high signal from the rpi to a plc that will trigger an actuator. right now im just trying to get an led to light.
would be great to get it running as a bash script, i wrote one to power a led, just want to make the lighting of the led a condition of whether the pixy detects a sig or not

Hello Mohamed,
It you just want a high signal when Pixy detects an object, you can use the analog and digital output. Check out this guide:

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

and look for the sections on “analog and digital output”.

If this isn’t quite what you want, you can use libpixyusb on your raspberry Pi to talk to Pixy. This guide describes how to get up and running:

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

Hope this helps!

Edward