We are Apogeeweb Semiconductor Electronic

WELCOME TO OUR BLOG

Home arrow Sensors arrow What is a Light Sensor?

arrow left

arrow right

What is a Light Sensor?

Author: Apogeeweb Date: 22 Feb 2020  3652

photocell

I Introduction

The light sensor is developed based on the photoelectric effect principle of semiconductors. It can be used to detect the intensity of ambient light, and it can also be used to detect the difference in light between different colored surfaces. Users can make projects that interact with light with it, such as smart dimming lights, a laser communication system or something more awesome.

Light Sensor Using Arduino and LDR | Arduino Light Sensor

Catalog

I Introduction

II Definition

  2.1 What is a Sensor?

  2.2 Definition of the Light Sensor

III Spectrum and Photometric Physical Quantity

  3.1 Spectrum

  3.2 Photometric Physical Quantities

  3.3 MID Display's Perception of Backlight Brightness Under Different Illumination

IV How the Light Sensor Works

V Types and Characteristics of Light Sensors

  5.1 Photodiode Type

  5.2 Photoresistor Type

VI Applications of Light Sensors

  6.1 Types of Light Sensors in Application

  6.2 Typical Applications

  6.3 Practical Application Cases

VII The Circuit Diagram of a Light Sensor

  7.1 Model Introduction

  7.2 Appearance and Size

  7.3 Application

  7.4 Functional Framework Diagram

  7.5 Application Circuit

VIII Programming Guide

  8.1 mBlock Programming

  8.2 Arduino Programming

  8.3 Schematic

IX A Related Question about Light Sensor

  9.1 Question

  9.2 Answer

Ⅹ FAQ

II Definition

2.1 What is a Sensor?

In a broad sense, a sensor is a sensor that converts a measurement into a signal that can be perceived or quantified. In a narrow sense, a device that senses the measurement and converts it into an output signal of the same or another nature according to a certain law. The sensor is generally composed of a sensor element, a conversion element, a measurement circuit, and an auxiliary power source. The sensor element and the conversion element may be combined into one, and some sensors do not require an auxiliary power source.

2.2 Definition of the Light Sensor

The light sensor usually refers to a device that can sensitively sense the light energy of ultraviolet light to infrared light and convert the light energy into an electrical signal.

 

The light sensor is a kind of sensing device, which is mainly composed of light-sensitive elements. It is mainly divided into four categories: ambient light sensor, infrared light sensor, sunlight sensor, and ultraviolet light sensor. It is mainly used in the field of changing body electronics applications and intelligent lighting systems. Modern electrical measurement technology is becoming more and more mature. Due to its advantages such as high accuracy and easy microcomputer connection for automatic real-time processing, it has been widely used in the measurement of electrical and non-electrical quantities.

 

However, the electrical measurement method is susceptible to interference. In the AC measurement, the frequency response is not wide enough and there are certain requirements on the withstand voltage and insulation. Today, the rapid development of laser technology has been able to solve the above problems.

Light Sensor

Figure1. Light Sensor

III Spectrum and Photometric Physical Quantity

3.1 Spectrum

The spectrum is a pattern in which monochromatic light, which is dispersed by the dispersive system (such as a prism and a grating), is sequentially arranged according to the size of the wavelength (or frequency). The largest part of the visible spectrum is the visible part of the electromagnetic spectrum of the human eye. Electromagnetic radiation in this wavelength range is called visible light. The spectrum does not include all the colors that the human brain can distinguish, such as brown and pink.

Spectrum

Figure2. Spectrum

3.2 Photometric Physical Quantities

3.2.1 Light Intensity(I/Intensity)

(1) Definition: the intensity of light emitted by a monochromatic light source (frequency 540 × 1012 Hz, wavelength 555nm) in a unit solid angle in a given direction (radiation intensity in this direction is 1/683 watts per spherical degree) .

(2) Unit: cd (Candela)

(3) Luminous intensity of common light sources:

●  Sun, 2.8E27 cd

●  Highlight flashlight, 10000 cd

●  5mm super bright LED, 15 cd

 

3.2.2 Luminous Flux(F/Flux)

(1) Definition: The energy emitted by a point light source or a non-point light source in a unit time. Among them, the visual person (radiation flux that humans can feel) is called luminous flux.

(2) Unit: Lm (lumens)

(3) Efficiency of common light sources (lumens / watt, Lm / W)

● Incandescent, 15

● White LED, 20

● fluorescent lamp, 50

● The sun, 94

● Sodium lamp, 120

 

3.2.3 E/Illuminance

