1. 概述
本传感器是一个arduino专用传感器,它的连接端口兼容arduino传感器扩展板。它是一款测试紫外线的传感器,它包含GUVA-S12SD,可以广泛用于智能穿戴设备的紫外线指数检测,如带UV指数检测功能的手表,带UV指数检测的智能手机,户外检测UV指数设备等,还可以用于紫外线消毒时,用来监测紫外线强度、UV火焰探测器等。传感器自带4个定位孔,方便你将传感器固定在其他设备。
2. 规格参数
工作电压:3.3-5V(DC)
接口:3PIN接口
输入信号:模拟信号
光谱检测范围:240-370nm
活性区域:0.076mm2
响应度:0.14A/W
暗电流:1nA
光电流:101~125nA UVA灯,1mW/cm2
重量:2.5g
3. 接线图
4. 测试代码
/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
This example code is in the public domain.
*/
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
5. 实验结果
接上线,烧录程序,上电后,打开串口监视器显示数据,如下图。