I just figured out how to erase the color signatures every time in my case.
Im currently using Arduino Mega, which talks to pixy via I2C bus. SDA and SCL pins on pixy are connected to SDA and SCL pins on mega (20,21)
Pixy gets its power from a 5V source. I am using a 3.7V lipo battery and a pololu step up voltage chip to get my 5V volts. These 5V power Pixy, a current sensor, and Arduino Mega (i run a jumper on VIn on mega).
Step 1) Disconnect 3.7V lipo battery from the source.
Step 2) Use a USB cable to teach Pixy some random colors via PixMon
Step 3) Disconnect USB cable from Pixy
Step 4) Plug in a USB Cable to program/power Arduino MEGA. As soon as this is done, pixy goes trough a complete reset
My 5v power rail is now getting voltage not from the voltage step up chip, but from the VIN pin on the arduino (and this is the only source). Actual voltage on the rail is 3.8V. There are 179mA going in to my circuit from the Vin pin (measured with Fluke multimeter), 165mA of which go in Pixy.
Doing this resets Pixy every single time. Also, (with the pixy USB cable disconnected), PixyMon console starts outputting the following:
Pixy detected.
error: Unable to connect to device.
and this keeps on looping. Attempting to view raw or cooked video results in PixyMon crashing.
Intermediate fix to this problem is to make sure that Pixy is not connected to any other power source while its getting programmed via USB cable, so this is probably a hardware issue
Additional info:
I was trying to get pixy to reset by plugging + and - leads into a power supply and trying to vary voltage and quickly connect/disconnect it from power supply. That didnt seem to trigger any resets. If I had to guess, the issue is caused by either a lack of/ over current going to pixy. I didnt play with the current supply cause I didnt want to fry my pixy.
Also, as soon as I plugged in USB power to arduino MEGA, either BLUE or RED led would light up and stay on Pixy .I had my lens covered.