(1) Definition: Luminous flux irradiated onto a unit area.

(2) Unit: Lx / Lux (1), 1 (Lx) = 1 Lm / m2.

(3) Common Illumination (Lx):

● Direct sunlight (noon), 110,000

● Overcast day, 1000

● Inside the mall, 500

● Cloudy room with window, 100

● Under normal room lighting, 100

● Full moon, 0.2

 

3.2.4 L / Luminance

(1) Definition: The intensity of light emitted by the unit light source area in the normal direction and within the unit solid angle.

(2) Unit: nt (nits), 1 (nt) = 1 cd / m2.

(3) Brightness of common luminous body (nt):

● Solar surface, 2,000,000,000

● Incandescent filament, 10,000,000

● White paper under the sun, 30,000

● Brightness that human eyes can get used to, 3,000

● The human eye can better distinguish the brightness of the color, 1

● No moon night sky, 0.0001

3.3 MID Display's Perception of Backlight Brightness Under Different Illumination

Ambient Illumination-LUX

Figure3. Ambient Illumination-LUX

IV How the Light Sensor Works

The light sensor actually works according to the principle of the photoelectric effect. The so-called photoelectric effect refers to the phenomenon that certain special substances can convert light energy into electrical energy after absorbing light. The photoelectric effect can be divided into two types: an external photoelectric effect and an internal photoelectric effect. The external photoelectric effect refers to the fact that under light irradiation, electrons can be emitted from the inside of the material to generate electricity. The photocell and photomultiplier are originals based on the external photoelectric effect.

 

Correspondingly, the internal photoelectric effect occurs inside the substance. When light is irradiated onto the substance, the resistivity inside the substance is changed, thereby generating electromotive force. Photoelectric elements such as photoresistors and photovoltaic cells are made based on the internal photoelectric effect.

 

Take the light sensor on the mobile phone as an example:

The light sensor in a mobile phone should actually be an ambient light sensor, which is mainly composed of two parts, a light projector, and a light receiver. The white dot next to the front camera acts as a lens that focuses the light in the environment and transmits it to the receiver via the projector. According to the photoelectric effect, the light receiver can convert various light signals into corresponding electrical signals, and then further process them into various switching and control actions to realize the sensitivity adjustment of the mobile phone.

 

An infrared cut-off film is often attached to the chip of the ambient light sensor to eliminate the interference of infrared light so that our electronic devices such as mobile phones and laptops can accurately detect the visible light intensity in the environment. When the display consumes too much power, the light sensor can also automatically reduce the screen brightness to extend the operating time of the battery.

 Light Sensor in Phone

Figure4. Light Sensor in Phone

V Types and Characteristics of Light Sensors

5.1 Photodiode Type

Photodiodes and semiconductor diodes are similar in structure, and their die is a PN junction with photosensitive characteristics, which has unidirectional conductivity, so a reverse voltage needs to be added when working.

 

When there is no light, there is a small saturation reverse leakage current, that is, a dark current, at which time the photodiode is turned off. When exposed to light, the saturation reverse leakage current greatly increases, forming a photocurrent, which changes with the intensity of the incident light.

 

When light irradiates the PN junction, an electron-hole pair can be generated in the PN junction, which increases the density of minority carriers. These carriers drift under the reverse voltage, causing the reverse current to increase. So you can use the light intensity to change the current in the circuit. It is turned off when there is no light and turned on when there is light.

 

Features:

(1) High sensitivity can reduce the influence of stray light

(2) Photodiode (photodiode) is a photoelectric conversion device, which can convert the received light into a current change

(3) The working mode of the photodiode (photodiode) is to increase the reverse voltage or not increase the voltage. When a reverse bias is applied to it, the reverse current in the tube will change with the intensity of the light. The greater the light intensity, the greater the reverse current.

Photodiode

Figure5. Photodiode

5.2 Photoresistor Type

(1) Principle

It works based on the semiconductor photoelectric effect. The photoresistor is non-polar and is purely a resistive element. It can be applied with DC voltage or AC voltage.

(2) Working characteristics of the photoresistor: When the light is on, the resistance is small; when the light is off, the resistance is large. The stronger the light, the smaller the resistance; when the light stops, the resistance returns to its original value.

(3) Spectral range: from ultraviolet to infrared.

(4) Features:

● The internal photoelectric effect has nothing to do with the electrode (only related to the photodiode), that is, a DC power supply can be used.

● Sensitivity is related to the semiconductor material and the wavelength of the incident light

