Welcome! Log In Create A New Profile

Advanced

LCD menu slow when selecting a file to print on SD card

Posted by softfoot 
LCD menu slow when selecting a file to print on SD card
April 08, 2022 11:32AM
When controlling my printer from the LCD encoder I find that in all of the menus (bar one) the movement of the highlighted line
is responsive.

However, in the "file to print" menu it is a lot slower and that is with only 3 file entries on the SD card --- to the extent that it feels
like I didnt move the encoder knob and do it again only to find it moves on twice, it's just slow.

Is there anyway to speed this up ??

It's not unusable, just irritating ...

Regards,
Dave
Re: LCD menu slow when selecting a file to print on SD card
April 08, 2022 01:14PM
In marlin under
LCD and SD support you will find lines to adjust speed

// Setting are adjusted for My LCD
#define ENCODER_PULSES_PER_STEP 4 
#define ENCODER_STEPS_PER_MENU_ITEM 2
//Including lines to reverse direction
//#define REVERSE_ENCODER_DIRECTION
//#define REVERSE_MENU_DIRECTION


Computer Programmer / Electronics Technician
Re: LCD menu slow when selecting a file to print on SD card
April 08, 2022 02:00PM
Hmmm, I'll give it a try but I suspect that will affect all the other menus as well.

It is only one menu that is slow - when brousing the SD card for a file to print - the rest are OK.

Dave
Re: LCD menu slow when selecting a file to print on SD card
April 08, 2022 08:50PM
If it is only a single SD Card Menu then It could be that the SD Card is not compatible with your 3D Printer.

Do you have the specs on SD card that your a using.

Edited 1 time(s). Last edit at 04/08/2022 08:50PM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: LCD menu slow when selecting a file to print on SD card
April 09, 2022 08:14AM
It may be reading the SD card each time you click which will noticeably slow things down.

Try enabling the following. The directory gets moved into RAM which really speeds things up. The only downside is you may run out of RAM on the 8 bit controllers.
SDCARD_SORT_ALPHA
SDSORT_USES_RAM    true
SDSORT_CACHE_NAMES true
Re: LCD menu slow when selecting a file to print on SD card
April 09, 2022 12:07PM
That sounds more promising - I'll give that a try.
Bob
Re: LCD menu slow when selecting a file to print on SD card
April 09, 2022 12:40PM
Quote
[email protected]
Try enabling the following.
SDCARD_SORT_ALPHA
SDSORT_USES_RAM    true
SDSORT_CACHE_NAMES true

Question this uses 20% more ram, how long will it keep the ram before releasing it.


Computer Programmer / Electronics Technician
Re: LCD menu slow when selecting a file to print on SD card
April 09, 2022 01:34PM
I don't think it ever gets released.
Re: LCD menu slow when selecting a file to print on SD card
April 10, 2022 09:39AM
That did the trick but on my ATMEGA2560 based printer it left 742 bytes of RAM - so I reduced "SDSORT_LIMIT" from 40 to 20 as I dont keep many files on the SDCard, that gave me 1564 bytes of RAM.
Thanks for the help.
Dave

Quote
[email protected]
It may be reading the SD card each time you click which will noticeably slow things down.

Try enabling the following. The directory gets moved into RAM which really speeds things up. The only downside is you may run out of RAM on the 8 bit controllers.
SDCARD_SORT_ALPHA
SDSORT_USES_RAM    true
SDSORT_CACHE_NAMES true
Sorry, only registered users may post in this forum.

Click here to login