ร้านแนะนำ
GY-33 TCS34725 color sensor recognition sensor module replaces TCS230 TCS3200
เก็บเงินปลายทาง
ค่าจัดส่ง:
฿45
คุณลักษณะ
ส่งจาก
รายละเอียด

เซนเซอร์อ่านค่าสี (RGB) GY-33 TCS34725 color sensor recognition sensor module replaces TCS230 TCS3200 Product Description TCS34725 chip + mcu color recognition sensor module, IIC or serial communication, direct output RGB value 1, can be used as a simple simple TCS34725 module. 2, you can use the internal MCU to read TCS34725 data, MCU output directly after the output RGB, the internal white balance program to support serial / IIC read. Provide: 51 single-chip, arduino microcontroller, stm32 microcontroller, (IIC / serial) communication read data program. I. Overview GY-33 is a low cost color sensor module. Working voltage 3-5v, small power consumption, small size, easy installation. Its working principle is that the lighting LED light, exposure to the measured After the object, the return light passes through the filter to detect the scale value of RGB , According to the proportion of RGB values to identify the color. This module has two ways to read data, ie Serial port UART (TTL level) or IIC (2 lines). Serial baud rate of 9600bps and 115200bps, can be configured, There are continuous, ask the output in two ways, you can save the settings. There are seven simple color recognition, do not need to calculate the RGB value. Can adapt to different working environment, and single-chip and computer connection. Module can also set a separate sensor chip work mode, As a simple sensor module, MCU does not participate in data processing. Provide arduino, 51, stm32 microcontroller communication procedures, Do not provide schematic and internal microcontroller source code. Second, the product features technical parameters (1), cost-effective (2), built-in MCU to calculate the color (3), IIC, serial communication format (4), adjustable LED brightness (5), with the corresponding host computer software Third, product applications (1), intelligent robots (2), teaching laboratory equipment (3), production line product testing (4), colorimeter (5), led color detection https://github.com/adafruit/Adafruit_TCS34725 Code: #include "Wire.h" #include "Adafruit_TCS34725.h" /* Example code for the Adafruit TCS34725 breakout library */ /* Connect SCL to analog 5 Connect SDA to analog 4 Connect VDD to 3.3V DC Connect GROUND to common ground */ /* Initialise with default values (int time = 2.4ms, gain = 1x) */ // Adafruit_TCS34725 tcs = Adafruit_TCS34725(); /* Initialise with specific int time and gain values */ Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X); void setup(void) { Serial.begin(115200); if (tcs.begin()) { Serial.println("Found sensor"); } else { Serial.println("No TCS34725 found ... check your connections"); while (1); } // Now we're ready to get readings! } void loop(void) { uint16_t r, g, b, c, colorTemp, lux; tcs.getRawData(r, g, b, c); colorTemp = tcs.calculateColorTemperature(r, g, b); lux = tcs.calculateLux(r, g, b); Serial.print("Color Temp: "); Serial.print(colorTemp, DEC); Serial.print(" K - "); Serial.print("Lux: "); Serial.print(lux, DEC); Serial.print(" - "); Serial.print("R: "); Serial.print(r, DEC); Serial.print(" "); Serial.print("G: "); Serial.print(g, DEC); Serial.print(" "); Serial.print("B: "); Serial.print(b, DEC); Serial.print(" "); Serial.print("C: "); Serial.print(c, DEC); Serial.print(" "); Serial.println(" "); }

แชทเลย
เพิ่มไปยังรถเข็น
ซื้อสินค้า