● Epoxy resin package, high reliability, small size, high sensitivity, fast response speed, and good spectral characteristics.

photoresistor

Figure6. Photoresistor

VI Applications of Light Sensors

6.1 Types of Light Sensors in Application

(1) Ambient light sensor

The ambient light sensor can sense the surrounding light conditions and tell the processing chip to automatically adjust the backlight brightness of the display to reduce the power consumption of the product.

 

On the other hand, the ambient light sensor helps the display provide a soft picture. When the ambient brightness is high, the LCD monitor using the ambient light sensor will automatically adjust to high brightness. When the external environment is dark, the display will be adjusted to low brightness to achieve automatic brightness adjustment.

 

(2) Infrared light sensor

The infrared light sensor uses a charged thermopile and a scandium bromide iodide (KRS-5) window to sense wavelengths from 580 to 40,000 nm. The sensor can be used to measure a range of phenomena, including infrared radiation from the palm of your hand.

 

(3) Sunlight sensor

Solar sensor. It can recognize horizontal and vertical 360 degrees. The location of the sun, identification, cloudy, cloudy, semi-cloudy, sunny and evening during the day. Tracking bearing identification. Identification circuit processing and server drive. A digital chip is used to complete the processing of the above information. It can serve a variety of ordinary motors, stepper motors. The power consumption of the whole machine is 3mA, and the chip working voltage is 5V.

 

International advanced solar tracking equipment uses computer data theory, which requires data and settings for the latitude and longitude of the earth. The circuit principle and equipment technology are complicated. Intelligent sun tracker uses recognition theory technology, simple circuit and few components, no theory of latitude, longitude and data information. There is no need to consider the route that the sun runs through the year. From which direction the sun rises and from which direction it falls, it can accurately identify the position where the sun rises and falls. If he is placed on a walking car or boat, the tracker can face the sun no matter where he goes.

 

(4) UV light sensor

The UV light sensor uses a filter to measure the UV light band (315nm-400nm). Remove the filter, the sensor can sense visible light at the same time. The sensor includes a UV filter, a sight, and a sensor handle.

 Types of Light Sensors

Figure7. Types of Light Sensors

6.2 Typical Applications

Backlight adjustment: TV, computer monitor, LCD backlight, mobile phone, digital camera, MP4, PDA, GPS;

Energy-saving control: outdoor advertising machines, induction lighting appliances, toys; instruments and meters: instruments and industrial controls for measuring light intensity;

Environmentally friendly replacement: Replace traditional photoresistors, photodiodes, phototransistors

6.3 Practical Application Cases

6.3.1 Changing Body Electronics Applications

(1) Ambient light detection

In body electronics applications, ambient light sensors are used to adjust the backlight intensity of the dashboard, as well as the LCD backlight intensity in navigation systems (GPS), temperature control, and DVD screens. This is especially important for displays like BMW's iDrive and Prius' Multi-Info. For example, when daylight becomes dim and dark, the dashboard backlight will be adjusted to varying degrees to achieve the best visibility and reduce the glare that may be caused to the driver. Using these sensors eliminates the problem of turning on the headlights during the day, and the display automatically adjusts brightness. The key function of the ambient light sensor is to use the sensitivity visible wavelength of 380nm ~ 780nm to replicate the sensitivity of the human eye.

 

(2) Tunnel detection

Tunnel detection requires the input of two sensors. The first sensor has a wider field of view "looking up" and a relatively long average moving period, which prevents the lights from turning on and off. The second sensor has a narrower field of view "looking forward" and a relatively short average moving time. This allows the tunnel sensor to respond quickly to sudden changes in daylight, turn on the car's headlights, and adjust the display's backlight brightness when entering the tunnel. Forward-facing sensors eliminate the need to turn lights on and off when entering under a bridge or a tree covering the sun. In these cases, the sensor will still "see" the light ahead.

 

When entering the tunnel, the signal from the tunnel sensor will drop, while the signal from the wide-field sensor will remain high; the headlights of the car will be turned on. When exiting the tunnel, the signal from the tunnel sensor will increase and the signal from the wide field of view sensor will decrease; the headlights of the vehicle will be turned off. With different average moving periods, the controller makes a clear distinction.

 

6.3.2 Intelligent Lighting System

To improve the comfort of the working environment, the lighting control system adopts a light sensor to automatically control the lighting equipment according to the illuminance of the current environment, so that the illuminance is controlled within a comfortable range. In traditional lighting control systems, ordinary light sensors are often combined with A / D converters (ADCs). Because the light signal detected by the light sensor contains both visible light components and infrared light components, the infrared light is filtered to detect the light sensor detection results.

