Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marlin 2.0 Zonestar_LCD buttons don't work on mks sbase v1.3 #11839

Closed
oriaj3 opened this issue Sep 16, 2018 · 6 comments
Closed

Marlin 2.0 Zonestar_LCD buttons don't work on mks sbase v1.3 #11839

oriaj3 opened this issue Sep 16, 2018 · 6 comments
Labels
C: LCD & Controllers T: Question Questions, generally redirected to other groups.

Comments

@oriaj3
Copy link

oriaj3 commented Sep 16, 2018

Description

I'm using the zonestar screen in a mks sbase v1.3, the screen works the buttons do not, I have connected the output of the buttons to the port of J8 P1_23 and I declared it in pins_mks_sbase:

#if ENABLED(ZONESTAR_LCD)
// #define LCD_SDSS P0_18
#define LCD_PINS_RS P0_18 //28
#define LCD_PINS_ENABLE P1_31 //29
#define LCD_PINS_D4 P3_25 //10
#define LCD_PINS_D5 P0_16 //11
#define LCD_PINS_D6 P1_30 //16
#define LCD_PINS_D7 P0_07 //17
#define BTN_EN1 -1
#define BTN_EN2 -1
#define BTN_ENC -1
#define ADC_KEYPAD_PIN P1_23// 1

Steps to Reproduce

  1. Conect the LCD with the board.
  2. Add in pins_mks_sbase.h

#if ENABLED(ZONESTAR_LCD)
// #define LCD_SDSS P0_18
#define LCD_PINS_RS P0_18 //28
#define LCD_PINS_ENABLE P1_31 //29
#define LCD_PINS_D4 P3_25 //10
#define LCD_PINS_D5 P0_16 //11
#define LCD_PINS_D6 P1_30 //16
#define LCD_PINS_D7 P0_07 //17
#define BTN_EN1 -1
#define BTN_EN2 -1
#define BTN_ENC -1
#define ADC_KEYPAD_PIN P1_23// 1

  1. In configuration.h add #define ZONESTAR_LCD

Expected behavior: I expected the buttons to work

Actual behavior: The buttons do not work.

Additional Information

  • Include a ZIP file containing your Configuration.h and Configuration_adv.h files.
  • Provide pictures or links to videos that clearly demonstrate the issue.
  • See How Can I Contribute for additional guidelines.
@gloomyandy
Copy link
Contributor

I think you need an ADC capable pin for the keypad, none of the pins on J8 attach to the ADC. You may be able to use another pin, however I would be very cautious about doing so as you may end up feeding a 5V signal into a pin designed for 3.3V input (which at the very least may mean it does not work, and at worst will damage the mcu). I'm not familiar with the zonestar LCD so can't really comment further on that.

If you are considering a different display the RepRapDiscount Full Graphic Smart Controller seems to work fine with the SBase board (though for now if you want to use the SD card reader attached to the LCD you will need a custom cable, I'm working with @p3p to fix that).

@oriaj3
Copy link
Author

oriaj3 commented Sep 16, 2018

Thanx fíe the repito, but what pins in MKS are ADC capable pins??

@gloomyandy
Copy link
Contributor

Looking at the LPC1768 datasheet it seems that although the pins capable of ADC operation are 5V tolerant when used for digital I/O they may not be when used as ADC inputs. This means there is a good chance you may damage the board. I've only had a quick look at the datasheet and this is my interpretation of the footnotes to the pin configuration table. If you are thinking of just trying this then please read the datasheet for yourself and draw your own conclusions:
https://www.nxp.com/docs/en/data-sheet/LPC1769_68_67_66_65_64_63.pdf

So unless you are very confident about what you are doing and fully understand the potential issues please do not connect that keyboard output to your control board. Not all of the LPC1768 pins will tolerate 5V and there is a chance that you have already damaged something on the board. I will say again that my reading of the datasheet says that the ADC pins are not 5V tolerant when used in ADC mode, so I would urge you not to try this unless you are really, really sure about what you are doing.

@thinkyhead thinkyhead added T: Question Questions, generally redirected to other groups. C: LCD & Controllers labels Sep 17, 2018
@boelle
Copy link
Contributor

boelle commented Feb 21, 2019

@oriaj3

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to to a bug in Marlin, then you should post a bug report.
Before posting a bug report please test with bugfix-2.0.x to check if problem is gone

@boelle
Copy link
Contributor

boelle commented Mar 13, 2019

@thinkyhead think we can close this one

@p3p p3p closed this as completed Mar 15, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: LCD & Controllers T: Question Questions, generally redirected to other groups.
Projects
None yet
Development

No branches or pull requests

5 participants