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.
ColourView.txt1 KB
Remove these ads by
Signing Up









































Visit Our Store »
Go Pro Today »




Have you seen any problems with the red color - due to the spike in sensitivity that the LDR has?
If you are having difficulty with a certain range, you can 'trick' it to perform better by changing your black balance. Might have been a good idea to add a pot for fine tuning without rescanning. Thanks for the compliment. Not much to it, throw one together and play. Cheers.