OPT101 Light Analog Light Intensity Sensor Module Single Chip Photoelectric Diode 14KHz CJMCU-101 CO

Fr15,000

In stock

SKU: SENS9875 Category:

Description

The OPT101 is an illuminance photosensor that integrates a photodiode and a specially optimized op amp. The transparent package allows the photodiode to have a larger sensing surface with higher sensitivity and a wide spectral response range (infrared to visible light 300nm-1000nm).

  • Output voltage ratio: 0.45V/uW
  • Analog voltage output range: Vs一1.15
  • Bandwidth: 14KHz
  • Static power consumption: 120uA

 

Pin Functions

VCC: power supply positive pin
-V: negative supply
-IN: the inverting input of the internal op amp and the negative of the internal photodiode,
Do not connect or apply feedback that is abandoned in the operation
1M: Internal 1M feedback resistor input
OUT: Amplifier output
COM: Internal photodiode positive, generally connected to GND

 

SPECIFICATIONS

Dissipation Power:CJMCU一101
Model Number:OPT101 Light Sensor Module
Type:Voltage Regulator
Operating Temperature:0~70
Supply Voltage:2.7~36V
Package:TQFP
Application:Analog Light Intensity Sensor
Product Parameter
Working voltage: 2.7 ~ 36V
Working temperature: 0°C~70°C
Photodiode light irradiation area: 5.2mm2
Photocurrent: 0.45A/W (λ = 650nm)
Output voltage ratio: 0.45V/uW
Analog voltage output range: Vs一1.15
Bandwidth: 14KHz
Static power consumption: 120uA
Unit Type:piece
Package Weight:0.028kg (0.06lb.)
Package Size:10cm x 10cm x 2cm (3.94in x 3.94in x 0.79in)

#define sensor A2
#define LED1 2
#define LED2 3
#define LED3 4
#define LED4 5
#define LED5 6

void setup() {
  Serial.begin(9600);
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(LED3, OUTPUT);
  pinMode(LED4, OUTPUT);
  pinMode(LED5, OUTPUT);
}

void loop() {
  int value = analogRead(sensor);
  value = map(value, 0, 1024, 300, 1100);
  Serial.println(value);

  if (value < 310) {
    digitalWrite(LED1, LOW);
    digitalWrite(LED2, LOW);
    digitalWrite(LED3, LOW);
    digitalWrite(LED4, LOW);
    digitalWrite(LED5, LOW);
    Serial.println("LED off");
  } else if (value > 310 && value < 350) {
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, LOW);
    digitalWrite(LED3, LOW);
    digitalWrite(LED4, LOW);
    digitalWrite(LED5, LOW);
    Serial.println("LED 1 on");
  } else if (value > 350 && value < 450) {
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, HIGH);
    digitalWrite(LED3, LOW);
    digitalWrite(LED4, LOW);
    digitalWrite(LED5, LOW);
    Serial.println("LED 2 on");
  } else if (value > 450 && value < 550) {
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, HIGH);
    digitalWrite(LED3, HIGH);
    digitalWrite(LED4, LOW);
    digitalWrite(LED5, LOW);
    Serial.println("LED 3 on");
  } else if (value > 550 && value < 750) {
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, HIGH);
    digitalWrite(LED3, HIGH);
    digitalWrite(LED4, HIGH);
    digitalWrite(LED5, LOW);
    Serial.println("LED 4 on");
  } else if (value > 750) {
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, HIGH);
    digitalWrite(LED3, HIGH);
    digitalWrite(LED4, HIGH);
    digitalWrite(LED5, HIGH);
    Serial.println("LED 5 on");
  }

}

Package includes: 1xOPT101