While researching my current project, I read that updating an LCD was ‘expensive’ as far as CPU cycles. It was one of my main reasons for choosing to build around a teensy - I thought its blistering speed would allow me to have a screen updating while driving motors.
Not so much.
Driving stepper motors slows to a crawl when updating the OLED in the same loop. I’m using the accelstepper library, along with the Adafruit GFX driving the SSD 1306 OLED
For time lapse implementation it may well be possible - depending on the length of the time lapse - as their may be time to update the display between steps, but for real-time it’s just not working.
Is there some technique that would allow me to update the screen while stepping as I should? Interrupts perhaps? Should I have a dedicated microprocessor to handle the screen alone, so the teensy can focus on stepping?
I know I could forego updating the screen until the motors have done what they need to do, but I’d really like to have some visual feedback happening on the screen.
Advice welcome and appreciated.
Not so much.
Driving stepper motors slows to a crawl when updating the OLED in the same loop. I’m using the accelstepper library, along with the Adafruit GFX driving the SSD 1306 OLED
For time lapse implementation it may well be possible - depending on the length of the time lapse - as their may be time to update the display between steps, but for real-time it’s just not working.
Is there some technique that would allow me to update the screen while stepping as I should? Interrupts perhaps? Should I have a dedicated microprocessor to handle the screen alone, so the teensy can focus on stepping?
I know I could forego updating the screen until the motors have done what they need to do, but I’d really like to have some visual feedback happening on the screen.
Advice welcome and appreciated.