The Crowbits-Grayscale Sensor is an analog sensor. The gray-scale sensor uses different detection colors to reflect different levels of light, and the photoresistor uses different principles to detect the color depth of light returned by different detection surfaces. It is used to distinguish black from other colors when the ambient light interference is not very serious.
A light-emitting diode and a photoresistor are installed on the same surface. The gray-scale sensor uses different detection colors to reflect different levels of light, and the photoresistor uses different principles to detect the color depth of light returned by different detection surfaces. At an effective distance, the LED emits white light, shining on the detection surface, within an effective distance, the LED emits white light, shines on the detection surface, detects part of the light reflected from the detection surface, and returns to the photoresistor, which detects the intensity of this light and converts it into an electrical signal.This principle is used to identify the reflective loudness (also known as the degree of light absorption) of each detection surface.
Connect the module to port A0, open the appropriate test program, and download it to the UNO main board. The grayscale sensor is placed horizontally (the light is lit partially downward) at a distance of about 1cm from the object to be measured.Open the serial debugging window, for different gray levels of the physical display data is different.