Arduino Color Differentiate /with Apds-9960
by ensarlevent in Circuits > Arduino
6830 Views, 27 Favorites, 0 Comments
Arduino Color Differentiate /with Apds-9960


Hi Guys.I didn't post any instructable for two days. And today we are doing a excellent project. It will be perfect. PLEASE SHARE MY PROJECTS. FOR MORE PROJECTS. Let's start..:)
First: Cardboards and Computes




We want to this device can discriminate the colorful boxes, like a fabric. For example green boxes send to right, blue boxes send to left and reds to between them.
Parts We Will Use;




1 - ARDUINO
2 - SPARKFUN GESTURE AND COLOR SENSOR APDS-9960
3 - 2 pcs SERVO MOTOR
4 - A LED
SPARKFUN APDS-9960 GESTURE, MOTION AND COLOR SENSOR






This sensor is not very popular. So you can't find very info for this. And you have library for this;
https://github.com/sparkfun/SparkFun_APDS-9960_Sen...
Examples are not enough for me. It's a very hard sensor. This part is head of our project. We use color detection feature.
Servo 1;




Servo 2;


Under this part we will use a servo motor. Its' work is when color is green servo write 180, if blue servo write 90, if red servo write 0.
Test the Colors Tones;





We tested the 3 colors. Red, Green and Blue. You can add other colors.
Near to Final; Connections;



For APDS;
SDA = A4
SCL = A5
GND = GND
VCC = 3.3V
FOR SERVOS;
SERVO1 = 9 (yellow cables to digital pins, browns are gnd and reds 5v)
SERVO2 = 10
FOR LED;
WARNING; YOU MUST USE ONLY WHITE COLOR LED.
Long cable is Vcc
Short cable is Gnd
CODES;




You can get codes from there;
https://drive.google.com/open?id=0B6EUM2JQFzOhb19j...
I expect your comments.
VIDEOS;


You should watch the videos and like them. I love you, I EXPECT YOUR VOTES..:D