Welcome! Log In Create A New Profile

Advanced

Marlin smart controller potentiometer inverted

Posted by harlandraka 
Marlin smart controller potentiometer inverted
May 10, 2017 05:45PM
Hi everyone,

I'm having an issue with the display potentiometer with Marlin 1.1.0-1 firmware with RAMPS 1.4.

If I turn it counter-clockwise, it goes down on menu voices, if I turn it clockwise it goes up on menu voices.

If I turn it counter-clockwise in the X/Y/Z motion the corresponding value increases, if I turn it clockwise the value decreases.

As you can see, the behaviour is inverted.

The display is a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER.

I've already seen this link, but the thread is quite old and I can't seem to find that line in the pins.h file.

Does anyone know how to invert the behaviour so that it moves correctly?
Re: Marlin smart controller potentiometer inverted
May 10, 2017 06:11PM
The answer is still correct you just swap the two encoder pins over in the correct pins file

With the newer firmware the pins.h file has been split into multiple files

Now it is in pins_RAMPS.h

seems to be at line 297, I cant test this.. but give it a try.

    #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
      #define BTN_EN1 35  // reverse if the encoder turns the wrong way.
#define BTN_EN2 37

make it

    #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
      #define BTN_EN1 37  // reverse if the encoder turns the wrong way.
#define BTN_EN2 35

Edited 2 time(s). Last edit at 05/10/2017 06:16PM by Dust.
Re: Marlin smart controller potentiometer inverted
May 11, 2017 01:06PM
Hi. For some reason the forum didn't notify me of your answer :/

Anyway I think I found the correct way to do it, I'm posting it there for those who might need it.

Go to line 1220 in Configuration.h.

Here you'll find

//#define REVERSE_ENCODER_DIRECTION

Uncomment the line:

#define REVERSE_ENCODER_DIRECTION

Done.
Sorry, only registered users may post in this forum.

Click here to login