1.Product Introduction
UV Sensor is a test of the best amount of ultraviolet sensor, can use the photosensitive element by photovoltaic mode and light guide mode converted ultraviolet signal into measurable electrical signal, it does not need to use the wavelength filter, only sensitive to ultraviolet, direct output corresponding ultraviolet index (UV INDEX) linear voltage, output voltage range about 0 ~ 1100 mV.
Application reference: UV tester, UV lamp monitoring, sterilization lamp equipment, etc.
2.Parameter Specification
Parameter Value/Representation Operating voltage 3.3~5V Output voltage 0~5V (corresponding to UV index 0~11) Test accuracy ±1 UV Index Wavelength of response 200~370nm Output signal Analog signal Operating temperature -20°C~+85°C Size 3.2cm*2.4cm 3.Wiring Diagram
Hint
Expansion board is attached to esp32 controller board.
UV Sensor ESP32 S 39 VCC 5V GND GND 4.Sample Code
1#include <ACB_Ultraviolet.h>//Import UV library 2 3ACB_Ultraviolet uv; 4 5void setup() { 6 Serial.begin(115200);//Set serial port 7 uv.setpin(39);//Set the pin of the UV sensor 8} 9 10void loop() { 11 int uv_Value = uv.read("analogValue");//Uv analog value 12 int uv_level = uv.read("level");//Uv Level 13 Serial.print("uv value: "); 14 Serial.println(uv_Value); 15 Serial.print("uv level: "); 16 Serial.println(uv_level); 17 Serial.println("---------------------"); 18 delay(100); 19} 205.Test Result
After you successfully connect the line according to the wiring diagram and successfully upload the correct program, when you irradiate the UV sensor with the UV lamp or put the UV sensor in the outdoor sunlight, the serial port monitor will output the current analog value of UV and the corresponding level.
Ultraviolet grade index Range of UV analog values 0 <372 1 372~743 2 744~1115 3 1116~1487 4 1488~1859 5 1860~2231 6 2232~2603 7 2604~2975 8 2976~3347 9 3348~3719 10 3720~4094 11 >=4095 6.Related Resources
7.Get One Now
B2B Business: info@acebott.com