Quantcast
Channel: Reprap Forum - Delta Machines
Viewing all articles
Browse latest Browse all 20291

Help: Trouble setting up LCD (20X4) with Ramps 1.4/Marlin?

$
0
0
Hi Gang~!

I have Ramps 1.4 running Ritchie C Marlin. I have the parts to build an LCD (20X4) with SD card/Rotary encoder. I have done a lot of research. My LCD is the standard not serial version. I've wired it up as per the pins and I don't get any text on screen. Just glows blue.

I followed this:

[reprap.org]



I'm 99% sure everything is wired okay. I think my Firmware isn't working right.

What should I see after uploading Marlin to the Ramps? I unplug USB then plug in again but the screen is still blank?

At first I followed this instructions for MARLIN:

Marlin V1 (new)

In "Configuration.h”

Change line 46 to “#define MOTHERBOARD 33”
Change line 306 to “#define REPRAP_DISCOUNT_SMART_CONTROLLER” (just remove the // at the beginning)
Change line 326 to “#define NEWPANEL //enable this if you have a click-encoder panel” (just remove the // at the beginning)

Switch over to "Pins.h" and change line 318 to “#define RAMPS_V_1_3” (just remove the // at the beginning)

Upload the firmware, power off the Arduino, connect the panel, reapply power, and everything should work.


-------------------------------------------------------

Second Try:

Now I also tried: (http://reprap.org/wiki/RAMPS_LCD)

Adjust Marlin configuration

Marlin has LCD support by default, you just need to enable it in the configuration.

Find the following code in configuration.h:


//LCD and SD support
//#define ULTRA_LCD

Uncomment it, so it states:


//LCD and SD support
#define ULTRA_LCD


Find the following lines:

#ifdef ULTRA_LCD
#define LCD_WIDTH 16
#define LCD_HEIGHT 2
#endif

Change LCD_WIDTH and LCD_HEIGHT to match your display characters/lines.

Compile and upload. Happy printing!
-----------------------------------------

But On verifying the firmware I get this ERRORS:










ultralcd.cpp:22: error: 'MANUAL_FEEDRATE' was not declared in this scope
ultralcd.cpp:29: error: initializer-string for array of chars is too long
ultralcd.cpp: In function 'void lcd_init()':
ultralcd.cpp:913: error: 'SHIFT_CLK' was not declared in this scope
ultralcd.cpp:914: error: 'SHIFT_LD' was not declared in this scope
ultralcd.cpp:915: error: 'SHIFT_EN' was not declared in this scope
ultralcd.cpp:916: error: 'SHIFT_OUT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_RPORT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope
ultralcd.cpp:917: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_RPORT' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_PIN' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_PIN' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_PIN' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope
ultralcd.cpp:918: error: 'DIOSHIFT_LD_PIN' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_RPORT' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_PIN' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_PIN' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_PIN' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope
ultralcd.cpp:919: error: 'DIOSHIFT_EN_PIN' was not declared in this scope

------------------------------------------

Then I tried:

"ULTRA_LCD currently needs some sort of encoder to make the menu system work and you are falling into the default case. Try defining NEWPANEL (and ULTIPANEL) in Configuration.h per the #ifdef around"

Uncommented NEWPANEL and ULTIPANEL and get this error now:

In file included from ultralcd.cpp:34:
ultralcd_implementation_hitachi_HD44780.h:12: error: conflicting declaration 'volatile uint16_t buttons'
ultralcd.h:30: error: 'buttons' has a previous declaration as 'volatile uint8_t buttons'


------------------------------------------------------

At this point I get no errors, can upload the Marlins but after reseting my screen is still lit but no characters.

Any thoughts?

Viewing all articles
Browse latest Browse all 20291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>