GUVAS12D Class
- ID: guvas12d
- Name: Analog UV Sensor
- Other Names: GUVA-S12D UV Sensor
- Category: light
- Manufacturer: seeed
- Connection: analog
- Link: http://wiki.seeed.cc/Grove-UV_Sensor/
- Kit: eak
UPM module for the GUVA-S12D UV sensor
Methods
GUVAS12D
-
pin
-
aref
GUVA-S12D UV sensor constructor
Parameters:
-
pin
NumberAnalog pin to use
-
aref
NumberAnalog reference voltage to use
Returns:
value
-
aref
-
samples
Gets the average voltage value from the sensor
Parameters:
-
aref
NumberReference voltage in use (usually 5.0 V or 3.3 V)
-
samples
NumberNumber of samples to average over (currently ignored)
Returns:
Average voltage reading
volts
()
Number
Gets the voltage value from the sensor
Returns:
Voltage reading
intensity
()
Number
Gets the computed illumination intensity from the sensor in mW/m^2.
Returns:
Intensity over the sensitive wavelengths in mW/m^2
setScale
-
scale
Set sensor scale. This scale is applied to the intensity value before the offset is applied. Default is 1.0.
Parameters:
-
scale
NumberScale to apply.
setOffset
-
offset
Set sensor offset. This offset is applied to the intensity value before scaling. Default is 0.0.
Parameters:
-
offset
NumberOffset to apply.