Arduino Uno photodiode

Hi everyone!

I'm currently working on a project with photodiodes. I bought these ones(https://uk.rs-online.com/web/p/photodiodes/6278366/) but I'm having problems to make them work properly.

I followed the instructions on this link:

However the values I get from the analogRead function are really low (in the range of 60-90) even when the iPhone flash shines onto it.

From the oscilloscope 4V are obtained in this condition, which is why I was expecting a much larger value.
Anyone knows why is not working?

Thanks in advance

#define inPin0 A0 

void setup() {
 
  Serial.begin(9600);
  Serial.println();
  
}

void loop() {
  // put your main code here, to run repeatedly
      
      int pinRead0 = analogRead(inPin0);
      Serial.print(pinRead0, 4); 
      Serial.println();
      
      
      delay(500);
           
}

(deleted)

Done

edocchipi97:
Done

But not done right. Except for fixing typos that you notice, do NOT add stuff to your original post. You failed to include what was needed initially. You were called on that. Now, spycatcher2K looks silly for calling you for forgetting the diagram.

Man up to your mistake, by adding the diagram in a reply.

I changed this line: Serial.print(pinRead0, 4);

into: Serial.print(pinRead0);
because obv it was an integer

OK. First off, thank you for your very useful and polite insight on how to use a social network, and most importantly your ideas on how to solve my actual initial problem. Now, my intention was not to trigger anyone or to make anyone look stupid. I made a mistake, got it, tried to solve it and your being ridiculously rude about it does not help anyone.

(deleted)

I get the rules. But I'm having an issue and you guys are just being too peaky about them and not actually helping me.

I replied 'done'. Meaning that I got your advice and changed it.
Why would anyone think of you as being silly? That doesn't make any sense.

Anyways, if you guys can help me I would appreciate it but If you just want to be like that, I would ask for help somewhere else.

(deleted)

:wink:

(deleted)