توصيل مجاني داخل الضفة للطلبات فوق 300 ₪ • نقبل البطاقة وPayPal والدفع عند الاستلام • توصيل محلي سريع
المواصفات

تفاصيل المنتج

Experience advanced color detection technology with the TCS3200 Color Sensor Module. Designed for precision and adaptability, this compact device is ideal for applications in robotics, automation, and color measurement. The TCS3200 module utilizes an innovative chip architecture to provide accurate color recognition and versatile output options.

Key Features:

  • Enhanced Color Detection: Incorporates 64 photodiodes, grouped into four types (red, green, blue, and clear) for comprehensive color analysis.
  • Programmable Operation: Two programmable pins allow dynamic selection of color filters, enabling tailored operations for various applications.
  • Wide Output Frequency Range: Typical output frequency ranges from 2 Hz to 500 kHz, adjustable for different measurement scenarios.
  • Customizable Output Scale Factor: Selectable output scale factors (100%, 20%, or 2%) to match different counter capabilities, ensuring accurate readings.
  • Anti-Light Interference: Designed to operate effectively in diverse lighting conditions, including the ability to detect non-luminous objects.
  • Integrated White LED: Features an onboard white LED with control to manage illumination as needed.
  • Compact PCB Design: Dimensions of 33mm (L) x 25mm (W) make it suitable for various projects and spaces.

Technical Specifications

  • Chip Model: TCS3200, an upgrade from TCS230
  • Power Supply: 3-5V DC
  • Photodiode Count: 64 (16 Red, 16 Green, 16 Blue, 16 Clear)
  • Output Frequency: 2 Hz to 500 kHz
  • Output Scaling Options: 100%, 20%, 2%, or power-off
  • PCB Dimensions: 33mm x 25mm
  • Shipping List: 1 x TCS3200 Color Sensor Module

Upgrade your project with the TCS3200 Color Sensor Module, offering precision, flexibility, and advanced color detection capabilities. Ideal for enthusiasts and professionals alike, this module is a crucial addition to any electronics toolbox.

Simple test procedure 

#include 
#define uchar unsigned char
#define uint unsigned int

Duty cycle // S0, S1 to set the output; sbit S0 = P1 ^ 0
sbit S1 = P1 ^ 1;
sbit S2 = P1 ^ 3; // S2, S3 is set to consider the pattern of light
sbit S3 = P1 ^ 4;
sbit OE = P1 ^ 2; // Enable

void RS232_init ()
{
  TMOD = 0X20; // Timer 1 in mode 1
  SCON = 0x50;
  PCON = 0X80; //
  TH1 = TL1 = 0XFF; // 22.1184M crystal, the baud rate is 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 () // receiving data
{
    while (RI == 0);
    RI = 0;
return SBUF;
}

uint color_display (uchar m)
{
       uint time, a;
       a = m;
       TMOD = 0x61; // counter 1, Timer 0 is operating in 16-bit mode
       TH0 = TL0 = 0; // start counting from zero, the 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);
  }
}