24/7 Customer Service (800) 927-7671

Color Recognition/Discrimination Sensor TCS3200D/TCS230D Detector for Arduino

80 % of buyers enjoyed this product!
In stock
Price: US $5.89 Sale Price: US $4.65
45 days Money back
45 days Money back Returns accepted if product not as described, buyer pays return shipping; or keep the product & agree refund with seller.
On-time Delivery
On-time Delivery
Guarantees: On-time Delivery 60 days

Share:

The on-board TCS3200D color sensors
Support 3V-5V voltage input
Chip pins all has drawn for standard 100, put the needle (2.54 mm), mil-convenient for bitmap board
Diameter: 38mm
colour:white
Material:metal
Code:
int s0=3,s1=4,s2=5,s3=6;
int out=2;
int flag=0;
byte counter=0;
byte countR=0,countG=0,countB=0;
void setup()
{
Serial.begin(115200);
pinMode(s0,OUTPUT);
pinMode(s1,OUTPUT);
pinMode(s2,OUTPUT);
pinMode(s3,OUTPUT);
}
void TCS()
{
flag=0;
digitalWrite(s1,HIGH);
digitalWrite(s0,HIGH);
digitalWrite(s2,LOW);
digitalWrite(s3,LOW);
attachInterrupt(0, ISR_INTO, LOW);
timer0_init();
}
void ISR_INTO()
{
counter++;
}
void timer0_init(void)
{
TCCR2A=0x00;
TCCR2B=0x07; //the clock frequency source 1024 points
TCNT2= 100; //10 ms overflow again
TIMSK2 = 0x01; //allow interrupt
}
int i=0;
ISR(TIMER2_OVF_vect)//the timer 2, 10ms interrupt overflow again. Internal overflow interrupt executive function
{
TCNT2=100;
flag++;
if(flag==1)
{
countR=counter;
Serial.print(“red=”);
Serial.println(countR,DEC);
digitalWrite(s2,HIGH);
digitalWrite(s3,HIGH);
}
else if(flag==2)
Package Contents:
1x Smart Color Recognition Sensor TCS3200D Module Detector
Only the above package content, other products are not included.
Note: Light shooting and different displays may cause the color of the item in the picture a little different from the real thing. The measurement allowed error is +/- 1-3cm.

Average Star Rating:
0 out of 5 (0 Ratings)
Name Rating Feedback
Shipping Company Shipping Cost Estimated Delivery Time
DHL 3 - 7 days
UPS Expedited 3 - 7 days
EMS 5 - 14 days
Post Air Mail Free Shipping 15 - 45 days
Return Policy If the product you receive is not as described or low quality, the seller promises that you may return it before order completion (when you click "Confirm Order Received" or exceed confirmation timeframe) and receive a full refund. The return shipping fee will be paid by you. Or, you can choose to keep the product and agree the refund amount directly with the seller.

N.B.: If the seller provides the "Longer Protection" service on this product, you may ask for refund up to 15 days after order completion.
Seller Service On-time DeliveryIf you do not receive your purchase within 60 days, you can ask for a full refund before order completion (when you click "Confirm Order Received" or exceed confirmation timeframe).

Customers Who Bought This Item Also Bought

Price:  US $5.89 / piece
Sale Price:  US $4.65 / piece