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

what are the various pins used for reprap full graphic smart controller lcd +sd card #10640

Closed
amrithmmh opened this issue May 7, 2018 · 14 comments
Labels
C: LCD & Controllers T: Question Questions, generally redirected to other groups.

Comments

@amrithmmh
Copy link

amrithmmh commented May 7, 2018

kindly anyone tell me what are the pins that can be used to directly control the lcd and sd card in full graphic smart controller reprap

note:i have gone through the marlin files and found some pins in pins_RAMPS.h but unable to correctly understand the pins.
i need to use U8GLIB_ST7920_128X64_1X(E, RW, RS, RST) directly to print something onscreen

@Bob-the-Kuhn
Copy link
Contributor

I don't understand the question.

If the following isn't what you're looking for then please supply more details.

Usually you don't have to worry about pins. If all you want to do is connect that display to the RAMPS card and use it then do the following:

  1. Plug the Smart Adapter onto the RAMPS card
  2. Plug the two cables into the adapter and the displaay.
  3. In Configuration.h uncomment REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

@vilsed
Copy link

vilsed commented May 8, 2018

@thinkyhead thinkyhead added T: Question Questions, generally redirected to other groups. C: LCD & Controllers labels May 8, 2018
@amrithmmh
Copy link
Author

@vilsed i have gone through the schematic lcd5, lcd6,lcd7 pins are placed on air and no connection?

@amrithmmh
Copy link
Author

@Bob-the-Kuhn no i dont want to use it with ramps board. whoever has written marlin code for the lcd will surely know the pins connection

@vilsed
Copy link

vilsed commented May 13, 2018

@amrithmmh Yes, it appears so. The LCD is being controlled only through SPI interface. If you need a 128x64 display for some other project and you want to push the data through DB0-7 pins, I'd suggest using a generic 12864LCD module, like this one:

https://www.ebay.com/itm/5V-12864-LCD-Display-Module-128x64-Dots-Graphic-Matrix-LCD-Blue-Backlight/201546165293?epid=590996533&hash=item2eed166c2d:g:oEkAAOSwCU1YpmVJ

@amrithmmh
Copy link
Author

@vilsed i wanted an easy and compact lcd+sd card just like smart lcd controller...if i buy the 128x64 i need to make a pcb or circuit board
Is there a shield for 128x64 + sd card(one in parallel interface other in spi interface)

@Bob-the-Kuhn
Copy link
Contributor

What board are you wanting to attach the LCD to?

With that info I can make recommendations on hardware and firmware.


Attached is the Smart LCD adapter when it's attached to the Re-ARM board. It shows the pins that have to be attached in order for the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER to be functional.

The Re-ARM did some VERY strange things so here's the majic decoder for this graphic:

  1. The names of the pins are what is important.
  2. Ignore the Px_xx and Dxx info. That's specific to the Re-ARM.
  3. Make sure that pin 10 on EXP1 is 5V. The REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER won't run on 3.3V.
  4. LCD4 serves as the SCK for the display
  5. LCDE serves as the MOSI for the display
  6. LCDRS is the command/data/regisiter select for the display.

One caveat with that LCD. The LCD4 signal is the SCK for the display BUT it can NOT be shared with any other SPI device. The display portion doesn't have a real chip/slave select so it responds to every LCD4 transition.

re-arm lcd adapter rev 4

@amrithmmh
Copy link
Author

@Bob-the-Kuhn exactly what i was looking for thank you very much!!!

@amrithmmh
Copy link
Author

one final doubt ....LCDRS is the slave select for LCD and SD_CSEL is the ss for SD card right?

@thinkyhead
Copy link
Member

I’d expect LCDRS to be the reset button on the LCD, since that’s the usual meaning of RS. If it has no CS/SS specific to the LCD, then I’d expect SD_CSEL LOW to be inverted and used as LCD_CS (assuming the LCD has its own dedicated SPI lines). But don’t quote me on that.

@amrithmmh
Copy link
Author

amrithmmh commented May 31, 2018

@thinkyhead will try like that thanks

@Bob-the-Kuhn
Copy link
Contributor

Bob-the-Kuhn commented Jun 2, 2018

The LCD section of the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER is a strange beast. It doesn't have a select line. It assumes that it has a dedicated SPI channel. It always clocks in MOSI whenever SCK is active and then acts on it.

The logical names for the LCD pins in Marlin are:

  • LCD_PINS_RS
  • LCD_PINS_ENABLE
  • LCD_PINS_D4

Their functions are:

  • MOSI - LCD_PINS_ENABLE
  • SCK - LCD_PINS_D4
  • Register select (command/data) - LCD_PINS_RS

@c3D-Dan
Copy link

c3D-Dan commented Nov 15, 2019

Sorry to draw up an old thread, but has anyone managed to get both the LCD and SD card reader working perfectly? Care to share your setup?

@github-actions
Copy link

github-actions bot commented Jul 4, 2020

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 4, 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