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
- Arduino
- ESP32/ESP8266
- Microbit
- ACECode
- Explorer Series
QE001 IOT Smart Home Starter Kit for ESP32 (Easy-Plug)
QE002 IOT Smart Farm Starter Kit for ESP32 (Easy-Plug)
QE004 IOT Smart Home Basic Starter Kit for ESP32
QE005-QE006 IOT Smart Home Basic Starter Kit for micro:bit
QE007 IOT Smart Home Starter Kit for ESP32
QE010 IOT Smart Farm Starter Kit for ESP32
QD001 Smart Car Starter Kit for ESP32 - STEM Education Series
- Inventor Series
- ESP32/ESP8266
- Arduino
- Microbit
- Sensor
QB002/QB071 DHT11 Sensor
QB003 Temperature Sensor
QB005/QB068 Photoresistor Sensor
QB039/QB079 Sound Sensor
QB040/QB073 Moisture Sensor
QB041/QB066 PIR Motion Sensor
QB042/QB093 Ultrasonic Sensor
QB043/QB069 Raindrop Sensor
QB050 Photoelectric Sensor
QB055/QB084 MQ-4 Gas Sensor
QB011/QB083 Flame Sensor
QB012/QB091 Touch Sensor
QB013/QB070 Vibration Sensor
QB060/QB080 Trace Sensor
QB063/QB092 Water Sensor
QB096 Infrared Obstacle Avoidance Sensor
QB103 Barometric Pressure Sensor
QB104 UV Sensor
QB105 Color Sensor - Module
QB004 Potentiometer Module
QB006/QB074 Laser Module
QB007/QB081 LED Module
QB008/QB076 Relay Module
QB038/QB067 Button Module
QB045/QB075 130 DC Motor Module
QB046/QB087 RFID RC522 I2C Module
QB047 DS1307 Clock Module
QB048 Vibrating Motor Module
QB051/QB090 4-Digit Tube Display Module
QB054 Servo SG90 9G Module 180 Degree
QZ004 RGB LED Strip
QB059 LCD 1602 I2C Module
QB010/QB077 P-Buzzer Module
QB014/QB082 RGB Module
QB062/QB078 Humidifier Module
QB064/QB065 OLED Module
QB001/QB073+QB053 Infrared Remote Control Module
QB098 4×4 Touch Keyboard Module
QB015 Joystick Module
QB061/QB089 MP3 Module
QB095 Traffic Light Module
QB100 4-Button Module
QB101 DC Motor Driver Module
QB102 Charging Module
© Copyright ACEBOTT All Rights Reserved.