Hi everyone, need help coding for measuring speed using photogate?

I have an upcoming MATLAB project, and decided to do a project on "Measuring instantaneous speed using Photogates". But became clueless while trying to code.Can you help me with this? Apparently, I came with an idea of using an Arduino to get analog input, evaluate the TTL signal produced due to the blocking of IR ray, but how do we measure the time interval for the signal using MATLAB??

Answers (1)

The timing is too small in this situation to be measured on the MATLAB side reliably. You should measure it on the arduino side and send the timing data to MATLAB.

Categories

Asked:

on 18 Dec 2017

Answered:

on 26 Dec 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!