Arduino Color Differentiate /with Apds-9960
Intro: 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..:)
STEP 1: 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.
STEP 2: Parts We Will Use;
1 - ARDUINO
2 - SPARKFUN GESTURE AND COLOR SENSOR APDS-9960
3 - 2 pcs SERVO MOTOR
4 - A LED
STEP 3: 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.
STEP 4: Servo 1;
STEP 5: 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.
STEP 6: Test the Colors Tones;
We tested the 3 colors. Red, Green and Blue. You can add other colors.
STEP 7: 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
STEP 8: CODES;
You can get codes from there;
https://drive.google.com/open?id=0B6EUM2JQFzOhb19j...
I expect your comments.
STEP 9: VIDEOS;
You should watch the videos and like them. I love you, I EXPECT YOUR VOTES..:D
3 Comments
kingexcalibur0 5 years ago
My apds 9960 sensor is not initializing.
The pins connection is correct.
I am using an Arduino Uno.
Plz can anyone help..!!
RvT2 7 years ago
superrr!!!
ensarlevent 7 years ago
Thanks my friend.:)