Gyml8511 Analog Output Ultra Violet Light Sensor Module
Rs. 458.00 Rs. 550.00
- Brand: https://www.rohm.com/sensor-shield-support/uv-sensor
- Product Code: SEN-UV
- SKU -
- Availability: 2-3 Days
- Price in reward points: 4
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Model | GY-ML8511 |
Operating Voltage(VDC) | 3 to 5 |
Operating Current | 120μA (typical) 190μA (max) |
Operating Temperature (°C) | -40 to +90 |
Detection Wavelength Band | 280nm to 390nm |
Peak Wavelength | 365nm |
OVERVIEW:
-Operating voltage (VCC): 3 V to 5V
-Operating current: 120μA (typical) 190μA (max)
-Operating Temperature: -40°C ~ +85°C
-Photodiode sensitive to UV-A and UV-B
-Embedded operational amplifier
-Analog voltage output
-Low supply current (300uA type) and low standby current (0.1uA type)
PACKAGE INCLUDES:
1 PCS x ML8511 Analog Output Ultra-Violet Light Sensor Module
https://www.rohm.com/sensor-shield-support/uv-sensor
//SOURCE CODE TAKEN FROM BELOW LINK
//http://arduinolearning.com/code/arduino-and-ml8511-example.php
int UVsensorIn = A0; //Output from the sensor
void setup()
{
pinMode(UVsensorIn, INPUT);
Serial.begin(9600); //open serial port, set the baud rate to 9600 bps
}
void loop()
{
int uvLevel = averageAnalogRead(UVsensorIn);
float outputVoltage = 3.3 * uvLevel/1024;
float uvIntensity = mapfloat(outputVoltage, 0.99, 2.9, 0.0, 15.0);
Serial.print(" UV Intensity: ");
Serial.print(uvIntensity);
Serial.print(" mW/cm^2");
Serial.println();
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);
}
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;
}
15 days