จำนวนชิ้น | ส่วนลดต่อชิ้น | ราคาสุทธิต่อชิ้น |
{{(typeof focus_pdata.price_list[idx+1] == 'undefined')?('≥ '+price_row.min_quantity):((price_row.min_quantity < (focus_pdata.price_list[idx+1].min_quantity - 1))?(price_row.min_quantity+' - '+(focus_pdata.price_list[idx+1].min_quantity - 1)):price_row.min_quantity)}} | {{number_format(((focus_pdata.price_old === null)?focus_pdata.price:focus_pdata.price_old) - price_row.price,2)}} บาท | {{number_format(price_row.price,2)}} บาท |
คงเหลือ | 22 ชิ้น |
จำนวน (ชิ้น) |
- +
|
ซื้อเลย หยิบลงตะกร้า ซื้อเลย หยิบลงตะกร้า คุณมีสินค้าชิ้นนี้ในตะกร้า 0 ชิ้น
ช่องทางสั่งซื้ออื่น ๆ
|
|
|
|
คุยกับร้านค้า | |
{{ size_chart_name }} |
|
หมวดหมู่ | GY/MELEXIS |
สภาพ | สินค้าใหม่ |
เพิ่มเติม | |
สภาพ | สินค้ามือสอง |
เกรด | |
สถานะสินค้า | |
ระยะเวลาจัดเตรียมสินค้า | |
เข้าร่วมโปรโมชั่น | |
ข้อมูล |
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
|
รายละเอียดสินค้า |
เซนเซอร์อ่านค่าสี GY-31 TCS230 TCS3200 color sensor color recognition module color sensing module
Specification
Chip: TCS230
Input Voltage: 3V ~ 5V
Best Detection Range: 10mm
High-resolution conversion of light intensity to frequency
Programmable colour and full-scale output frequency
Communicate directly with a microcontroller
Low-profile surface mount package
PCB Size (L x W): Approx. 1.2 x 0.95 inch
Power supply pins:
The pins in the control unit:
// TCS230 pins connected to Arduino//int s0 = D3; esp8266//int s1 = D4;//int s2 = D5;//int s3 = D6;//int out = D7;int s0 = 2; //nanoint s1 = 3;int s2 = 4;int s3 = 5;int out = 6;// Variablesint red = 0;int green = 0;int blue = 0;void setup(){Serial.begin(115200);pinMode(s0, OUTPUT);pinMode(s1, OUTPUT);pinMode(s2, OUTPUT);pinMode(s3, OUTPUT);pinMode(out, INPUT);digitalWrite(s0, HIGH);digitalWrite(s1, HIGH);}void loop(){color();Serial.print(" R");Serial.print(red, DEC);Serial.print(" G");Serial.print(green, DEC);Serial.print(" B");Serial.print(blue, DEC);delay(600);if (red < blue && red < green && red <= 13){if (red <=10 && green <=10 && blue <=10){Serial.println("WHILE");} else{Serial.println(" -> (Red Color)");}}else if (blue < red && blue <=10 ){if (red <=10 && green <=10 && blue <= 10){Serial.println("WHILE");}else {Serial.println(" -> (Blue Color)"); }}else if (red > green && green > blue && green > 11 ){if (red <= 10 && green <=10 && blue <= 10){Serial.println("WHILE");} else{Serial.println(" -> (Green Color)"); }}else{Serial.println();}}void color(){digitalWrite(s2, LOW);digitalWrite(s3, LOW);//count OUT, pRed, REDred = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);digitalWrite(s3, HIGH);//count OUT, pBLUE, BLUEblue = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);digitalWrite(s2, HIGH);//count OUT, pGreen, GREENgreen = pulseIn(out, digitalRead(out) == HIGH ? LOW : HIGH);}![]() ![]() ![]() ![]() |
เงื่อนไขอื่นๆ |
|
Tags |