The Grove – UV Sensor is used for detecting the intensity of incident ultraviolet(UV) radiation. This form of electromagnetic radiation has shorter wavelengths than visible radiation. The Grove - UV Sensor is based on the sensor GUVA-S12D which has a wide spectral range of 200nm-400nm. The module outputs electrical signal which varies with the UV intensity.
Dependencies: mbed
Fork of Seeed_Grove_UV_Sensor_Example by
Revision 0:26a3a6edbb11, committed 2014-09-05
- Comitter:
- mbedAustin
- Date:
- Fri Sep 05 03:00:54 2014 +0000
- Commit message:
- Seeed Grove UV Sensor example. Very simple initial commit. Takes in voltage from ADC and reports it to the user via terminal as % of total voltage. ~10% = indoors
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 26a3a6edbb11 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Sep 05 03:00:54 2014 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +AnalogIn sensorUV(A0); + +int main() { + float value; + while (true) { + value = sensorUV; + printf("\rUV Value = %3.2f%%",value*100); + wait(.1); + } +}
diff -r 000000000000 -r 26a3a6edbb11 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Sep 05 03:00:54 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file