• Color Recognition Sensor TCS230 TCS3200 Color Sensor Colour Module For DIY Arduino Teaching Experiment Project Kit
  • Color Recognition Sensor TCS230 TCS3200 Color Sensor Colour Module For DIY Arduino Teaching Experiment Project Kit
  • Color Recognition Sensor TCS230 TCS3200 Color Sensor Colour Module For DIY Arduino Teaching Experiment Project Kit

Color Recognition Sensor TCS230 TCS3200 Color Sensor Colour Module For DIY Arduino Teaching Experiment Project Kit

stars, based on ( 0 ) reviews
FREE SHIPPING Over $20 for All orders.
$3.57now [ 1 piece / Lot ]
Quantity Price
1+ $3.57
8974 items available
Features
  • Color Recognition Sensor Module
  • Condition: New
  • Chip: TCS230
  • Input voltage: DC 3 ~ 5V
  • Output frequency voltage: 0 ~ 5V
  • Use bright white LED lights
  • Can be connected directly with Microcontroller
  • Static detection of the measured object color
  • Best detection distance: 10mm
  • PCB size: 31.6 (mm) x 24.4 (mm)
  • Color and more details are shown as pictures
  • PLS NOTE that due to lighting effects, monitor's brightness/ contrast settings etc, there could be some slight differences in the color tone of the pictures and the actual item!
Shipping List
  • Color Recognition Sensor Module: 1pcs
 
Simple test procedure is as follows :
# include
# define uchar unsigned char
# define uint unsigned int
sbit S0 = P1 ^ 0; / / S0, S1To set the output duty cycle
sbit S1 = P1 ^ 1;
sbit S2 = P1 ^ 3; / / S2, S3To set the pattern of light into account
sbit S3 = P1 ^ 4;
sbit OE = P1 ^ 2; / /Enable
 
 
void RS232_init ()
{
TMOD = 0X20; / /Timer1Work in the way1
SCON = 0x50;
PCON = 0X80; / /
TH1 = TL1 = 0XFF ;/ / 22.1184MCrystal, the baud rate is set to115200
TR1 = 1;
TI = 0;
RI = 0;
 
}
void send_char (uchar a) / /Sending 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; / /Counter1Timer0Work16Bit mode
 TH0 = TL0 = 0; / /Scratch counting, 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);
 
}
 
}
Through the serial port to select the color types of channels , and then due to the different colors corresponding to different time ( the same count value ) to determine the different colors.

 

TCS3200 Colour Sensor (2)TCS3200 Colour Sensor (3)

Use:
Four-wheel Drive Attributes:
Assemblage
RC Parts & Accs:
Connectors/Wiring
For Vehicle Type:
Cars
Upgrade Parts/Accessories:
Adapter
Size:
other
Remote Control Peripherals/Devices:
Receivers
Tool Supplies:
Cutting
Model Number:
other
Brand Name:
Technical parameters:
Value 2
Material:
Metal
Recent Reviews
+