ArduinoGeneral

Questions about the UV Sensor SKU:TOY0044

userHead Lauren 2013-02-19 21:20:49 3914 Views3 Replies
A question from Nirvi Shah
[quote]I have some questions about the UV Sensor SKU:TOY0044.
We are building a uv light sensing robot for an indoor setting with sunlight coming in through a window. Can this sensor provide an output large enough for arduino Mega to read? How much is the voltage output that it will be able to provide in an indoor setting? Would we need to amplify the output?[/quote]
2013-08-01 21:13:32 @ Portugal

Hi, the figure printed to the Serial should be  the Analog Value. ;)


Best
userHeadPic Phoebe
2013-08-01 07:29:01 Hi there,

I am using the following code for this sensor:

[code]
/*
# This Sample code is for testing the UV Sensor .
#Connection:
    VCC-5V
    GND-GND
    OUT-Analog pin 0
*/

void setup()
{
  Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
void loop()
{
  int sensorValue;
  sensorValue = analogRead(0);//connect UV sensors to Analog 0   
  Serial.println(sensorValue);//print the value to serial 
  delay(200);     
}
[/code]

The figure printed to the Serial will be the UV Index, the Vout or the Analog Value?

Thank you
userHeadPic Portugal
2013-02-19 21:43:19 This sensor can directly be read for arduino mega via analog pin. but you should make sure that it can be exposed to the sunlight . it can't be read while in the shadow. yes, you can try to use the amplifier. but i think if you don't care about precision there's no need. userHeadPic Phoebe