VII The Circuit Diagram of a Light Sensor

7.1 Model Introduction

The light sensor shown below is a low-cost I2C digital light sensor (ALS), which can convert light intensity into a digital output signal that can directly interface with I2C, providing a wide dynamic range from 0.01lux to 64K lux The linear response is very suitable for applications under high ambient brightness.

Model

Figure8. Model

7.2 Appearance and Size

Appearance and Size of the model

Figure9. Appearance and Size of the model

7.3 Application

(1) Back-lighting Control in mobile / portable devices

(2) Touch Panel Control in mobile / portable devices

7.4 Functional Framework Diagram

Functional Framework Diagram

Figure10. Functional Framework Diagram

7.5 Application Circuit

Application Circuit

Figure11. Application Circuit

VIII Programming Guide

The programming described below is based on the Me light sensor developed based on the photoelectric effect principle in semiconductors.

8.1 mBlock Programming

The light sensor module supports the mBlock programming environment. The following is a brief description of the module instructions:


Programming Guide

Figure12. Programming Guide

Here is an example of how to use mBlock to control a light sensor module

When the LED receives the light, M-Panda will move left and right and say I love sunshine; Cover the LED light, M-Panda will stop moving and say I love night. The results are as follows:

Result

Figure13. Result

8.2 Arduino Programming

If you write a program using Arduino, you should call the library Makeblock-Library-master to control the Me Light Sensor. This program instructs Me Light Sensor to read the current light intensity through Arduino programming.


Arduino Programming

Figure14. Arduino Programming

Function list of light sensor:

Function List of Me Light Sensor

Figure15. Function List of Me Light Sensor

8.3 Schematic

Schematic

Figure16. Schematic

9.1 Question

How to combine these 2 circuits together so that during complete darkness on the LDR, the LED would turn on instantly and when light falls on the LDR there would be around a 1 or 2-second delay before completely shutting off?

The circuit would be running on a 5V DC power supply and powering an LED array.

How to combine them together?

Circuit1 

Figure17.Circuit1

Circuit2

Figure18. Circuit2

9.2 Answer

In the 555 circuit the capacitor controls the wait time, if the capacitor is short-circuited the circuit will wat forever.

In the LDR circuit the transistor acts like a switch but unfortunately it's switching to ground but the capacitor in the 555 circuit is connected to +9V

To resolve this I swapped the parts in the 555 circuit upside down to have the capacitor to ground. Then it was simple to I merge the two circuits.

Answer

Figure19. Answer

In the dark R1 turns Q1 on the keesp C1 duscharged so 555 output will be high.

when there is light the LDR turns Q1 off and C1 charges , once it gets enough charge the 555 output goes low.

We could have instead built the upside-down version of the LDR circuit using a BC557 transitor (or other similar PNP type) instead of the BC547 NPN transistor and merged that with the original 555 circuit.

Ⅹ FAQ

1. How is a relay added to a light sensor circuit?

Presumably, your light sensor will be generating a variable voltage signal in response to how much light is hitting it, and you want to trip a relay when this light is above (or possibly below) a threshold. One way to do this is with a comparator circuit, which will compare two voltages and output a high or low depending on which one is higher. You then compare the signal from the light sensor to a reference voltage that you can set with a potentiometer and generate a high or low output signal from that.

 

You can also use a microcontroller and read the signal from the light sensor with an analog input pin. This is more complex but useful if you want to implement features like hysteresis in the comparison.

 

Now, the logic level signal can’t drive a relay coil directly, so you will need to use a transistor to switch the relay coil current. Which transistor to use will depend on the voltages involved and the amount of current you need to switch, but it’ll be a small signal transistor of some kind. You also need a current limiting resistor on the gate, possibly a pull-down on the gate as well, and a flyback diode across the relay coil.

 

2. What is a light sensor?

Light sensors respond to changes in infrared light to detect motion or proximity to another object. Proximity sensors help robotic machines navigate obstacles and avoid bumping into objects. They are also used for devices in vehicles that sound an alarm when the vehicle is close to bumping into an object.

 

3. What are the disadvantages of a light sensor?

Following are the disadvantages of Light sensor :

• LDRs are highly inaccurate with high response time (about 10s or 100s of milliseconds).

• Resistance varies continuously (analog) in photoresistors and is rugged in nature.

• Photodiodes are temperature sensitive and are uni-directional, unlike photoresistors.

Ordering & Quality

