Timer for pendulum clocks to accurately count 'n' pendulum swings with IR sensor

Hello, I want to build a UNO (with RTC) project to accurately time say 1000 total swings of a pendulum. I guess using an IR sensor with perhaps debounce circuitry and displaying the elapsed time to a few milliseconds using a display.

  • I have previously built a timer with a (memory) stopwatch and 4000 series TTL- to count say 1000 swings say 30 times OK... and am now dabbling with an Arduino but know little about coding- so please be patient! :confused:
    Many thanks for any help.

Ok. What do you need help with, specifically? What components do you have so far (give links please)?

Many thanks for the reply

PaulRB:
Ok. What do you need help with, specifically? What components do you have so far (give links please)?

I have the UNO, an RTC High Accuracy DS3231 RTC & EEPROM, and some basic reflective I.R. leds (no display yet).
I can make some circuitry to give pulses from the led when the pendulum reflects as it swings.
I want the Arduino to count say 1000 swings using the voltage pulses, and display (and hopefully store) the total duration for the 1000 swings...there may be multiple reflections from each pendulum pass so I need to obviate these. It would be good if I could store say 100 duration events (each of 1000 swings).

I currently have very little knowledge on coding though, so may be hoping for too much.

Thanks again for any help though.