เซนเซอร์ตรวจวัดค่าสี แยกสี GY-31 TCS230 TCS3200 color sensor color recognition module
Shopee

เซนเซอร์ตรวจวัดค่าสี แยกสี GY-31 TCS230 TCS3200 color sensor color recognition module

4.8
ขายแล้ว 1 ชิ้น 0 ครั้ง
฿319
ModuleMore
แบรนด์: NoBrand
ซื้อที่ Shopee

คุณจะถูกนำไปยัง Shopee

รายละเอียดสินค้า

รายละเอียดสินค้า

โมดูลตรวจจับสี ให้ค่าออกมาเป็น RGB ด้วยชิพ TCS230 มีกระบอกป้องกันการรบกวนจากสีอื่น เพิ่มความแม่นยำในการอ่านค่าสี ใช้แรงดัน 3V-5V ระยะตรวจจับที่แนะนำคือ 1 cm

RGB Color Sensor Module (TCS230/TCS3200):
- 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) x24.4 (mm)

datasheet


ตัวอย่างการใช้งาน (ข้อมูลเพิ่มเติม Link)



ตัวอย่าง Code จาก HowToMechatronics


/* Arduino Color Sensing Tutorial * * by Dejan Nedelkovski, www.HowToMechatronics.com * */ #define S0 4 #define S1 5 #define S2 6 #define S3 7 #define sensorOut 8 int frequency = 0; void setup() { pinMode(S0, OUTPUT); pinMode(S1, OUTPUT); pinMode(S2, OUTPUT); pinMode(S3, OUTPUT); pinMode(sensorOut, INPUT); // Setting frequency-scaling to 20% digitalWrite(S0,HIGH); digitalWrite(S1,LOW); Serial.begin(9600); } void loop() { // Setting red filtered photodiodes to be read digitalWrite(S2,LOW); digitalWrite(S3,LOW); // Reading the output frequency frequency = pulseIn(sensorOut, LOW); // Printing the value on the serial monitor Serial.print("R= ");//printing name Serial.print(frequency);//printing RED color frequency Serial.print(" "); delay(100); // Setting Green filtered photodiodes to be read digitalWrite(S2,HIGH); digitalWrite(S3,HIGH); // Reading the output frequency frequency = pulseIn(sensorOut, LOW); // Printing the value on the serial monitor Serial.print("G= ");//printing name Serial.print(frequency);//printing RED color frequency Serial.print(" "); delay(100); // Setting Blue filtered photodiodes to be read digitalWrite(S2,LOW); digitalWrite(S3,HIGH); // Reading the output frequency frequency = pulseIn(sensorOut, LOW); // Printing the value on the serial monitor Serial.print("B= ");//printing name Serial.print(frequency);//printing RED color frequency Serial.println(" "); delay(100); }

สินค้าที่เกี่ยวข้อง