Hello,
I am using the pixy to work as a proximity sensor while using an Arduino as the controller. I want the Arduino to send a signal to a motor once the objects are detected to be in close proximity. Originally i used to colour codes so a block was detected as the items became close and then used the code (when block>1 motor off). However this approach seems to be quite temperamental and now wish to detect item A and item B and then have code that will detect when these are in proximity. What would be the best way to do this? I have attached a picture to show how the objects look.
Any help appreciated,
Thanks.