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

How to Use CJMCU-GUVA-S12SD Ultraviolet Sensor: Examples, Pinouts, and Specs

Image of CJMCU-GUVA-S12SD Ultraviolet Sensor
Cirkit Designer LogoDesign with CJMCU-GUVA-S12SD Ultraviolet Sensor in Cirkit Designer

Introduction

The CJMCU-GUVA-S12SD is a compact ultraviolet (UV) sensor designed to detect UV light levels and provide an analog output proportional to the intensity of UV radiation. This sensor is highly sensitive to UV-A and UV-B wavelengths, making it ideal for applications requiring accurate UV monitoring. Its small size and low power consumption make it suitable for portable devices and embedded systems.

Explore Projects Built with CJMCU-GUVA-S12SD Ultraviolet 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 CJMCU-GUVA-S12SD Ultraviolet 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
Wi-Fi Enabled UV Monitoring System with OLED Display
Image of UV_DETECTOR_BREADBOARD: A project utilizing CJMCU-GUVA-S12SD Ultraviolet 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
Arduino UNO-Based Smart Garden System with DHT22, UV Sensor, and Soil Moisture Sensor
Image of terrarium_circuit: A project utilizing CJMCU-GUVA-S12SD Ultraviolet Sensor in a practical application
This circuit is an automated environmental monitoring and control system using an Arduino UNO. It includes sensors for temperature, humidity, UV light, and soil moisture, and controls a water pump, fan, and LED strip via MOSFETs. The Arduino reads sensor data and actuates the devices to maintain optimal conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer
WiFi LoRa Environmental Monitoring System with INMP441 Mic and Multiple Sensors
Image of ba_sensing: A project utilizing CJMCU-GUVA-S12SD Ultraviolet Sensor in a practical application
This circuit is a solar-powered environmental monitoring system that uses a WiFi LoRa 32V3 microcontroller to collect data from various sensors, including a microphone, UV light sensor, air quality sensor, and temperature/humidity/pressure sensor. The collected data is processed and transmitted via LoRa communication, making it suitable for remote environmental data logging and monitoring applications.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with CJMCU-GUVA-S12SD Ultraviolet 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 CJMCU-GUVA-S12SD Ultraviolet 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 UV_DETECTOR_BREADBOARD: A project utilizing CJMCU-GUVA-S12SD Ultraviolet 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
Image of terrarium_circuit: A project utilizing CJMCU-GUVA-S12SD Ultraviolet Sensor in a practical application
Arduino UNO-Based Smart Garden System with DHT22, UV Sensor, and Soil Moisture Sensor
This circuit is an automated environmental monitoring and control system using an Arduino UNO. It includes sensors for temperature, humidity, UV light, and soil moisture, and controls a water pump, fan, and LED strip via MOSFETs. The Arduino reads sensor data and actuates the devices to maintain optimal conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ba_sensing: A project utilizing CJMCU-GUVA-S12SD Ultraviolet Sensor in a practical application
WiFi LoRa Environmental Monitoring System with INMP441 Mic and Multiple Sensors
This circuit is a solar-powered environmental monitoring system that uses a WiFi LoRa 32V3 microcontroller to collect data from various sensors, including a microphone, UV light sensor, air quality sensor, and temperature/humidity/pressure sensor. The collected data is processed and transmitted via LoRa communication, making it suitable for remote environmental data logging and monitoring applications.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • UV index monitoring for weather stations
  • Environmental sensing and research
  • Wearable devices for UV exposure tracking
  • Safety systems to prevent overexposure to UV radiation
  • Industrial UV light monitoring

Technical Specifications

The CJMCU-GUVA-S12SD sensor is built for precision and ease of integration. Below are its key technical details:

Parameter Value
Operating Voltage 3.3V to 5.0V
Output Type Analog voltage
UV Detection Range 240 nm to 370 nm (UV-A and UV-B)
Operating Current 0.06 mA (typical)
Output Voltage Range 0V to Vcc
Operating Temperature -30°C to +85°C
Dimensions 15mm x 15mm

Pin Configuration

The CJMCU-GUVA-S12SD has a simple 4-pin interface for easy integration into circuits. The pinout is as follows:

