Pluto Logo

by Drona Aviation

Profile
Menu
All Projects
UVSense
ADD-ON MODULE
UVSense on Drone

UVSense

SENSORIntermediate
X2_UVSNS

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.

DIFFICULTYIntermediate
PORTADC
SIGNALAnalog (ADC)

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

PlutoBlocks Code
Coming Soon
HEX Firmware File
Coming Soon
1

The Challenge

✨

Build a program that measures UV light intensity and displays the UV index level using LED color indicators.

2

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

3

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 PinPeripheral
VCC on ADC portVCC on UV Sensor
GND on ADC portGND on UV Sensor
Signal on ADC portOUT on UV Sensor
4

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.

5

Real-World Applications

UV index monitoring drone Environmental radiation mapping Outdoor safety assessment

6

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

7

Real-World Applications

UV index monitoring drone
Environmental radiation mapping
Outdoor safety assessment
8

Try Further

Ready for the next challenge? Try these extensions to deepen your understanding.

1
Map UV levels at different altitudes by flying at varying heights.
2
Create a UV safety alert system with buzzer for dangerous levels.
3
Log UV readings over time to create a UV exposure map.