(SKU:RB-02S023)Light Sensor

From ALSRobot-Wki
Jump to: navigation, search


Gsdag1.jpg

Contents

Product overview

New Light Sensor is based on the principle of the photoelectric effect the development of the semiconductor Light Sensor, it can be used to detect the intensity of Light on the surrounding environment, combined with a variety of single chip microcomputer controller can realize the control of optical measurement, optical and photoelectric conversion functions, such as the Sensor 3 p pin interface, can pass the 3 p Sensor cable (both analog and digital cables), and Sensor extension plate used in combination, can make Light work related interaction.

specification

  1. power supply voltage: 3.5~5V
  2. work environment: -25~+85℃
  3. Storage temperature: -30~+100 ℃
  4. size: 13.7mm×32.8mm
  5. weight: 2g

Method of use

Pin definition

  • S:output signal
  • +:(VCC)
  • -:(GND)
Gsdag2.jpg

连接示意图

Guangxianjiexian.jpg

Application of routine

Here we use Arduino controller to do the test, the Arduino itself 10 AD sampling circuit, we connect our sensor to my Arduino analog input A0 mouth.

sample code

oid setup(){       
   Serial.begin(9600);     
} 
void loop(){       
   Serial.print("Light Sensor Value:");
   Serial.println(analogRead(0));     
   delay(100);     
} 

Application effect

Code function is, by simulating the mouth 0 to collect the light sensor signal, and then output to a computer via a serial port, we can see the results using serial debugging assistant software. When we light on the sensor change from strong to weak or from weak strength, we can find on the serial debugging assistants also along with the change.

Products related to recommend

Buy address: [1]
Personal tools
Namespaces

Variants
Actions
Navigation
Tools