Welcome! Log In Create A New Profile

Advanced

Using the 12864 Smart LCD Display without RAMPS 1.4

Posted by J3d 
J3d
Using the 12864 Smart LCD Display without RAMPS 1.4
March 05, 2018 03:19AM
Hi,

Is it possible to connect this LCD display directly to a microcontroler (Arduino, or preferably ESP12/32) without going through the RAMPS 1.4 itself?

J3d
Re: Using the 12864 Smart LCD Display without RAMPS 1.4
March 05, 2018 03:31AM
Ardunio Yes, ramps just connects the LCD directly to mega pins.

// SPI Com: SCK = en = 23, MOSI = rw = 17, CS = di = 16
U8GLIB_ST7920_128X64_1X u8g(23, 17, 16);


No idea on ESP... the whole 5v vs 3.3v things hurts my head.
Re: Using the 12864 Smart LCD Display without RAMPS 1.4
March 06, 2018 03:23AM
AFAIK, the smart LCDs have a 3.3V regulator onboard, fed by 5V from Arduino. IDK what happens when it gets 3.3V only. Maybe it has to be bypassed then?
J3d
Re: Using the 12864 Smart LCD Display without RAMPS 1.4
March 07, 2018 01:39AM
Hi guys

I understand that LCD display itself may work with only 3 pins (MOSI, SCK and CS) + VCC & GND, but what about the beeper & button?

These are the main reason I wanted to use this 12864 Smart LCD Display instead of a mere LCD screen.

There must be a couple more pins to connect, isn't it?

J3d
Re: Using the 12864 Smart LCD Display without RAMPS 1.4
March 07, 2018 04:28AM
The "button" is an encoder with switch, so 3 input io pins are used

The buzzer is 1 IO line, output

Also all of these are directly wired from the ramps to threw to the mega...

normally on following pins for ramps

#define BEEPER_PIN 37

#define BTN_EN1 31
#define BTN_EN2 33

#define BTN_ENC 35

you also have

#define SD_DETECT_PIN 49
#define KILL_PIN 41
#define SDSS 53 to select the SD card

This may be of use to you... shows all the pins (ignore the outermost lables,
thats for a different controller.)

Edited 1 time(s). Last edit at 03/07/2018 04:30AM by Dust.
J3d
Re: Using the 12864 Smart LCD Display without RAMPS 1.4
March 08, 2018 01:58AM
OK, I will try that
Thanks
Sorry, only registered users may post in this forum.

Click here to login