Wish List 0

Tcs3200 Color Recognition Sensor Module For Mcu Arduino

Rs. 251.00 Rs. 289.00

  • Brand: https://ams.com/tcs3200
  • Product Code: SEN-COLOR
  • SKU -
  • Availability: In Stock
  • Price in reward points: 2
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
1. The TCS3200 Color Recognition Sensor Module makes use of a remarkable mild sensor allowing you to feel any color through a mixture of Red, Green, and Blue. The module gives all the pins of the TCS3200 on convenient 0.1″ headers – best to be used with PCBs, breadboard or strip-board.

2. Four white LEDs offer plenty of light for the coloration sensor and let you use the module in any ambient mild.

3. The module requires handiest a unmarried deliver voltage among 2.7V and 5.5V – making it compatible with nearly all commonplace micro-controllers, such as PICs, AVRs, ARM, Arduino and extra!
    Features :
             1. High-resolution conversion of light intensity to frequency.
             2. Chip pins all has drawn for standard 100.
             3. Put the needle (2.54 mm).
             4.   Mil-convenient for bitmap board.
             5 . Programmable color and full-scale output frequency.
             6. Communicate directly with a micro-controller.
             7. Low-profile surface mount package.


SPECIFICATIONS:

   Operating Voltage(VDC)   :3 to 5

   Best Detection Range(mm) :100


OVERVIEW:

   -Operating Voltage: 3V-5V

   -High-resolution conversion of light intensity to frequency.

   -Chip pins all has drawn for standard 100.

   -Put the needle (2.54 mm).

   -Mil-convenient for bitmap board.

   -Programmable color and full-scale output frequency.

   -Communicate directly with a micro-controller.

   -Low-profile surface mount package.


PACKAGE INCLUDES:

 1 PCS x Tcs3200 Color Recognition Sensor Module


/* SOURCE CODE TAKEN FROM BELOW LINK

https://create.arduino.cc/projecthub/SurtrTech/color-detection-using-tcs3200-230-84a663


This code works with GY-31 TCS3200 TCS230 color sensor module

 * It select a photodiode set and read its value (Red Set/Blue set/Green set) and displays it on the Serial monitor

 * Refer to www.surtrtech.com for more details

 */


#define s0 8       //Module pins wiring

#define s1 9

#define s2 10

#define s3 11

#define out 12


int data=0;        //This is where we're going to stock our values


void setup() 

{

   pinMode(s0,OUTPUT);    //pin modes

   pinMode(s1,OUTPUT);

   pinMode(s2,OUTPUT);

   pinMode(s3,OUTPUT);

   pinMode(out,INPUT);


   Serial.begin(9600);   //intialize the serial monitor baud rate

   

   digitalWrite(s0,HIGH); //Putting S0/S1 on HIGH/HIGH levels means the output frequency scalling is at 100% (recommended)

   digitalWrite(s1,HIGH); //LOW/LOW is off HIGH/LOW is 20% and LOW/HIGH is  2%

   

}


void loop()                  //Every 2s we select a photodiodes set and read its data

{


   digitalWrite(s2,LOW);        //S2/S3 levels define which set of photodiodes we are using LOW/LOW is for RED LOW/HIGH is for Blue and HIGH/HIGH is for green

   digitalWrite(s3,LOW);

   Serial.print("Red value= "); 

   GetData();                   //Executing GetData function to get the value


   digitalWrite(s2,LOW);

   digitalWrite(s3,HIGH);

   Serial.print("Blue value= ");

   GetData();


   digitalWrite(s2,HIGH);

   digitalWrite(s3,HIGH);

   Serial.print("Green value= ");

   GetData();


   Serial.println();


   delay(2000);

}


void GetData(){

   data=pulseIn(out,LOW);       //here we wait until "out" go LOW, we start measuring the duration and stops when "out" is HIGH again

   Serial.print(data);          //it's a time duration measured, which is related to frequency as the sensor gives a frequency depending on the color

   Serial.print("\t");          //The higher the frequency the lower the duration

   delay(20);

}

15 days

Write a review

Please login or register to review