Arduino Color Differentiate /with Apds-9960

by ensarlevent in Circuits > Arduino

6775 Views, 27 Favorites, 0 Comments

Arduino Color Differentiate /with Apds-9960

IMG_7264.jpg
Arduino Color Discriminator

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

IMG_7214.JPG
IMG_7215.JPG
IMG_7216.JPG
IMG_7217.JPG

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;

IMG_7220.JPG
IMG_7221.JPG
IMG_7224.JPG
IMG_7225.JPG

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

IMG_7226.JPG
IMG_7227.JPG
IMG_7229.JPG
IMG_7231.JPG
IMG_7232.JPG
apds.jpg

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;

IMG_7233.JPG
IMG_7234.JPG
IMG_7235.JPG
IMG_7236.JPG

Servo 2;

IMG_7237.JPG
IMG_7238.JPG

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;

IMG_7239.JPG
IMG_7240.JPG
IMG_7241.JPG
IMG_7243.JPG
IMG_7244.JPG

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

Near to Final; Connections;

IMG_7245.JPG
IMG_7246.JPG
IMG_7247.JPG

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;

IMG_7260.JPG
IMG_7261.JPG
IMG_7262.JPG
IMG_7263.JPG

You can get codes from there;

https://drive.google.com/open?id=0B6EUM2JQFzOhb19j...

I expect your comments.

VIDEOS;

Arduino Color Discriminator
Arduino Color Discriminator SLOW MOTION

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