
This circuit features a PicoW microcontroller interfacing with a 0.96" OLED display, an ML8511 UV sensor, and a blue LED. The PicoW reads UV sensor data and can display information on the OLED while controlling the LED for visual feedback.

The ML8511 UV Sensor Breakout is an advanced electronic component designed to measure ultraviolet (UV) light intensity. This sensor is sensitive to UV wavelengths from 280-390 nm (UVA and UVB spectrum) and outputs an analog signal that corresponds to the UV light intensity. Common applications include detecting UV exposure in outdoor environments, monitoring UV light sources in laboratories, and integrating into wearable devices for health monitoring.

This circuit features a PicoW microcontroller interfacing with a 0.96" OLED display, an ML8511 UV sensor, and a blue LED. The PicoW reads UV sensor data and can display information on the OLED while controlling the LED for visual feedback.

This circuit is designed to measure UV intensity using an ML8511 UV sensor and display the readings on a 16x2 I2C LCD screen. The Arduino UNO microcontroller reads the analog output from the UV sensor, processes the signal, and then outputs the UV intensity data to the LCD. The circuit is powered by a 9V battery, with a resistor in series with the sensor for voltage division or current limiting.

This circuit features a Raspberry Pi Pico W microcontroller interfaced with a 128x64 OLED display, an RTC module, and an ML8511 UV sensor. The microcontroller reads UV sensor data and can display information on the OLED screen while keeping track of time using the RTC module. Power and ground connections are shared among all components.

This circuit features an ESP32 CAM module interfaced with an IR sensor and a SparkFun USB UART Breakout board. The ESP32 CAM provides power to the IR sensor and receives its output signal, likely for processing or triggering camera actions based on IR detection. The USB UART Breakout board is connected to the ESP32 CAM for serial communication, enabling programming, debugging, or data exchange with a computer.
| Pin Number | Name | Description |
|---|---|---|
| 1 | EN | Enable pin for the sensor (active high) |
| 2 | OUT | Analog output voltage proportional to UV intensity |
| 3 | GND | Ground connection |
| 4 | 3V3 | 3.3V output from the onboard voltage regulator |
| 5 | VCC | Supply voltage input (2.5V to 5.5V) |
To use the ML8511 UV Sensor Breakout in a circuit:
// ML8511 UV Sensor Example Code for Arduino UNO
int UVOUT = A0; // Output from the sensor
int REF_3V3 = A1; // 3.3V power on the Arduino board
void setup() {
Serial.begin(9600);
}
void loop() {
int uvLevel = averageAnalogRead(UVOUT);
int refLevel = averageAnalogRead(REF_3V3);
// Use the 3.3V power pin as a reference to get a very accurate output value from sensor
float outputVoltage = 3.3 / refLevel * uvLevel;
// Convert the voltage to a UV intensity level
float uvIntensity = mapfloat(outputVoltage, 0.99, 2.9, 0.0, 15.0);
Serial.print("UV Level: ");
Serial.println(uvIntensity);
delay(200);
}
// Takes an average of readings on a given pin
// Returns the average
int averageAnalogRead(int pinToRead) {
byte numberOfReadings = 8;
unsigned int runningValue = 0;
for (int x = 0; x < numberOfReadings; x++)
runningValue += analogRead(pinToRead);
runningValue /= numberOfReadings;
return runningValue;
}
// The Arduino Map function but for floats
// [from: https://www.arduino.cc/reference/en/language/functions/math/map/]
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
Q: Can the ML8511 sensor detect UVC light? A: No, the ML8511 is designed to detect UVA and UVB wavelengths and does not respond to UVC light.
Q: How do I calibrate the sensor? A: Calibration involves exposing the sensor to a known UV light source and adjusting the output to match the expected intensity.
Q: Is the sensor waterproof? A: No, the ML8511 UV Sensor Breakout is not waterproof. Protect it from moisture and water damage.
Q: Can I use the sensor with a 5V microcontroller? A: Yes, the sensor can be powered with 2.5V to 5.5V, making it compatible with both 3.3V and 5V microcontrollers.