Welcome! Log In Create A New Profile

Advanced

Guide me with Marlin firmware and full graphic LCD

Posted by tarmo120 
Guide me with Marlin firmware and full graphic LCD
November 14, 2015 11:20AM
Hey guys.

I need some help configuring the Marlin firmware so I could see and use the RepRapDiscount Full Graphic Smart Controller.
I have Arduino Mega 2560 board along with Ramps 1.4(I believe).
So far I have tried like 5 or 6 times following all the guides I could find in Google.
Most guides just show deleting // marks and then just upload. But I have not had success.
The screen will turn on with blue back light and I can see the pixels in contrast.
But that is it.

Maybe the way I am testin is wrong.
I will get the STK500 timeout with USB, so I use USB AVR programmer with 6-pin connector.
But this means I need to take Arduino and Ramps apart all the time.
I will upload firmware to arduino, then unplug everything, attach ramps and then connect USB wire to power up.

By the way, I only have a single thermistor connected to the ramps board, because I think I can upload and test firmware without
all the 3d printer wires.
Please help me out. I am a very beginner in programming.

Edited 1 time(s). Last edit at 11/14/2015 11:24AM by tarmo120.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 12:02PM
Before continuing with you RAMPS and LCD tests, I think you should get first your Arduino IDE working properly. Since you played with ISP programming, you might have overwritten somehow your bootloader. So try to install the bootloader again on your Mega 2560, for this you will need your ISP programmer.

If after that you can still not install Marlin over the USB, report back here with the details of where you got stuck.

Once uploading Marlin via USB works, verify if it is recognized from Pronterface on the PC and if you see the boot message there. From the boot message you should be able to see if the SD card is recognized, this will already be an indication if that part of the LCD controller is working.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 01:03PM
I did that now.

This is copied straight from the Arduino program.


Sketch uses 85,032 bytes (33%) of program storage space. Maximum is 253,952 bytes.
Global variables use 3,639 bytes (44%) of dynamic memory, leaving 4,553 bytes for local variables. Maximum is 8,192 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:\Users\Tarmo\AppData\Local\Temp\build4159e8b8dff952d120a8bc760588a7c0.tmp/Marlin.ino.hex:i

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

Since I am new to this, please guide me what is wrong and what not.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 02:24PM
Which version of Arduino are you using?

What is your board setting in Arduino?

Are you sure that you are connecting to the right port? (Does Tools/Ports also show other ports?)

Does the Arduino show as a USB port in the Windows hardware manager? If not, you need to install the drivers for the TTL-USB chip on your Mega board (usually either CH340 or FT232RL chips).

Is any other application still accessing the USB port of the Mega? (E.g. you have to disconnect Pronterface from the Mega before uploading with Arduino.)

BTW you can test with the Blink sketch until you have resolved the Arduino timeout problem, it's much faster to compile.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 02:58PM
Arduino 1.6.6
COM4 port all the time.
Same port is shown in device manager.
Device manager shows CH340 also.
Arduino settings are correct. Arduino Mega 2560 board, and 2560 chip also.
No other items are connecting to the same USB or arduino mega.
I will test blink program.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 03:22PM
Blink program information using USB.


Sketch uses 1,582 bytes (0%) of program storage space. Maximum is 253,952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:\Users\Tarmo\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex:i

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.
Re: Guide me with Marlin firmware and full graphic LCD
November 14, 2015 07:22PM
Right now I am beginning to think that the bootloader that Arduino burns isn't working correctly.
I am out of ideas.
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 01:36AM
I haven't used it yet, but I have heard strange things about Arduino 1.6.6. I use version 1.6.5 and it runs nicely (I am using Linux though), so maybe that is worth a try...
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 12:04PM
I will try out the 1.6.5 version. And let you know.
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 01:58PM
I now installed 1.6.5, but I still get the STK500 timeout error.
And for some reason Arduino is telling me to check USBavr firmware.
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 03:42PM
Have you reinstalled the bootloader with 1.6.5?

Where exactly is Arduino is telling you to check USBavr firmware?

I suppose that you are doing these tests without RAMPS attached, so that we can exclude any problem coming from that side...

Edited 1 time(s). Last edit at 11/15/2015 03:46PM by enif.
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 04:10PM
I did try to upload new bootloader in 1.6.5 version using USBavr. And arduino is telling me that information in the lower half of the program.
Where the red text is written.

Yes I am doing this without ramps connected, because the 6-pin header is directly under ramps and the USBavr wont fit in between.
But I am unsure how to test the uploaded firmware without ramps attached.
Can I just upload and connect the usb and use pronterface but WITHOUT ramps?
Re: Guide me with Marlin firmware and full graphic LCD
November 15, 2015 04:46PM
Quote

Can I just upload and connect the usb and use pronterface but WITHOUT ramps?
Sure you can. You will get the boot message and see some parameters. You need to make sure that the baud rate in pronterface is the one you configured in Marlin.

