Specification Brand : Generic BulletPoint : Photosensitive resistor Light Sensor Analog Grayscale Sensor Electronic Board Line finder tracking module For DIY Kit BulletPoint1 : Versatile Sensor Switch: This E18-B03P1 photoelectric sensor switch can detect objects within a range of 5-30cm, making it suitable for various applications. BulletPoint2 : Easy Installation: With its 3-wire design and PNP output, this sensor switch can be easily integrated into existing systems without the need for complex wiring. BulletPoint3 : Reliable Performance: The IR technology used in this sensor switch ensures accurate and consistent detection, making it ideal for industrial automation and control. BulletPoint4 : Wide Voltage Range: This sensor switch supports a voltage range of 6-36V, allowing it to be used in different power supply systems. BulletPoint5 : Durable Construction: Made with high-quality materials, this photoelectric sensor switch is built to last, ensuring long-term reliability and performance. ExternallyAssignedProductIdentifier1 : 0690313790608 ExternallyAssignedProductIdentifier2 : 690313790608 FinishType : Finish IncludedComponents : inc ItemName : Photosensitive Resistor Light Sensor Analog Grayscale Sensor Electronic Board Line Finder Tracking Module for DIY Kit ItemPackageDimensions_Height : 2 inches ItemPackageDimensions_Length : 5.25 inches ItemPackageDimensions_Width : 3.5 inches ItemPackageQuantity : 1 ItemTypeKeyword : electronic-component-photoelectric-sensors Manufacturer : Generic Material : paper MountingType : Flange Mount NumberOfItems : 1 PartNumber : Lile_HFN_2959 PowerSourceType : PowerSource ProductDescription : product description
The grayscale sensor is an analog sensor. It can be used in combination with the sensor expansion board v5.0. It can sense different colors of the ground or desktop and generate corresponding signals. It can realize interactive works related to colors, and can also be used as a patrol car of the line patrol car. Field grayscale recognition for line sensors or soccer robots. The power supply needs to be consistent with the controller, usually 3.3V or 5V.
5. Interface type: analog signal output 6. Size: 24mm x 21mm7. Weight: 3g
Interface definition
.OUT: Signal output
.VCC: Power (VCC)
GND: Ground (GND)
Instructions
working principle
The grayscale sensor includes a white high-brightness light-emitting diode and a photoresistor. Since the light returned by the light-emitting diode on different grayscale papers is different, the photoresistor receives the returned light. According to the intensity of the light, the photoresistor's The resistance value is also different, so as to realize the gray value test.
Programming Principles
The grayscale sensor has a total of 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 controller, such as the analog port AO, after the is powered on, The white highlight LED of the sensor lights up, put the sensor buckle on the paper with different grayscales, read the data through the AD conversion that comes with the controller, and then print the measured analog value through the serial port.
Connection diagram
The OUT port is connected to the analog input pin of t ProductSiteLaunchDate : 2023-11-30T05:24:16.046Z Size : H2010 slot SupplierDeclaredDgHzRegulation : not_applicable UnitCount : 1 UnspscCode : 32000000 Voltage : 6 volts_of_direct_current