S12SD UV sensor not working

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nothankyou
 
Posts: 5
Joined: Mon May 02, 2022 11:47 am

S12SD UV sensor not working

Post by nothankyou »

1) Tell us what product you are asking about, your Adafruit order number, and when you purchased the item. --> 2834095 - 1918 -UV sensor S12SD
2) Post clear photos, focused, and detailed pictures of the front and back of the boards, as well as any connections to the board.
3) For software issues, please post the complete text of your IDE's error message. Please use the

Code: Select all

 tag when posting error messages as well as code.
4) If you are having trouble with a code sketch, please post or link to your entire source code. Again, please use the [code] tag when posting code.
5) If you are building a project from the Learning System, please post a link to the page you are having difficulty with.
6) Please create a new post in the forums instead of piggybacking on an existing topic. If you do see other threads with similar questions or issues referring to them in your post can help and is greatly appreciated!
7) Responses in the forums can take up to 1-2 business days. Please reply to this thread with a link to your post in the forums if you do not receive a response within that time frame.

My analog up light sensor is defective. I tested my light source
with a calibrated meter and the S12SD is not responding to a calibrated
light source. Plz replace or refund.

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: S12SD UV sensor not working

Post by adafruit_support_carter »

Please post a photo of your setup showing how everything is connected.

User avatar
nothankyou
 
Posts: 5
Joined: Mon May 02, 2022 11:47 am

Re: S12SD UV sensor not working

Post by nothankyou »

i get no response from my light
Attachments
IMG_0868.jpg
IMG_0868.jpg (541.43 KiB) Viewed 167 times
IMG_0869.jpg
IMG_0869.jpg (638.1 KiB) Viewed 167 times
IMG_0870.jpg
IMG_0870.jpg (385.17 KiB) Viewed 167 times

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: S12SD UV sensor not working

Post by adafruit_support_carter »

Thanks for the photos. That all seems generally OK.

Are the header pins soldered to the breakout here?
pins.jpg
pins.jpg (26.71 KiB) Viewed 164 times
With that setup, what code are you running?

User avatar
nothankyou
 
Posts: 5
Joined: Mon May 02, 2022 11:47 am

Re: S12SD UV sensor not working

Post by nothankyou »

yes, they are soldered.

Code: Select all

int UVsensor = A0;    // select the input pin for the potentiometer
int ledPin = 13;      // select the pin for the LED
int UVsensorValue = 0;  // variable to store the value coming from the sensor

void setup() {
  // declare the ledPin as an OUTPUT:
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // read the value from the sensor:
   // turn the ledPin on
  digitalWrite(ledPin, HIGH);
  UVsensorValue = analogRead(UVsensor);
  Serial.println(" ");
  Serial.print(UVsensorValue);
  Serial.print(" V  |  ");
  Serial.print(UVsensorValue*10); //constant will be updated once i can calibrate the sensor
  Serial.print("  mW/cm^2");
 // stop the program for <100> milliseconds:
  delay(100);
  // turn the ledPin off:
  digitalWrite(ledPin, LOW);
  // stop the program for for <500> milliseconds:
  delay(400);
Last edited by adafruit_support_carter on Wed May 11, 2022 2:42 pm, edited 1 time in total.
Reason: added [code] tags

User avatar
nothankyou
 
Posts: 5
Joined: Mon May 02, 2022 11:47 am

Re: S12SD UV sensor not working

Post by nothankyou »

I have header pins soldered to the breakout board. The breadboard is just to give a flat background

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: S12SD UV sensor not working

Post by adafruit_support_carter »

Thanks. Code seems OK. With that sketch running, what values are you seeing in the Serial Monitor (a) under normal ambient light and (b) under your test light?

User avatar
nothankyou
 
Posts: 5
Joined: Mon May 02, 2022 11:47 am

Re: S12SD UV sensor not working

Post by nothankyou »

When the light is off, i see 0
when the light is on i see 0

that seems to be a decoration and not a sensor :)

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: S12SD UV sensor not working

Post by adafruit_support_carter »

It's odd that it's a prefect 0 each time, with no variation.

Do you have any male-male jumper wires? Or even just a short length of wire?

If so, disconnect the sensor, but leave the wiring harness attached to the Arduino board. Run the same sketch above and open the Serial Monitor. Then, with the male-male jumper wire, jumper at the female end of the wiring harness (where the sensor was attached) between these two wires:
jumper.jpg
jumper.jpg (37.76 KiB) Viewed 145 times
What value shows up in the Serial Monitor then?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”