GY-31/GY-33 TCS34725 TCS3200 TCS230 Detector Module Color Recognition Sensor

GY-31/GY-33 TCS34725 TCS3200 TCS230 Detector Module Color Recognition Sensor

Black PCB
$34.74
Sale price  $34.74 Regular price  $0.00
Skip to product information
GY-31/GY-33 TCS34725 TCS3200 TCS230 Detector Module Color Recognition Sensor
GY-31/GY-33 TCS34725 TCS3200 TCS230 Detector Module Color Recognition Sensor
$34.74
Sale price  $34.74 Regular price  $0.00
Color
Description

SPECIFICATIONS

Brand Name: NONE

Choice: yes

High-concerned chemical: none

Origin: Mainland China

is_customized: Yes

semi_Choice: yes

Yancolor transfersensorprinciple

TCS230Using an 8-pin SOIC surface-mount package, 64 photodiodes are integrated on a single chip. These diodes are divided into four types. 16 of the photodiodes are equipped withRed filter16 photodiodes withgreen filter16 photodiodes withBlue filterThe remaining 16 do not have any filters, which can transmit all the light information. These photodiodes are cross-arranged in the chip, which can minimize the inhomogeneity of incident ray radiation, thereby increasing the degree of color recognition; On the other hand, the 16 photodiodes of the same color are connected in parallel and evenly distributed in the diode array, which can eliminate the position error of the color. When working, the required filter is dynamically selected through two programmable pins. The typical output frequency of this sensor ranges from 2 Hz to 500 kHz, and the user can also choose from two programmable pins, a 20% or 2% output scaling factor, or a power-off mode. The output scaling factor allows the output of the sensor to adapt to different measurement ranges, improving its adaptability. For example, when using a low-speed frequency counter, a small calibration value can be selected to match the output frequency of the TCS230 to the counter.

Product introduction:

1, using the original imported chip TCS3200 PCB board with gold plating process
2, TCS3200 is an upgraded version of TCS230, which works better
3, power supply 3-5v
4, anti-light interference
5, white LED, can control the light, off.
6, can detect the color of non-luminous objects

7, PCB size: (L) 33mm * (W) 25mm

Shipping List:

As shown in the figure below, there is 1 color sensor module.


The simple test procedure is as follows:

#include

#define uchar   unsigned char

#define uint    unsigned int

sbit    S0=P1^0;  //S0,S1To set the duty cycle of the output

sbit    S1=P1^1;

sbit    S2=P1^3;  //S2,S3To set the lighting mode

sbit    S3=P1^4;

sbit    OE=P1^2; //enable



void RS232_init()

{

  TMOD=0X20;    //Timer 1 works in mode 1

  SCON=0x50;

  PCON=0X80;   //

  TH1=TL1=0XFF;//22.1184MCrystal oscillator, baud rate set to 115200

  TR1=1;

  TI=0;

  RI=0;


}

void send_char(uchar a) //send data

{

    SBUF=a;

    while(TI==0);

    TI=0;

}

uchar get_char()   //receive data

{

    while(RI==0);

    RI=0;

return SBUF;

}


uint color_display(uchar m)

{

       uint time,a;

       a=m;

       TMOD=0x61; //Counter 1, Timer 0 work in 16-bit mode

       TH0=TL0=0; //Counting from zero, timing

       TH1=TL1=0;

       S0=1;

       S1=1;

       S2=m&0x01;

S3=m&0x02;

       OE=0;

       TR0=TR1=1;

       while(TL1<250);

       TR1=TR0=0;

       OE=1;

       time=TH0*256+TL0;

       return(time);


}


void main()

{

    uint temp;

    RS232_init();

    OE=1;

    while(1)

    {


        temp=color_display(get_char());

        RS232_init();

        send_char(temp/1000);     

        send_char(temp%1000/100); 

        send_char(temp%100/10);

        send_char(temp%10);


    }


}

Select the channel of the color type through the serial port, and then determine the different colors because different colors correspond to different times (the same count value).



Free Shipping Over $199
  • Standard Shipping: Standard Shipping (12–18 Business Days)
  • Express Shipping: Expedited Shipping (5–9 Business Days)
  • Free Shipping: Orders over $199 qualify automatically
  • Tracking: Full tracking number provided for all orders
30-Day Return Policy
  • Returns: 30-day hassle-free return window
  • Condition: Items must be unused and in original packaging
  • Refund: Full refund processed within 3-5 business days
Why Choose Us?
  • Factory Direct: ISO/TS 16949 certified manufacturer
  • Quality: 100% electrical continuity tested before shipment
  • Experience: 15+ years in automotive connector industry
  • Support: Professional technical support available
Secure Payment Latest encryption technology
Money-Back Guarantee 30-day hassle-free returns
Quality Assured Factory certified products
Global Fast Shipping Worldwide express delivery

You may also like

Contact us

Subscribe to our emails

Be the first to know about new collections and special offers.