I would suggest starting with a more capable microcontroller. I like the $15 Adafruit ItsyBitsy M4 modules, which are programmable with the Arduino IDE, but have a 120MHz clock, 32 bit timers, floating point hardware, and two 1Mhz 12bit adc's. Their processor is an ATSAMD51 (Cortex M4). The original Uno is very limited for precision timing.
-- Ralph On Jan 21, 2022 6:02 AM, Sam Sokolik <samco...@gmail.com> wrote: CAUTION: This email originated from outside the Walla Walla University email system. 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://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cdfa38b93e38b42f0902308d9dce6a271%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637783705402242390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=AOgGXwU5Fbxni7m6GdKayjNCf6jHIFosqzCA6%2B%2FWKHs%3D&reserved=0 > _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cdfa38b93e38b42f0902308d9dce6a271%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C1%7C637783705402242390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=AOgGXwU5Fbxni7m6GdKayjNCf6jHIFosqzCA6%2B%2FWKHs%3D&reserved=0 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users