Welcome! Log In Create A New Profile

Advanced

change rotary encoder for click buttons is possible

Posted by palmira 
change rotary encoder for click buttons is possible
February 26, 2022 06:12PM
how to change rotary encoder for click buttons
Re: change rotary encoder for click buttons is possible
February 27, 2022 12:36AM
Your question is equivalent to "How do I tree"

Ie it doesn't make any sense with out more information

Are you try to get a a certain display module working? If so which one?
Are you trying to modify a display that comes with and encoder to button? once again what model diaply?

What controller?

There are several ways to do buttons.
Each button makes a voltage that is read by a ADC
Setting bit on shit register
setting bit on an io expander
Re: change rotary encoder for click buttons is possible
February 27, 2022 06:03AM
Good morning, I currently have an lcd with i2c on and an encoder , and working,

I can change between menus without problems as long as the encoder is turned slowly, but when I turn the encoder too fast, the marlin freezes and I have to turn off the power,

If I put three buttons maybe that doesn't happen because I have no problems if I activate the SW quickly,

The problem happens when the CLK and DT act, I thought that maybe there is a way to change the program to remove the encoder from the marlin , and put two buttons to do it , the CLK and the DT-

Sorry for my bad english, have a nice weekend and health without the (covidence family) covid_19 as they say in portugal
Re: change rotary encoder for click buttons is possible
February 27, 2022 06:35AM
The code i put in pins_ANET_10h

//#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
// #define LCD_SDSS 28
// #if ENABLED(ADC_KEYPAD)
// #define SERVO0_PIN 27 // free for BLTouch/3D-Touch
// #define LCD_PINS_RS 28
// #define LCD_PINS_ENABLE 29
// #define LCD_PINS_D4 10
// #define LCD_PINS_D5 11
// #define LCD_PINS_D6 16
// #define LCD_PINS_D7 17
// #define BTN_EN1 -1
// #define BTN_EN2 -1
// #define BTN_ENC -1
// #define ADC_KEYPAD_PIN 11
// #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
// Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
// display using an adapter board // [go.aisler.net]
// See below for alternative pin definitions for use with [www.thingiverse.com]
// #define SERVO0_PIN 29 // free for BLTouch/3D-Touch
// #define BEEPER_PIN 17
// #define LCD_PINS_RS 27
// #define LCD_PINS_ENABLE 28
// #define LCD_PINS_D4 30
// #define BTN_EN1 11
// #define BTN_EN2 10
// #define BTN_ENC 16
// #ifndef ST7920_DELAY_1
// #define ST7920_DELAY_1 DELAY_NS(0)
// #endif
// #ifndef ST7920_DELAY_2
// #define ST7920_DELAY_2 DELAY_NS(63)
// #endif
// #ifndef ST7920_DELAY_3
// #define ST7920_DELAY_3 DELAY_NS(125)
// #endif
// #define STD_ENCODER_PULSES_PER_STEP 4
// #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
// #endif
//#else
// #define SERVO0_PIN 27





#define BTN_EN1 11
#define BTN_EN2 30
#define BTN_ENC 29

#define STD_ENCODER_PULSES_PER_STEP 4
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1

//#endif // ULTRA_LCD && NEWPANEL


this is my piece of code below

#define BTN_EN1 11
#define BTN_EN2 30
#define BTN_ENC 29

#define STD_ENCODER_PULSES_PER_STEP 4
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1

All this because I am building an AM8 with my son, because modernizing an ANET A8 is an added value,

We are putting a heated bed with 50_50 cm.height of 60 cm and reinforced for high speed,

I still don't know how to program this maybe I'll definitely need your knowledge,

But the internet was what helped me to get the marlin on the ANET 3D v1 5 board

Thanks to Marina mcFab (Can I Put a Rotary Encoder on my Anet A8 Display?)

Thanks to Dust
Sorry, only registered users may post in this forum.

Click here to login