I have been buildning an IR communication link between my arduino unos from scratch, but I've run in to a problem. I don't know if the sensor I am using is fast enough. The fastest reliable reaction I can get from it is about 3ms at a 10mm distance.
digitalWrite(dataPin,state);
delay(3);
Serial.print(analogRead(A0));
Serial.println(digitalRead(dataPin));
state = !state;
This is my sensor: Dropbox - Public - Simplify your life
When I was testing it in the beginning, I found that the higher resistance I used the more sensitive the sensor got. Right now it's using a 1.42MOhm resistor.
Is this setup good or really wrong? I've just been going by trial an error really