Pin Name Description
1 VCC Power supply input (3.3V to 5.0V)
2 GND Ground connection
3 OUT Analog output voltage proportional to UV intensity
4 NC Not connected (leave unconnected)

Usage Instructions

How to Use the CJMCU-GUVA-S12SD in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5.0V power source and the GND pin to the ground of your circuit.
  2. Read the Output: Connect the OUT pin to an analog input pin of a microcontroller (e.g., Arduino) or an analog-to-digital converter (ADC) to measure the output voltage.
  3. Interpret the Output: The output voltage is proportional to the UV intensity. Higher UV levels result in higher output voltages.

Important Considerations

  • Power Supply: Ensure a stable power supply within the specified voltage range to avoid inaccurate readings or damage to the sensor.
  • Placement: Place the sensor in a location with direct exposure to UV light for accurate measurements. Avoid obstructions or shading.
  • Calibration: For precise applications, calibrate the sensor output against a known UV source or reference device.
  • Protection: Avoid exposing the sensor to extreme environmental conditions (e.g., high humidity or corrosive environments) to maintain its longevity.

Example: Connecting to an Arduino UNO

Below is an example of how to connect and read data from the CJMCU-GUVA-S12SD using an Arduino UNO:

Circuit Diagram

  • Connect the VCC pin of the sensor to the 5V pin on the Arduino.
  • Connect the GND pin of the sensor to the GND pin on the Arduino.
  • Connect the OUT pin of the sensor to the A0 analog input pin on the Arduino.

Arduino Code

// CJMCU-GUVA-S12SD UV Sensor Example Code
// This code reads the analog output from the sensor and calculates the UV intensity.

const int uvSensorPin = A0; // Analog pin connected to the sensor's OUT pin
float uvVoltage = 0.0;      // Variable to store the sensor's output voltage
float uvIntensity = 0.0;    // Variable to store the calculated UV intensity

void setup() {
  Serial.begin(9600); // Initialize serial communication for debugging
  pinMode(uvSensorPin, INPUT); // Set the sensor pin as input
}

void loop() {
  int sensorValue = analogRead(uvSensorPin); // Read the analog value from the sensor
  uvVoltage = sensorValue * (5.0 / 1023.0); // Convert the analog value to voltage
  
  // Convert voltage to UV intensity (example conversion factor, adjust as needed)
  uvIntensity = uvVoltage * 100.0; // Example: 1V = 100 UV index units
  
  // Print the results to the Serial Monitor
  Serial.print("UV Voltage: ");
  Serial.print(uvVoltage);
  Serial.print(" V, UV Intensity: ");
  Serial.print(uvIntensity);
  Serial.println(" units");
  
  delay(1000); // Wait 1 second before the next reading
}

Notes on the Code

  • The conversion factor from voltage to UV intensity may vary depending on the specific application. Adjust the formula as needed based on calibration or manufacturer data.
  • Ensure the Arduino's analog reference voltage matches the sensor's output range for accurate readings.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Voltage

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the power supply voltage is within the specified range.
  2. Inaccurate Readings

    • Cause: Sensor not exposed to direct UV light or interference from other light sources.
    • Solution: Place the sensor in an unobstructed location with direct UV exposure. Shield it from visible or infrared light if necessary.
  3. Fluctuating Output

    • Cause: Unstable power supply or electrical noise.
    • Solution: Use a decoupling capacitor (e.g., 0.1 µF) between VCC and GND to stabilize the power supply.

FAQs

Q: Can the sensor detect UV-C light?
A: No, the CJMCU-GUVA-S12SD is designed to detect UV-A and UV-B wavelengths (240 nm to 370 nm). It is not sensitive to UV-C light.

Q: How do I calibrate the sensor?
A: To calibrate, compare the sensor's output with a reference UV meter under the same conditions. Use the reference data to adjust the conversion factor in your calculations.

Q: Can I use this sensor outdoors?
A: Yes, but ensure the sensor is protected from extreme environmental conditions such as high humidity, rain, or dust. Consider using a UV-transparent enclosure for protection.

Q: What is the maximum UV intensity the sensor can measure?
A: The maximum measurable UV intensity depends on the output voltage range and the conversion factor. Refer to the sensor's datasheet for detailed information.

This concludes the documentation for the CJMCU-GUVA-S12SD Ultraviolet Sensor.