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);
}
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.
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.