MakerLab创客实验室 — Let's Make something.
现在注册
已注册用户请 登入
收藏此话题的成员
ShreddinPB mini avatar
Ed large avatar
MakerLab创客实验室  ›  电子部分

Display pins

By Ed at 2 年前 , 2377 次浏览

Do you have a diagram / picture of the pins on the lcd display socket of the Mega Controller? The pins look like they are marked, but the plastic socket is covering the pin descriptions. So I can not read them.
The pictures you do have posted are in chinese. The google translation program only works on text, not pictures, so I have no way of reading them. I have used the translated text of all your tutorials to get my controller running. I just need a list or diagram of the lcd display pinsin order to connect a custom display.
I bought my mega controeller on Amazon and absolutely love it! It's a wonderful design. Any help would be appreciated.
Thank you.
Ed

7 回复
Andy medium avatar
#1 - 2 年前
Andy

Sorry for the inconvenient and thanks for your support, the english info about Mega controller is here:
http://reprap.org/wiki/Mega_controller

the lcd connector pins:

You can use my firmware :
Marlin: https://github.com/MakerLabMe/Marlin/tree/add_mega_controller
Repetier-Firmware: https://github.com/MakerLabMe/Repetier-Firmware

The pins defines for Mega controller:

/****************************************************************************************
* Mega Controller v0.1
*
****************************************************************************************/

#if MOTHERBOARD == 310
#define KNOWN_BOARD 1


#ifndef __AVR_ATmega2560__
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif

#define LARGE_FLASH true

#define X_STEP_PIN 62//A8
#define X_DIR_PIN 63//A9
#define X_ENABLE_PIN 61//A7
#ifdef DELTA
#define X_MIN_PIN -1
#else
#define X_MIN_PIN 43
#endif //DELTA
#define X_MAX_PIN 42 //2 //Max endstops default to disabled "-1", set to commented value to enable.

#define Y_STEP_PIN 65 // A11
#define Y_DIR_PIN 66 // A12
#define Y_ENABLE_PIN 64//A10
#ifdef DELTA
#define Y_MIN_PIN -1
#else
#define Y_MIN_PIN 38
#endif //DELTA
#define Y_MAX_PIN 41 //15

#define Z_STEP_PIN 68 // A14
#define Z_DIR_PIN 69 // A15
#define Z_ENABLE_PIN 67 // A13
#define Z_MIN_PIN 40
#define Z_MAX_PIN 37

#define E0_STEP_PIN 23
#define E0_DIR_PIN 24
#define E0_ENABLE_PIN 22

#define E1_STEP_PIN 26
#define E1_DIR_PIN 27
#define E1_ENABLE_PIN 25

#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13

#define FAN_PIN 39
#define FAN1_PIN 35
#define FAN2_PIN 36
#define CONTROLLERFAN_PIN 36
#define FAN_SOFT_PWM
#define PS_ON_PIN -1

#define HEATER_0_PIN 29 // EXTRUDER 1
#define HEATER_1_PIN 34 // EXTRUDER 2
#define HEATER_2_PIN -1

#if TEMP_SENSOR_0 == -1
#define TEMP_0_PIN 4 // ANALOG NUMBERING
#else
#define TEMP_0_PIN 0 // ANALOG NUMBERING
#endif


#if TEMP_SENSOR_1 == -1
#define TEMP_1_PIN 5 // ANALOG NUMBERING
#else
#define TEMP_1_PIN 2 // ANALOG NUMBERING
#endif

#define TEMP_2_PIN 3 // ANALOG NUMBERING

#define HEATER_BED_PIN 28 // BED

#if TEMP_SENSOR_BED == -1
#define TEMP_BED_PIN 6 // ANALOG NUMBERING
#else
#define TEMP_BED_PIN 1 // ANALOG NUMBERING
#endif

#ifdef NUM_SERVOS
#define SERVO0_PIN 30

#if NUM_SERVOS > 1
#define SERVO1_PIN 31
#endif

#if NUM_SERVOS > 2
#define SERVO2_PIN 32
#endif

#if NUM_SERVOS > 3
#define SERVO3_PIN 33
#endif
#endif

#ifdef MINIPANEL
#define BEEPER 46
// Pins for DOGM SPI LCD Support
#define DOGLCD_A0 47
#define DOGLCD_CS 45
#define LCD_PIN_BL 44 // backlight LED on PA3

#define KILL_PIN 12
// GLCD features
//#define LCD_CONTRAST 190
// Uncomment screen orientation
// #define LCD_SCREEN_ROT_90
// #define LCD_SCREEN_ROT_180
// #define LCD_SCREEN_ROT_270
//The encoder and click button
#define BTN_EN1 48
#define BTN_EN2 11
#define BTN_ENC 10 //the click switch
//not connected to a pin
#define SDCARDDETECT 49
#endif //Minipanel


//encoder rotation values
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1

#endif

Andy

Ed medium avatar
#2 - 2 年前
Ed

In the picture of the Mega Controller's LCD/SD port it shows "LCDSS". I can't find any reference to it in the firmware. Is it possible it is "LCDCS" (#define DOGLCD_CS 45).
I am trying to connect a Graphic LCD 12864 Smart Controller to your Mega Controller and cannot seem to figure out what the "LCDSS" pin would connect too.
This is the one http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller. I am trying to convert the 2 10 pin connectors to match the mega controller's port.
Any help is appreciated!
Ed

Andy medium avatar
#3 - 2 年前
Andy   via iPad

@Ed yes,LCDCS is DOGLCD_CS

Ed medium avatar
#4 - 2 年前
Ed

@Andy, I think I have the last 2 pins figured out. Can you confirm if they are correct? The Mega Controller display pins:

LCDA0 = RS
LCDSS = CS
RESET = RST

Using hardware/software spi (u8glib 12864 ST7920)
Thank you!
Ed

Andy medium avatar
#5 - 2 年前
Andy

@Ed yes, you are right. But as I know ST7920 LCD don't need LCDA0 pin.
So if you want ST7920 lcd connect to Mega controller. You may define those three pins in pins.h file.

#define  LCD_PINS_D4  xxx//any pin number, except hw SPI pin
#define LCD_PINS_ENABLE xxx
#define LCD_PINS_RS xxx

you can refer to http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller schematics and pin defines.

ShreddinPB medium avatar
#6 - 2 年前
ShreddinPB

@Ed Hi Ed, I am in the same boat, bought the board on amazon and got the same LCD.
Can you please post your pin connections? from the 2 connectors on the panel to the one on the board?
Thanks!!!

Ed medium avatar
#7 - 一年前
Ed

@ShreddinPB Do you still need this info? I do have mine working and had put it away till I finished building my latest printer. It has been a few months since I worked on it, but if you still need this info, I can put together the correct pin configuration for you. May take me a couple days. (don't want to go through it if you are no longer in need.)

@Andy I never thanked you for the assistance. Thank you! I do appreciate it.
Ed