Hi!
First of all,i am pretty new at this.
I am about the build a laser range finder with the Arduino Uno rev 3 using a laser pointer and a TSL250R Light to voltage sensor as detector.
I wonder if someone could help me with the code for counting the pulses when the laserbeam hits the detector.
i noticed that the sensoor is using analog voltage and this i have managed to print out. however, to be able to read the distance i need pulses instead, so i need something like
if voltage > threshold then pulse=1
if voltage < threshold then pulse=0
then start counting the pulses...
hope you understand what i mean, so if anyone has an idea of such code / program or more simple program please let me know.