

The GYML8511 is a UV sensor module manufactured by ROHM Semiconductor. It is designed to detect ultraviolet (UV) light levels and provides an analog voltage output proportional to the intensity of UV radiation. This module is compact, efficient, and easy to integrate into various electronic systems, making it ideal for applications such as:
The GYML8511 is particularly useful in projects requiring real-time UV intensity data, offering a simple interface for both hobbyists and professionals.








| Parameter | Value |
|---|---|
| Manufacturer | ROHM Semiconductor |
| Part Number | GYML8511 |
| Operating Voltage | 3.0V to 5.5V |
| Output Voltage Range | 0V to 1.1V (typical) |
| UV Wavelength Range | 280 nm to 400 nm (UV-A and UV-B) |
| Operating Temperature | -30°C to +85°C |
| Current Consumption | 300 µA (typical) |
| Dimensions | 21 mm x 13 mm x 2 mm |
The GYML8511 module has a simple pinout, as shown below:
| Pin Name | Pin Number | Description |
|---|---|---|
| VCC | 1 | Power supply input (3.0V to 5.5V). |
| GND | 2 | Ground connection. |
| OUT | 3 | Analog voltage output proportional to UV light. |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.OUT pin provides an analog voltage proportional to the UV intensity. Connect this pin to an analog input pin of a microcontroller (e.g., Arduino) or an ADC (Analog-to-Digital Converter) for measurement.Below is an example of how to connect and read data from the GYML8511 using an Arduino UNO:
VCC to the 3.3V pin on the Arduino.GND to the GND pin on the Arduino.OUT to the A0 analog input pin on the Arduino.// GYML8511 UV Sensor Example Code
// This code reads the analog output from the GYML8511 and calculates the UV intensity.
const int uvPin = A0; // Analog pin connected to the OUT pin of GYML8511
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(uvPin, INPUT); // Set the UV sensor pin as input
}
void loop() {
int uvAnalogValue = analogRead(uvPin); // Read the analog value from the sensor
float uvVoltage = uvAnalogValue * (5.0 / 1023.0);
// Convert the analog value to voltage (assuming 5V reference)
// Print the UV voltage to the Serial Monitor
Serial.print("UV Voltage: ");
Serial.print(uvVoltage);
Serial.println(" V");
// Add a delay for stability
delay(1000); // Wait for 1 second before the next reading
}
No Output Voltage from the Sensor
VCC pin is receiving 3.3V to 5V.Fluctuating or Noisy Readings
VCC and GND to stabilize the power supply.Inaccurate UV Measurements
Sensor Overheating
Q: Can the GYML8511 measure UV-C light?
A: No, the GYML8511 is designed to detect UV-A and UV-B light in the 280 nm to 400 nm range. It does not detect UV-C light.
Q: Is the sensor waterproof?
A: No, the GYML8511 is not waterproof. Protect it from moisture and water exposure.
Q: Can I use the GYML8511 with a 3.3V microcontroller?
A: Yes, the GYML8511 operates within a voltage range of 3.0V to 5.5V, making it compatible with 3.3V systems.
Q: How do I convert the output voltage to a UV index?
A: The output voltage is proportional to UV intensity. You can use a calibration formula or reference the sensor's datasheet for conversion details.
This concludes the documentation for the GYML8511 UV Sensor Module. For further assistance, refer to the manufacturer's datasheet or contact technical support.