Introduction: Arduino Color Differentiate /with Apds-9960

Picture of 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

Picture of 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;

Picture of 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

Picture of 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;

Picture of Servo 1;

Step 5: Servo 2;

Picture of 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;

Picture of Test the Colors Tones;

We tested the 3 colors. Red, Green and Blue. You can add other colors.

Step 7: Near to Final; Connections;

Picture of 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;

Picture of 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

Comments

RvT2 (author)2017-04-14

superrr!!!

ensarlevent (author)RvT22017-04-18

Thanks my friend.:)

About This Instructable

1,831views

23favorites

License:

Bio: BIG THINKS, BIG THINGS! FOLLOW US ON YOUTUBE: https://www.youtube.com/channel/UCODcdPwhBerlNMSHB_ATEow
More by ensarlevent:SMART MINI GREENHOUSEBayern München Spinning WhellTURN ON LIGHTS WITH RFID CARD
Add instructable to: