With just a little bit of code, this 3D tilt sensor becomes a six-way switch to control an RGB LED. Video of that below.
When you need to quantify the color of an object, you’ve got quite a few options. You can throw a Raspberry Pi camera and OpenCV at the problem and approach it through software, or you can buy ...