madgrizzle
Active member
I'm working with a Teensy 3.5 and I have a program that I'm porting that does analogWrites to a motor thousand times a second, while reading the motor's encoder and saving it to EEPROM. I found that the motor stutters when the encoder is connected (i.e., interrupts are being processed) AND the encoder reads are being saved to EEPROM. If I eliminate either (disconnect the encoder or skip saving to EEPROM), the motor runs smoothly. Is there any type of potential interaction between EEPROM.h and encoder.h? Does the EEPROM use certain pins that I need to avoid?