there are some good guides on stm32duino.com if you want to keep using the arduino IDE. there are a quite a few different chipsets. the super cheap blue pills are "
STM32F103C8T6 "
Back to the topic at hand, I've been digging more and I have replaced the LCD with an OLED using i2c. As I dug into the ISR for the encoder i see that there is a ton of stuff in there including driving the motor. Are you using external interrupts or are you pollling the encoder via a timer?
I'm also wondering what microstepping you are targeting and why? I bought a closed loop hybrid stepper to direct drive the lead screw. I would like to leverage it's smooth microstepping as much as possible. The russian ELS seems to be targeted at 1/4 microstepping which isn't very smooth.
also i'd love some coffee!