

UVSense
UV detection sensor module used to measure ultraviolet light levels. An analog UV sensor that measures the intensity of ultraviolet radiation, returning ADC values proportional to UV index levels.
WHAT YOU'LL LEARN
- Reading analog UV sensor values via ADC port
- Understanding UV index measurement and safety levels
- Mapping analog readings to UV index categories
- Using LED indicators for environmental data display
DOWNLOADS
The Challenge
Build a program that measures UV light intensity and displays the UV index level using LED color indicators.
Understanding the Add-On
The UVSense module is an analog ultraviolet light sensor designed for the Pluto drone. It measures the intensity of UV radiation in the environment and outputs an analog voltage proportional to the UV index. By reading this analog value through the ADC port, you can determine the current UV exposure level and categorize it into standard UV index ranges (low, moderate, high, very high, extreme). This data can be used to drive LED indicators or trigger safety alerts. Control Signal UVSensor Type ADCOutput Type ADCPort Used UV Sensor Type ADC Output Type ADC Port Used
Wiring & Connections
Connect the UVSense to the ADC port on the Primus V5/X2 board. Ensure the UV sensor is mounted with its detection element facing upward or toward the light source for accurate readings. Avoid covering or shading the sensor during operation.
| Primus V5/X2 Pin | Peripheral |
|---|---|
| VCC on ADC port | VCC on UV Sensor |
| GND on ADC port | GND on UV Sensor |
| Signal on ADC port | OUT on UV Sensor |
How It Works
Approach The UV sensor outputs an analog voltage that varies with the intensity of ultraviolet radiation. This voltage is read through the ADC port and converted to a numerical value. By mapping these ADC values to known UV index ranges, we can categorize the current UV exposure level and display it using colored LEDs on the drone. Code Logic Explained On Start: The ADC input is initialized and calibrated. An indicator LED confirms the program is ready to take UV measurements.Pluto Loop: The code continuously reads the analog value from the UV sensor via the ADC port. The raw ADC value is mapped to UV index categories (low, moderate, high, very high, extreme). Based on the category, different LED colors are displayed - green for low, yellow for moderate, orange for high, red for very high, and flashing red for extreme UV levels.On Stop: All LEDs are turned off and the ADC reading is stopped. Detailed code logic and exact ADC threshold values will be updated once the PlutoBlocks project documentation is provided.
Real-World Applications
UV index monitoring drone Environmental radiation mapping Outdoor safety assessment
Try Further
Ready for the next challenge? Try these extensions to deepen your understanding. 1Map UV levels at different altitudes by flying at varying heights. 2Create a UV safety alert system with buzzer for dangerous levels. 3Log UV readings over time to create a UV exposure map. Pluto Drone Add-On Projects — Compatible with Pluto 1.2 (Primus V5) & Pluto X (Primus X2) — Drona Aviation
Real-World Applications
Try Further
Ready for the next challenge? Try these extensions to deepen your understanding.
