My robot arm has six axis with encoders. A/b pulse, index and a home position switch.
Anyone know of an example program for 6 axis I could look at?
What I read already. But don’t understand it.
“ If you wanted to ensure that a program always caught the pulses from a rotary encoder, so that it never misses a pulse, it would make it very tricky to write a program to do anything else, because the program would need to constantly poll the sensor lines for the encoder, in order to catch pulses when they occurred”
Using interrupts does not guarantee that you won't miss a pulse, and may not work at all, especially with a slow, 16MHz Arduino and 12 interrupt sources (six encoders each with A&B outputs).