Apollo2021
Member
Hello all. I have a project that will require the use of precision encoders with a very high PPR. Obviously a faster processor with be required so the teensy 4.0 looks like a good option compared to any audrino which may have trouble keeping up with pulse count at higher speeds. My question is about serial communication and interrupts. In order to ensure encoder count is stable without errors, it has to take #1 priority. Serial communication to another board will be required to relay variable values, but it does not have to take priority and short delays would be okay. If interrupts are used for the encoder inputs, will the interrupts "interrupt" serial communication and then pick up where it left off when it has a chance? Also, if there are any recommendations for how serial communication should be setup, I'm all ears. My initial thought was to use a master board to collect data with each encoder board going to a separate serial input on the master, and then poll for serial data. Any advice or insight would be greatly appreciated.