Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit LTR390 UV Light Sensor: Examples, Pinouts, and Specs

Image of Adafruit LTR390 UV Light Sensor
Cirkit Designer LogoDesign with Adafruit LTR390 UV Light Sensor in Cirkit Designer

Introduction

The Adafruit LTR390 UV Light Sensor is a precision sensor module capable of detecting ultraviolet (UV) light and ambient light. It provides accurate UV index readings, which are essential for monitoring exposure to ultraviolet radiation. This sensor is commonly used in applications such as UV index monitoring, UV sterilization systems, environmental sensing, and wearable devices that track UV exposure.

Explore Projects Built with Adafruit LTR390 UV Light Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino-Controlled UV LED Sterilization System with Dual UV Sensors
Image of SAN-CATH: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
This circuit uses an Arduino UNO to control a set of UV-C LEDs via a FemtoBuck LED driver, based on input from two UV light sensors. The UV LEDs are activated by a push button and remain on until the sensors detect a desired UV level, at which point the LEDs are turned off and a green indicator LED is lit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based UV Intensity Monitoring System with LCD Display
Image of Renata: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO with LDR Sensor Light Detection System
Image of Prueba2: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
This circuit consists of an Arduino UNO microcontroller board connected to an LDR (Light Dependent Resistor) sensor module (LM393). The LDR sensor's digital output (D0) is connected to the Arduino's digital pin D4, allowing the Arduino to detect light intensity changes. The sensor is powered by the Arduino's 5V output, and both share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Enabled UV Monitoring System with OLED Display
Image of UV_DETECTOR_BREADBOARD: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit LTR390 UV Light Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of SAN-CATH: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
Arduino-Controlled UV LED Sterilization System with Dual UV Sensors
This circuit uses an Arduino UNO to control a set of UV-C LEDs via a FemtoBuck LED driver, based on input from two UV light sensors. The UV LEDs are activated by a push button and remain on until the sensors detect a desired UV level, at which point the LEDs are turned off and a green indicator LED is lit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Renata: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
Arduino UNO Based UV Intensity Monitoring System with LCD Display
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Prueba2: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
Arduino UNO with LDR Sensor Light Detection System
This circuit consists of an Arduino UNO microcontroller board connected to an LDR (Light Dependent Resistor) sensor module (LM393). The LDR sensor's digital output (D0) is connected to the Arduino's digital pin D4, allowing the Arduino to detect light intensity changes. The sensor is powered by the Arduino's 5V output, and both share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of UV_DETECTOR_BREADBOARD: A project utilizing Adafruit LTR390 UV Light Sensor in a practical application
Wi-Fi Enabled UV Monitoring System with OLED Display
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Features

  • UV and ambient light sensing
  • I2C interface for easy communication with microcontrollers
  • Wide spectral range: 200nm to 800nm (UV and visible spectrum)
  • Programmable gain and integration time
  • UV Index measurement range: 0 to 11+
  • Operating Voltage: 3.3V to 5V

Pin Configuration and Descriptions

Pin Number Name Description
1 VIN Power supply (3.3V to 5V)
2 GND Ground connection
3 SCL I2C clock line
4 SDA I2C data line
5 INT Interrupt pin (optional use)

Usage Instructions

Connecting the Sensor

  1. Connect the VIN pin to the 3.3V or 5V output on your microcontroller.
  2. Connect the GND pin to the ground on your microcontroller.
  3. Connect the SCL pin to the I2C clock pin on your microcontroller.
  4. Connect the SDA pin to the I2C data pin on your microcontroller.
  5. (Optional) Connect the INT pin to an available digital pin if interrupt functionality is required.

Programming the Sensor with Arduino

To use the LTR390 with an Arduino UNO, you will need to use the I2C communication protocol. Below is a sample code snippet to get started with reading UV index values from the sensor.

#include <Wire.h>
#include <Adafruit_LTR390.h>

Adafruit_LTR390 uv = Adafruit_LTR390();

void setup() {
  Serial.begin(9600);
  // Initialize the sensor
  if (!uv.begin()) {
    Serial.println("Couldn't find LTR390 sensor!");
    while (1);
  }
  Serial.println("Found LTR390 sensor");
}

void loop() {
  // Perform a UV reading
  uint32_t uv_index = uv.readUVS();
  Serial.print("UV Index: ");
  Serial.println(uv_index);

  delay(1000); // Wait for 1 second before the next reading
}

Important Considerations and Best Practices

  • Ensure that the sensor is not exposed to direct sunlight for extended periods to avoid damage.
  • Use pull-up resistors on the I2C lines if your microcontroller does not have built-in pull-ups.
  • Calibrate the sensor if precise measurements are critical for your application.
  • Avoid placing the sensor near UV sources like black lights or UV LEDs that could saturate the sensor.

Troubleshooting and FAQs

Common Issues

  • Sensor not detected: Ensure that the wiring is correct and that the sensor is properly powered.
  • Inaccurate readings: Verify that the sensor is not being affected by direct sunlight or other strong UV sources.

Solutions and Tips

  • Check I2C connections: Use a multimeter to ensure there is continuity between the sensor pins and the microcontroller.
  • I2C address conflict: Make sure that no other devices on the I2C bus have the same address as the LTR390 sensor.
  • Use the interrupt feature: To save power, use the INT pin to wake up your microcontroller when a certain threshold is reached.

FAQs

Q: Can the sensor measure visible light? A: Yes, the LTR390 can measure both UV and ambient light.

Q: What is the range of UV index values the sensor can measure? A: The sensor can measure UV index values from 0 to 11+.

Q: Is the sensor waterproof? A: No, the LTR390 is not waterproof. Protect it from moisture and water exposure.

Q: How do I calibrate the sensor? A: Calibration involves comparing the sensor readings to a known light source or a reference sensor. Adafruit provides a detailed guide on calibration procedures.

For further assistance, consult the Adafruit LTR390 datasheet and the Adafruit support forums.