자외선 UV 센서 -GUVA- S12SD

(UV Sensor -GUVA- S12SD)

개요

  • 본 제품은 자외선을 측정할 수 있는 GUVA- S12SD 센서 모듈입니다.
  • 자외선의 강도를 측정하여 0-1V의 아날로그 출력으로 출력합니다.
  • 200-370nm UV 파장을 검출합니다.

특징

  • Operating voltage: 3.3v-5v
  • Output voltage: 0-1v (DC)
  • Measuring accuracy: 1UV INDEX
  • Response wavelength: 200nm-370nm
  • Stable work: < 0.5 s
  • Operating current: 0.03mA (typical value) ; 0.1mA (maximum value)
  • Working voltage: 5v

     

문서

  • 예제: 센서 VCC에 5V, Gnd는 Gnd에 Sig는 A0에 연결합니다.
  • #define vref 4.9
    void setup(){

    Serial.begin(9600);

    }

    void loop()
    {
    int sensorValue;
    long sum=0;
    for(int i=0;i<10;i++)// accumulate readings for 1024 times
    {
    sensorValue=analogRead(A0);
    sum=sensorValue+sum;
    // delay(2);
    }
    long meanVal = sum/10; // get mean value
    float vout=meanVal*vref;
    Serial.print("vout is :");
    Serial.print(vout,2);
    Serial.print("\n");
    if(vout<=90)
    {
    Serial.print("The current UV index is:");
    Serial.println(0);// get a detailed calculating expression for UV index in schematic files.
    //Serial.print("\n");
    }
    else
    {
    Serial.print("The current UV index is:");
    Serial.println(1E-06*vout*vout+0.008*vout-0.715,2);// get a detailed calculating expression for UV index in schematic files.
    // Serial.print("\n");
    }
    delay(1000);

    }

연관제품