I am hoping to use pixies in a robotics competition.
I need to teach pixy four colors before a match without pixymon. I have read some posts in which you suggest telling the pixy to go into teach mode in the code, but I don’t have any idea how to do that. Can you give me a run down of functions or commands that I can use in arduino code to teach pixy and understand what it’s seeing.
We may have a small LCD screen on the bot that could print some info from the pixy.
Hi Corey,
you can easily teach Pixy objects without PixyMon, using the “button teach” method - the white button on Pixy. Check out our wiki page to learn how: http://cmucam.org/projects/cmucam5/wiki/Teach_Pixy_an_Object_2
hi Corey,
i am also facing the same problem, but currently i did it by controlling a relay with arduino.
-
connect two leg’s of pixy’s teach button with N/O and Common terminals of a relay.
-
use any one of the arduino’s digital i/o to hold relay for 2 seconds( to teach singature 1) and hold again for 100 or 200 ms to confirm the signature
Hope this helps!
Ramanathan
Ooooh, nice hack!