The grayscale sensor is an analog sensor. It can be used in combination with the Ard-uino sensor expansion board v5.0 to sense the different colors of the ground or the desktop and generate corresponding signals. It can realize interactive works related to color, and can also be used as a tour of the patrol car. Grayscale recognition of the field sensor or soccer robot. The power supply needs to be the same as the controller, usually 3.3V or 5V.
Specifications:
- Working voltage: 3.3V or 5V
- Working current :<20ma
- Operating temperature range: -10 ° C ~ +70 ° C
- Detection resolution: 10%
- Interface type: analog signal output
- Size: 23mm x 21mm
- Weight: 3g
- Interface definition
- OUT: signal output
- VCC: Power Supply (VCC)
- GND: Ground (GND)
Instructions
Working principle:
The gradation sensor comprises a white high-brightness light-emitting diode and a photoresistor. Since the light returned by the light-emitting diode on different gradation papers is different, the photoresistor receives the returned light, and the photoresistor is different according to the intensity of the light. The resistance values are also different, thereby realizing the test of the gray value.
Programming principle:
The grayscale sensor has three pins, which are the power supply positive Vcc, the power supply ground GND, and the signal terminal OUT. In actual use, the sensor can be directly connected to the analog interface of the Ard-uino controller, for example, the analog port A0, after the Ard-uino is powered on. The sensor white highlight LED lights up, the sensor button is placed on different gray paper, the data is read by the AD conversion of the Ard-uino controller, and then the measured analog quantity is printed through the serial port.
Reviews
Clear filtersThere are no reviews yet.