My plan is to use the 16 bit timer on the arduino to trigger on the input square wave rising edge and then count until it see's the return wave form rising edge. (the return waveform will get converted to a square wave) Atleast that is the plan...
SO - I guess it comes down to how accurate the phase relationship is between the 2 signals and how high a frequency you are using to count between edgees... On Fri, Jan 21, 2022 at 3:00 AM andy pugh <bodge...@gmail.com> wrote: > On Fri, 21 Jan 2022 at 08:54, andy pugh <bodge...@gmail.com> wrote: > > > You might be able to do a lot better than that if you can find a way > > to have the Arduino set timers on interrupts. > > (How fast does the Arduino run a polling loop?) > > I haven't watched the video yet (I am in a meeting :-) but I am not > clear on how the sampling rate relates to the positional accuracy. > > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users