Features
- Working Voltage: 3.3V or 5V
- Working Current: < 20mA
- Operating Temperature: -10°C to +70°C
- Detection Resolution: 10%
- Interface Type: Analog Signal Output
- Module Size: 24mm x 21mm
- Weight: 3g
Working Principle:
The sensor integrates a high-brightness white LED and a photoresistor. When placed over a surface, the LED emits light, which is reflected back based on the surface's color and brightness. The photoresistor detects the intensity of the reflected light. Lighter surfaces reflect more light, resulting in lower resistance, while darker surfaces reflect less light, increasing resistance. These changes are converted into varying analog voltage levels, which can be read using an Arduino analog pin.
Programming Principle:
The sensor has three main pins: VCC, GND, and OUT. You can connect the OUT pin to any analog input of an Arduino board (e.g., A0). When powered, the sensor’s white LED lights up and starts detecting the surface. The analog value can be read using analogRead()
, allowing you to write responsive logic based on the brightness of the detected surface.
Connection Diagram:
- OUT → Arduino Analog Pin (e.g., A0)
- VCC → Arduino +5V or +3.3V
- GND → Arduino GND
Sample Arduino Code:
void setup() {
Serial.begin(9600); // Open serial port at 9600 baud
}
void loop() {
int val = analogRead(A0); // Read sensor value from Analog pin A0
Serial.println(val); // Print the value to Serial Monitor
delay(100); // Wait for 100ms
}
Applications:
- Line Follower Robots
- Color Detection Projects
- Grayscale Recognition
- Interactive Light-Based Systems
- Object Tracking with Reflective Surfaces
- High-brightness LED-based analog sensor
- Detects varying surface colors by measuring reflectivity
- Ideal for line-following robot applications
- Supports 3.3V or 5V systems
- Lightweight and compact design
Features
- Working Voltage: 3.3V or 5V
- Working Current: < 20mA
- Operating Temperature: -10°C to +70°C
- Detection Resolution: 10%
- Interface Type: Analog Signal Output
- Module Size: 24mm x 21mm
- Weight: 3g
Working Principle:
The sensor integrates a high-brightness white LED and a photoresistor. When placed over a surface, the LED emits light, which is reflected back based on the surface's color and brightness. The photoresistor detects the intensity of the reflected light. Lighter surfaces reflect more light, resulting in lower resistance, while darker surfaces reflect less light, increasing resistance. These changes are converted into varying analog voltage levels, which can be read using an Arduino analog pin.
Programming Principle:
The sensor has three main pins: VCC, GND, and OUT. You can connect the OUT pin to any analog input of an Arduino board (e.g., A0). When powered, the sensor’s white LED lights up and starts detecting the surface. The analog value can be read using analogRead()
, allowing you to write responsive logic based on the brightness of the detected surface.
Connection Diagram:
- OUT → Arduino Analog Pin (e.g., A0)
- VCC → Arduino +5V or +3.3V
- GND → Arduino GND
Sample Arduino Code:
void setup() {
Serial.begin(9600); // Open serial port at 9600 baud
}
void loop() {
int val = analogRead(A0); // Read sensor value from Analog pin A0
Serial.println(val); // Print the value to Serial Monitor
delay(100); // Wait for 100ms
}
Applications:
- Line Follower Robots
- Color Detection Projects
- Grayscale Recognition
- Interactive Light-Based Systems
- Object Tracking with Reflective Surfaces
- High-brightness LED-based analog sensor
- Detects varying surface colors by measuring reflectivity
- Ideal for line-following robot applications
- Supports 3.3V or 5V systems
- Lightweight and compact design