I know what you are thinking…. why do M&Ms come in bags of assorted colors when you only like the green ones?
If you are tired of sorting out the green M&Ms by hand and aren’t rich or famous enough to have your assistant do it for you, then you will be glad to hear that we have just added the TCS34725 RGB Color Sensor Module to our product lineup.
The TCS34725 is a highly accurate RGB color and ambient light sensor from AMS that includes maskable interrupts based on color thresholds so it can ping you when a green one goes by.
The module combines the sensor with a logic controllable white LED for illuminating the object to be measured and it comes with the easy to use I2C interface. The module includes logic level shifting on the I2C bus for easy interfacing to both 3.3V and 5V microcontrollers.
So to summarize, you can:
A. Continue to manually pick the green ones out.
B. Get rich or famous enough to pay someone to pick them out for you.
C. Take the logical approach which is:
- Buy this module
- Wire it up to a microcontroller of your choice
- Figure out a feeder system for the M&Ms
- Setup a solenoid ejector to separate the green ones
- Write some software to make it all work together
- Debug, eat some of the M&Ms, debug some more
The correct choice should be fairly obvious. If it’s not, you are probably on the wrong website.
— Ken
Haha this is awesome