Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.9.3 and Anet A8 2004 LCD

Posted by Kliwer 
Marlin 2.0.9.3 and Anet A8 2004 LCD
April 24, 2022 05:25AM
Hi.
I have Anet A8 with Tatara Hayabusa frame, Mega 2560 and RAMPS 1.6
I had Marlin 1.9.9 that was working fine, but I changed my hotbed to bit larger one and had to adjust few options.
As there is newer version I decided I want to upload newest one.
Downloaded source from github, made necessary changes and uploaded to machine.
Now, printer works, but I have garbage on screen instead of status screen (see attachment).
When printer starts - Marlin logo is shown correctly. When homing fails - text saying that show fine.
I tried changing everything related to status screen in source but no change - still as shown in picture.
When pressing buttons, garbage changes a little.
Any idea what I can do?

The only warnings I get are following ones:
C:\Users\XXX\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\marlinui.cpp:1194:68: warning: integer overflow in expression [-Woverflow]
adc_other_button = HAL_ADC_RANGE * 1000 / 1024;
C:\Users\XXX\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\marlinui.cpp:1194:77: warning: overflow in constant expression [-fpermissive]
adc_other_button = HAL_ADC_RANGE * 1000 / 1024;
^~~~
C:\Users\XXX\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\marlinui.cpp:1194:77: warning: overflow in constant expression [-fpermissive]
C:\Users\XXX\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\marlinui.cpp:1194:77: warning: overflow in constant expression [-fpermissive]
Attachments:
open | download - 11.jpg (103 KB)
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 24, 2022 07:32AM
Please attach both configuration files.
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 24, 2022 08:58AM
Here you go
Attachments:
open | download - Configuration.h (108.7 KB)
open | download - Configuration_adv.h (171.9 KB)
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 24, 2022 07:31PM
There is a note by your display that reads: "This LCD is known to be susceptible to electrical interference which scrambles the display."

Try shortening the cables or re-routing them.
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 25, 2022 01:43AM
Yes, I've seen that and I experienced it on previous version on Marlin and it's not that.
Problem is with status screen. Those warnings seem like a clue - is there a way to open a file with all includes to see where they happen?
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 25, 2022 07:28AM
I dropped your config files into a new Marlin 2.0.9.3 compiled with Visual Code Studio > PlatformIO > Marlin AutoBuild.
The only error shown posted below

c:\users\clif\desktop\marlin-2.0.9.3\marlin-2.0.x\marlin\src\pins\ramps/pins_RAMPS.h:536:8: error: #error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. 
It plugs into AUX2 but GND and 5V need to be swapped. Comment out this line to continue."

Edited 1 time(s). Last edit at 04/25/2022 07:29AM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 25, 2022 07:33AM
Yes, I know that too - I was using earlier version of Marlin (1.9.9).
Maybe I'll try building using Visual Code Studio instead Arduino IDE
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 25, 2022 04:24PM
Okay, I build using Visual Code Studio and Auto Build - now screen works as it should.
Now, there are two different problems:
1. There is no menu (after first start there was a message: EEPROM Version Error with two options - Ignore and Reset - I was able to choose option via buttons) or buttons do not work correctly.
2. TMC Connection error message - I've done some reading and I know what I need to check.

Oh, almost forgot - when I press UP button, percentage on screen goes up so I think buttons do work after all.
Any idea what to do about the menu?
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 25, 2022 07:58PM
@Kliwer

TMC Connection error message is just that you have enabled TMC2208 stepper drivers which uses UART communications to set them up.

But ramps boards do not have the correct wiring to support this. You need to add additional wires or use TMC2208_STANDALONE

"when I press UP button, percentage on screen goes up" This is the feedrate multiplier.

You click the middle button to bring up the menu
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 29, 2022 01:07PM
I have this printer from 2017 - I know how to get into menu. Problem is, only UP button gives any kind of reaction (percentage goes up). The rest of them does nothing. Did I miss something in config?
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
April 29, 2022 05:10PM
Did you define ADC_KEYPAD_PIN and is it assigned to anything else?
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
May 15, 2022 02:05PM
Sorry for late reply.
From what I see ADC_KEYPAD_PIN is defined when ZONESTART_LCD is used.
I see that the same pin is used for PS_ON_PIN in pins_RAMPS.h but I do not use this function and in pins_RAMPS.h form 1.1.x it is the same.
Re: Marlin 2.0.9.3 and Anet A8 2004 LCD
August 23, 2022 12:20PM
Hi again.
Today, after a long pause I needed to print something. I powered on the printer and surprisingly, the lcd works fine... I guess it needed time winking smiley
Sorry, only registered users may post in this forum.

Click here to login