Photo Mfr. Part # Company Description Package PDF Qty Pricing
(USD)
MIC384-2YM MIC384-2YM Company:Microchip Technology Remark:SENSOR DIGITAL -55C-125C 8SOIC Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
475+: $1.19000
Inquiry
SA56004GD-118 SA56004GD-118 Company:NXP USA Inc. Remark:SENSOR DIGITAL -40C-125C 8SO Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
Call
Inquiry
AT30TS750A-SS8M-B Company:Microchip Technology Remark:SENSOR DIGITAL -55C-125C 8SOIC Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:30
Inquiry
Price:
1+: $0.60000
700+: $0.92400
Inquiry
EMC1063-4-ACZL-TR EMC1063-4-ACZL-TR Company:Microchip Technology Remark:SENSOR DIGITAL -20C-85C 8MSOP Package:8-TSSOP, 8-MSOP (0.118", 3.00mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
Call
Inquiry
SA56004DD-118 SA56004DD-118 Company:NXP USA Inc. Remark:SENSOR DIGITAL -40C-125C 8SO Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
Call
Inquiry
TC74A0-5-0VCTTRG TC74A0-5-0VCTTRG Company:Microchip Technology Remark:SENSOR DIGITAL -40C-125C SOT23-5 Package:SC-74A, SOT-753
DataSheet
In Stock:On Order
Inquiry
Price:
Call
Inquiry
LM75ADP-118 LM75ADP-118 Company:NXP USA Inc. Remark:SENSOR DIGITAL -55C-125C 8TSSOP Package:8-TSSOP, 8-MSOP (0.118", 3.00mm Width)
DataSheet
In Stock:40492
Inquiry
Price:
1+: $0.74000
5+: $0.70200
10+: $0.61100
25+: $0.53640
50+: $0.44560
100+: $0.37950
500+: $0.33000
1000+: $0.28875
2500+: $0.27638
5000+: $0.25575
7500+: $0.23925
12500+: $0.23678
17500+: $0.23347
25000+: $0.22688
Inquiry
MCP9808T-E-MS MCP9808T-E-MS Company:Microchip Technology Remark:SENSOR DIGITAL -40C-125C 8MSOP Package:8-TSSOP, 8-MSOP (0.118", 3.00mm Width)
DataSheet
In Stock:9968
Inquiry
Price:
1+: $1.13000
25+: $0.94000
100+: $0.85000
2500+: $0.85000
Inquiry

Related Articles

What Sensors Are In The Phone?

Apogeeweb 3 Dec 2019  1679

CatalogⅠ IntroductionⅡ Types of sensors in the phone  2.1 Acceleration sensor  2.2 Gravity sensor  2.3 Light sensor  2.4 Proximity sensor  2.5 Magnetism Sensor ...

Continue reading »

What is Intelligent Sensor and Its Applications

Apogeeweb 28 Mar 2018  5803

IntroductionIntelligent sensor, also called “smart sensor”,as a tool for human access to information, sensors are an important part of modern information technology. In the traditional sen...

Continue reading »

What is a Mass Air Flow Sensor?

Apogeeweb 15 Dec 2020  1320

IntroductionThe mass air flow sensor, also known as the air flow meters, is one of the important sensors of the electronic jet engine. It converts the inhaled air flow into electrical signals and send...

Continue reading »

What is a Gas Sensor: Working and Types

Apogeeweb 14 Jan 2021  146

Ⅰ IntroductionThere are 400 types of scent receptors in a typical human nose that allow us to detect about 1 trillion different odors. But many of us also can't define the form or concentration of gas...

Continue reading »

Deep Analysis of Infrared Sensor

Apogeeweb 22 Nov 2019  2023

CatalogⅠ IntroductionⅡ What is an infrared sensor?Ⅲ How does the infrared sensor work?Ⅳ The basic law of infrared radiationⅤ The working principle of the infrared sensorⅥ Types of infrared sensors&nbs...

Continue reading »

The application of CCD image sensor in the micro-optic TV system

Apogeeweb 29 Dec 2017  1764

Warm hints: The word in this article is about 3200 and reading time is about 20 minutes. SummaryCCD is a new type of MOS structure device, its basic structure is a kind of close MOS capacitor, which ...

Continue reading »

pinglun 1 comment

    • pingluntus
    • JohnDoe on 2020/4/17 7:27:16

    Your style is very unique in comparison to other folks I have read stuff from. Thanks for posting when you've got the opportunity, Guess I will just bookmark this page.

Leave a Reply

Your email address will not be published.

 
 
   
 
code image
Rating: poor fair good very good excellent

# 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z