GY-63_MS5611/libraries/uv-sensor
2023-11-23 14:23:34 +01:00
..
.github 0.1.2 uv-sensor 2023-01-23 17:06:45 +01:00
examples/uv-sensor 0.1.2 uv-sensor 2023-01-23 17:06:45 +01:00
test 0.1.1 uv-sensor 2022-12-22 14:36:21 +01:00
.arduino-ci.yml 0.1.1 uv-sensor 2022-12-22 14:36:21 +01:00
CHANGELOG.md 0.1.3 uv-sensor 2023-11-23 14:23:34 +01:00
LICENSE 0.1.2 uv-sensor 2023-01-23 17:06:45 +01:00
README.md 0.1.3 uv-sensor 2023-11-23 14:23:34 +01:00
uv-sensor.ino 0.1.2 uv-sensor 2023-01-23 17:06:45 +01:00

Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release PlatformIO Registry

uv-sensor

Arduino sketch for analog UV sensor.

Description

Foo Image courtesy Tinytronics

This small (type-less) UV-sensor is powered by 3.3 .. 5 V so it can be used by almost any microprocessor.

The sensor has an analogue output that is roughly linear with the UV-index (sunlight assumed, see notes)

Voltage UV index risk of harm Colour
<0.050 0 low Green
0.227 1 low Green
0.318 2 low Green
0.408 3 moderate Yellow
0.503 4 moderate Yellow
0.606 5 moderate Yellow
0.696 6 high Orange
0.795 7 high Orange
0.881 8 very high Red
0.976 9 very high Red
1.079 10 very high Red
1.170> 11 extreme Purple

From this table the formula is derived (spreadsheet) which is pretty linear between UV 1 and 11.

There is an extended library version which has more functionality and documentation.

Notes

Note: The sensor is not calibrated and the table is indicative for sunlight (assumption!) and therefore not suitable for e.g. medical or industrial usage.

Note: UV radiation will not go through glass, so inside you will most likely always read zero. This may help to calibrate the zero level of the sensor.

Note: depending on the light source used, the table above is incorrect.

Sensitivity

The sensor is sensitive for wavelengths from 200 - 370 nm, so mostly in UVB and UVA region and less in the UVC.

https://en.wikipedia.org/wiki/Ultraviolet

Future

Future development will be done in the library version only.

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,