Basic Laser Gate Timer with display

Hello All,

I would like to have some code that will allow me to use two LDRs as a start and stop timer that will be shown on a display.

I would like the timer to start when the first LDR is blocked and stopped when the second LDR is blocked (Over a known distance), its just a basic gate timer.

As the distance is known and the time will be determined by the LDRs it would be great to display the result on the LCD in m/s.

Can anyone help! I have no clue what to do and I'd really appreciate some help! I cant seem to find any similar projects as they all seem to use a single trigger for start stop whereas i need two, one for start and one for stop. No one seems to have displayed the result on an LCD in m/s.

You're asking us to make the project diagram, components list, and the code for you, don't you?

Don't you think you should start studying a bit to see how to connect an LDR to Arduino and how to read from it instead of asking us to do the whole work for you?

I hope you want to learn things, not just apply something others (e.g. ChatGPT) could give to you. Search for any YouTube tutorial about how to connect an LDR to Arduino, put your hands on it building a first "basic" prototype, then post here the results and asking us help about the problems you encountered.

You don't want to use an LDR because they are 10 to 100 ms slow.
Look for phototransistors or IR detectors, faster than 1 ms.

Put the detector at the back end of a black-inside tube and then the light source won't matter as long as whatever blocks the light is not also bright.

I'm afraid LDR speed is the last problem OP has...
Let's first see what he says he can do and what he knows.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.