Step 6: Verify Colours With Processing
Sure it proves the point, but we really need a better way to play with this don`t we.
Have no fear, I have included a small Processing sketch to get you started.
Copy and paste the code in the included text file into a new sketch in Processing. Save it as whatever you like, start up your Arduino, being sure that the Serial Monitor in the Arduino environment is no longer running, and enjoy the color changing light show.
The sketch doesn't do much, it just updates the background with the colour being sent out from the sensor. Make sure that you set the com Port correctly.
In the pictures, you can see me scanning each side of a four coloured juggling ball, and the output on the screen.
I hope that this Instructable has proved interesting to you. If you want to have a look at one of the ways I have used this type of sensor, check out my Magical Chameleon Lamp Instructable.
Support a fellow maker, vote for me often. Share and enjoy.