Arduino? Too slow to coune pulses if they happen every 0.0001 inch unless the table moves slow.
Look at the new Raspberry Pi "Pico". First off it only costs $4. Next if you looks, it can be programmed in Python and here I the Key: In addition to the two CPU cores it has 8 "PIO" processors and other can count pulses at about 100 MHz. A "PIO is a very fast hardware state machine and there are 8 of these on the chip. Not bad at 4 bucks. You can read the encoders with nearly zero CPU time, no pooling and no interrupts. The PIO is a way-simple processor. It has 8 instructions and 32 words of memory. but that is enough to handle quadrature. These state machines run at 125 Mhz The other thing about Pico, is the outstandingly good documentation. With 8 of these you can do multiple axis. There are several ways to program Pico. You can use the Arduino IDE and most Ardno stuff "just works". Or you can write in Python. uge the Pico into a USB and the PC thinks it is a thin drive. Sve the Python program to the thum drive and the chip is programmed. On Fri, Jan 21, 2022 at 12:59 AM andy pugh <bodge...@gmail.com> wrote: > On Fri, 21 Jan 2022 at 04:50, Sam Sokolik <samco...@gmail.com> wrote: > > > > https://www.youtube.com/watch?v=ogUdjX3zerY > > > > The plan is to use the arduino to count the phase difference between the > > input and output. The original control used a 250khz clock frequency to > > count > > 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?) > > -- > 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 > -- Chris Albertson Redondo Beach, California _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users