Introduction: 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
Participated in the
Microcontroller Contest 2017
Participated in the
Cardboard Contest 2017