Here is what I get in pronterface just with my Mega board without any RAMPS attached:
Verbinde...
start
Drucker ist jetzt Online.
echo:Marlin 1.0.3 dev
echo: Last Updated: Nov 14 2015 20:17:17 | Author: (none, default config)
Compiled: Nov 14 2015
echo: Free Memory: 3498  PlannerBufferBytes: 1232
echo:Hardcoded Default Settings Loaded
echoconfused smileyteps per unit:
echo:  M92 X105.70 Y107.20 Z4000.00 E795.00
echo:Maximum feedrates (mm/s):
echo:  M203 X200.00 Y200.00 Z3.00 E35.00
echo:Maximum Acceleration (mm/s2):
echo:  M201 X5000 Y5000 Z100 E5000
echo:Accelerations: P=printing, R=retract and T=travel
echo:  M204 P1000.00 R1500.00 T1500.00
echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s),  Z=maximum Z jerk (mm/s),  E=maximum E jerk (mm/s)
echo:  M205 S0.00 T0.00 B20000 X20.00 Z0.40 E5.00
echo:Home offset (mm):
echo:  M206 X0.00 Y0.00 Z0.00
echotongue sticking out smileyID settings:
echo:  M301 P17.20 I1.64 D45.24
echo:Filament settings: Disabled
echoconfused smileyD init fail
Error:Heated bed switched off. MAXTEMP triggered !!
Errortongue sticking out smileyrinter stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)
Re: Guide me with Marlin firmware and full graphic LCD
November 22, 2015 12:27PM
I'm starting to think that the Ardiono board is broken.
No luck with USB programmer, or even AVR mk2 programmer.
Even if I successfully program the board, pronterface is just not connecting.
It says connecting.........
And that is it.
Re: Guide me with Marlin firmware and full graphic LCD
November 23, 2015 10:12AM
News people.

The Arduino board I recieved from china(Replikeo) was indeed problematic.
After buying a new genuine Arduino Mega 2560 board, the firmware flashed successfully using USB on the FIRST try.
And then I get the excact same info in pronterface as enif.

Thank you for helping out.
Now I am going to have to mess with the parameters and such.
Re: Guide me with Marlin firmware and full graphic LCD
November 27, 2015 02:02PM
.

Edited 1 time(s). Last edit at 11/27/2015 02:06PM by owaisshaf.
Re: Guide me with Marlin firmware and full graphic LCD
November 27, 2015 02:06PM
hey so i purchased a replikeo too and i'm having similar problems. Not able to figure out which marlin config to use. The ones that do compile, either have errors when i try to flash or flash, but my printer just makes really loud noises when i try to use ponterface.
Right now i could really use some advice on how to go about this issue. I tried to use the replikeo marlin config, but that doesn't compile
How do I know if my arduino is genuine? There's a red light not a green :/
Thanks a ton smileys with beer
Re: Guide me with Marlin firmware and full graphic LCD
November 27, 2015 06:23PM
Well the genuine arduino has white markings under the board.
And half of the board is white. Also I had absolutely no issues with genuine board when it comes to uploading and compiling.
It even compiled the same firmwares that were with errors when I tried to upload them to replikeo arduino.

If you still fail, just go and spend the extra 40 or so USD. And you should have no issues.

In my case however, I couldn't even upload firmware so pronterface or repertier host didn't find any arduino boards connected.
Re: Guide me with Marlin firmware and full graphic LCD
November 28, 2015 12:27AM
Thanks
Okay so mine seeme pretty genuine, I managed to flash some marlin that works well according to one of the posts in the forum, however when i go to ponterface
i get errors that read " echoconfused smileyD init fail Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting) "
when i try to move in any direction.
Another marlin config, didn't have any errors but when i asked the motors to move, I just got a whinning noise :/
Any help will be much appreciated
Re: Guide me with Marlin firmware and full graphic LCD
November 28, 2015 09:23AM
Well I did get errors when I had no thermistor connected to T0(sensor 1).
Re: Guide me with Marlin firmware and full graphic LCD
March 04, 2019 02:03PM
Hi sorry to jump in here but I’ve just brought adurino 2530 and ramps 4.1 kit with decent screen
I’ve managed to upload firmware to the adurino 2530 lights are blinking so I unplugged it and attached the ramps board and plugged in light is flashing on ramps board but can’t seem to get the display to show anything apart from background light and slight black in it aswell I’ve got the smart controller version need some help on this been through tutorials online but can’t do it
Re: Guide me with Marlin firmware and full graphic LCD
March 04, 2019 07:57PM
It would seem you have issues with numbers, this will be a huge issue when editing firmware

"adurino 2530 and ramps 4.1" => adurino 2560 and ramps 1.4

What LCD do you have? (provide pictures or URL)

If its a GLCD did you install the required libraries? ie Install (U8glib)

Did you enable the correct lcd in firmware?
If its is a standard GLCD you need to enable #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

Did you plug the two cables in correctly?

Did you try the contrast settings on the LCD?
Sorry, only registered users may post in this forum.

Click here to login