makerbase-mks / MKS-Robin

MKS Robin is a powerful 32-bit 3D printer control board with STM32F103ZET6 . Support Marlin2.0. Support MKS Robin TFT24/28/32... Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 2 MAX31855.Support MKS Robin WIFI for cloud printing.Supports firmware update by SD card…
https://es.aliexpress.com/item/32757129463.html?spm=a219c.12010612.8148356.9.5fc165f4oDUfFM
131 stars 129 forks source link

TFT35 MKS-Robin Nano white Display #124

Open Princore opened 5 years ago

Princore commented 5 years ago

IMG_0034 I flashed Marlin 2.0 and on the Robin Nano 1.1 and also the MKS Robin TFT35 V1.0 Firmware for the Display. After Booting the display keeps white and nothing happens. Connecting to the MKS Robin Nano with pronterface works. Do I have to set something else in Marlin?

zillarob commented 5 years ago

You dont need fw for the screen, its build into Marlin. You do need to enable it and the touch buttons in Marlin. Look for the FMSC stuff down toward the bottom of config.h.

Princore commented 5 years ago

Hey, Thanks for you help. I was searching in Marlin in configuration.h but I can not find anything with FMSC. Maybe you can send me a screenshot of the part you mean.

Thanks! <Philipp

Am 29.08.2019 um 01:32 schrieb zillarob notifications@github.com<mailto:notifications@github.com>:

You dont need fw for the screen, its build into Marlin. You do need to enable it and the touch buttons in Marlin. Look for the FMSC stuff down toward the bottom of config.h.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AITK2ACUSIS6TQB4H5JDRCLQG4DIPA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5MYUMQ#issuecomment-525961778, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AITK2AGK2FB7EH74BZRRYXLQG4DIPANCNFSM4IRKEDJA.

DaVincIan commented 5 years ago

Start by in the config.h file search for TFT.

Princore commented 5 years ago
Bildschirmfoto 2019-08-29 um 06 04 28
zillarob commented 5 years ago

I forgot they have an odd version here. It used to say that, but the newer version is slightly different now. Id grab a fresh version from the main branch. Only use the ones here as a template for some of the stuff like serial settings etc.

Princore commented 5 years ago

Using the fresh version with the nano board selected and the TFT aktivated = display stays completely off

zillarob commented 5 years ago

There is no tft option in the main marlin branch.

nan

Princore commented 5 years ago

That’s the line changed like in your screenshot. What is also missing in my firmware?

LG Philipp

Am 29.08.2019 um 06:22 schrieb zillarob notifications@github.com<mailto:notifications@github.com>:

There is no tft option in the main marlin branch.

[nan]https://user-images.githubusercontent.com/42916376/63910010-0636c780-c9f3-11e9-8930-6ef6eee01ecb.JPG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AITK2ADRDIPD7BWDESJIDUDQG5FHRA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NFYYY#issuecomment-526015587, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AITK2AF6XUGBBNACMA6UGR3QG5FHRANCNFSM4IRKEDJA.

zillarob commented 5 years ago

Hard to say. Ive been playing with it on my Tevo Nereus and the toughest thing I remember was getting the buttons to work. It does seem a lil buggy though. I cant say if its the fw, the board, or me doing something goofy in the fw though. It does seem like if I dl and setup a new it will be fine, but as time goes by and I turn stuff on or off it just gets worse and worse.

zillarob commented 5 years ago

You could try adding this if not there. (current main marlin, not the one here)

nanpin

Princore commented 5 years ago

Wow thanks for your help. I’ll try that when I am back home. Just add that to the end of configuration.h right? Just to make sure: I changed the Board and the Ports + uncommented the TFT line like in your screenshot. Anything else I have to take care of?

LG Philipp

Am 29.08.2019 um 06:33 schrieb zillarob notifications@github.com<mailto:notifications@github.com>:

You could try adding this if not there [nanpin]https://user-images.githubusercontent.com/42916376/63910408-945f7d80-c9f4-11e9-8fef-5b0abb696a4d.JPG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AITK2ABV2TDKVJT6VT5D2JTQG5GQ3A5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NGJKI#issuecomment-526017705, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AITK2AGAMBQSBVRUNZQVCYLQG5GQ3ANCNFSM4IRKEDJA.

zillarob commented 5 years ago

You need to see what is already in there, and then add the stuff that isnt. Dont just paste that at the bottom.

I dont know what you will have to change for your printer, but that is what I use and the screen and touch buttons work.

Princore commented 5 years ago

Yes sure I’ll change all the stuff for my printer but first I wanted to make the display to work.

LG Philipp

Am 29.08.2019 um 06:50 schrieb zillarob notifications@github.com<mailto:notifications@github.com>:

You need to see what is already in there, and then add the stuff that isnt. Dont just paste that at the bottom.

I dont know what you will have to change for your printer, but that is what I use and the screen and touch buttons work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AITK2AF3NW7VZIX6A5GEYZ3QG5IRPA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NHDLA#issuecomment-526021036, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AITK2AEDESQISJRGWB26WTLQG5IRPANCNFSM4IRKEDJA.

alfrankgit commented 5 years ago

You just need to uncomment this in PINS_MKS_ROBN_NANO.h so that that 3.5“ display gets properly initialized:

//#define MKS_ROBIN_TFT35 //Uncomment when using the robin tft35 display

Princore commented 5 years ago

Is that in the configuration.h that line?

LG Philipp

Am 29.08.2019 um 18:18 schrieb alfrankgit notifications@github.com<mailto:notifications@github.com>:

You need to uncomment this in PINS_MKS_ROBN_NANO.h so that that 3.5“ display gets properly initialized:

//#define MKS_ROBIN_TFT35 //Uncomment when using the robin tft35 display

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AITK2AGED2BHNRPXL4FMRPLQG7ZFZA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5PBIKY#issuecomment-526259243, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AITK2ACDDSF3UR6HJFP4W5TQG7ZFZANCNFSM4IRKEDJA.

alfrankgit commented 5 years ago

It is in the file PINS_MKS_ROBN_NANO.h as I wrote above.

Princore commented 5 years ago

Yay it works now. The only thing: the TFT shows the Marlin layout. What do I need to change to get the MKS TFT design? Big big thanks! IMG_0039

zillarob commented 5 years ago

I dont think you can. You either get an updated version of marlin with the marlin menus, or an old version of marlin with mks menus and who knows wtf else going on because mks never released the source. (if you look at it with a hex editor it was way old, like 1.0)

That version you are using from here is getting pretty old now also (2.0 at least), and the touch buttons arent nearly as responsive as the current main branch iirc.

I guess you could get a normal tft35, not the Robin version, and run it from that if you can find Rx and Tx on the nano.

Princore commented 5 years ago

Ah ok. I was looking for the define MKS_ROBIN_TFT35 //Uncomment when using the robin tft35 display in the newest 2.0.x Marlin firmware, but I can not see it there. How can I activate the TFT35 in that newer Marlin version? Thanks again for your help and work!

alfrankgit commented 5 years ago

No, the MKS style menu is only in the precompiled Release 1.0.2, there’s no source code for that. I think the Marlin 2.0 from MKS is just for alibi.

Princore commented 5 years ago

Ok I flashed the newest marlin and the display runs after commenting //#define LCD_RESET_PIN PF6

The touch button are missing and the resolutions seems to be not correct. These two things and i am happy. Do have an idea how to fix those last two things? IMG_0040

zillarob commented 5 years ago

Never seen that res thing. Enable the touch buttons and maybe the other stuff I mentioned above.

zillarob commented 5 years ago

Chip on nano doesnt have PF6. I think that was supposed to be PC6 for nano.

Technology89 commented 5 years ago

Tried the same as Phillip today and got exactly the same result. Display just shown in odd resolution and no touch support.

3Dangel commented 5 years ago

I would compare the pins assignment and how it is configured in mks-Robin and verify the pinout from the schematic. Mks-Robin touch is working.

Check the issue case in mks-robin ( use key word on Google “ mks Robin Marlin”)

A gentlemen posted a small FW to test what LCD controller the board is using.

It seemed to me that for the moment, there is only couple lcd controller that are supported.

Hope this helps.

On Sun, Sep 1, 2019 at 13:18 Technology89 notifications@github.com wrote:

Tried the same as Phillip today and got exactly the same result. Display just shown in odd resolution and no touch support.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXJGXOZX3SXSCOLWE4TQHQIP5A5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5UI4FY#issuecomment-526945815, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXJ5G33JYKSS5RPTWCTQHQIP5ANCNFSM4IRKEDJA .

zillarob commented 5 years ago

I dont know if this is what it is using, but I see quite a few changes in the tft upscaler thing in lcd dogm between the older one I am using and the current version. If I get bored this eve, I will do up a freshy and see if I see the same.

Technology89 commented 5 years ago

Got the touchbuttons to show up but they don't work. Didn't define TOUCH_BUTTONS in configuration.h. And Touchpin is correct in the PINS for the board (PA7). yTqXn7Lr

3Dangel commented 5 years ago

Yours is the latest version that they just forked to. Mine worked with the green original settings.

Thanks for advise as I am about to upload the newest updated FW as yours. Color is good!!!! Cheers

On Mon, Sep 2, 2019 at 10:36 Technology89 notifications@github.com wrote:

Got the touchbuttons to show up but they don't work. Didn't define TOUCH_BUTTONS in configuration.h

https://i.imgur.com/yTqXn7Lr.jpg

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXNK3ADXEGXVWWSRT3TQHU6JDA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WHHCI#issuecomment-527201161, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXMBHYCC5YMZ65HUMG3QHU6JDANCNFSM4IRKEDJA .

3Dangel commented 5 years ago

Hello Technology89,

Would it be possible to get zip file from you? I’m having issue with my just downloaded version of Marlin. The old one that I had for s month or so still compiles correctly ( without your color buttons)

Thanks in advance. Bob

On Mon, Sep 2, 2019 at 10:36 Technology89 notifications@github.com wrote:

Got the touchbuttons to show up but they don't work. Didn't define TOUCH_BUTTONS in configuration.h

https://i.imgur.com/yTqXn7Lr.jpg

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXNK3ADXEGXVWWSRT3TQHU6JDA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WHHCI#issuecomment-527201161, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXMBHYCC5YMZ65HUMG3QHU6JDANCNFSM4IRKEDJA .

Technology89 commented 5 years ago

Gonna upload tomorrow. But remember that the buttons not working. They are just shown but not touchable.

3Dangel commented 5 years ago

Thanks man… Will compare what I have Compiling now with my setttings..

Thanks v much!!! Robert

Sent from Mail for Windows 10

From: Technology89 Sent: Monday, September 2, 2019 1:58 PM To: makerbase-mks/MKS-Robin Cc: 3Dangel; Comment Subject: Re: [makerbase-mks/MKS-Robin] TFT35 MKS-Robin Nano white Display(#124)

Gonna upload tomorrow. But remember that the buttons not working. They are just shown but not touchable. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Technology89 commented 5 years ago

Here you go. Maybe you need to tune some settings as i am using LV8729 for Z and E instead of the a4988

https://github.com/Technology89/Marlin_2.0_Sapphire_Pro

3Dangel commented 5 years ago

Thanks!! I got it last night to work my touch. Not from the latest Marlin. No color, just green standard. And SD works as well. It was a heck of work an try on error!!

On Tue, Sep 3, 2019 at 09:08 Technology89 notifications@github.com wrote:

Here you go. Maybe you need to tune some settings as i am using LV8729 for Z and E instead of the a4988

https://github.com/Technology89/Marlin_2.0_Sapphire_Pro

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXLW4DBXOLHYYZTCUS3QHZ4YFA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5YQUGY#issuecomment-527501851, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXNTKWJR5EITJP5QMG3QHZ4YFANCNFSM4IRKEDJA .

Technology89 commented 5 years ago

But still marlin 2.0? SD eeprom also working? Mind sharing your version?

3Dangel commented 5 years ago

mine is the Robin not sure about eeprom only got it to load and checked my menus.

I will post like your did in github tonight

but short thing for your to try is the Touch_buttom calibration

those values are most likely off

these are my values

define XPT2046_X_CALIBRATION -11876

define XPT2046_Y_CALIBRATION 8755

define XPT2046_X_OFFSET 346

define XPT2046_Y_OFFSET -20

kind of flipped from what it is on Marlin.

I did use a calibration tool from a gentleman who worked extensively for Robin...

and my version is older .. the new one gives me black screen, so it is something not right..... need to check yours to compare since the NANO is very similar to my Robin.....

cheers keep in touch

(working with another gentleman from Sought Africa as well) me from Calgary, AB Canada

Robert

On Tue, Sep 3, 2019 at 10:54 AM Technology89 notifications@github.com wrote:

But still marlin 2.0? SD eeprom also working? Mind sharing your version?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXPXOBI5R5VVXVASAYTQH2JETA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5Y3HTQ#issuecomment-527545294, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXNQGXIGBHA6NN2VZQLQH2JETANCNFSM4IRKEDJA .

Technology89 commented 5 years ago

Gonna try these values tomorrow but you have a '#' in front of these values so they are not assigned

3Dangel commented 5 years ago

It is all in one line

define XPT2046_X_CALIBRATION -11876

On Tue, Sep 3, 2019 at 11:24 Technology89 notifications@github.com wrote:

Gonna try these values tomorrow but you have a '#' in front of these values so they are not assigned

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXKOYV2C4GCW4OXEFSTQH2MVLA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5Y6DAQ#issuecomment-527556994, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXP3QR6W5TOKAJVUI4DQH2MVLANCNFSM4IRKEDJA .

3Dangel commented 5 years ago

I see what you are talking about

You need the “#”

It is the “//“ that uncomment the line

On Tue, Sep 3, 2019 at 11:45 Robert Ni nirobert@gmail.com wrote:

It is all in one line

define XPT2046_X_CALIBRATION -11876

On Tue, Sep 3, 2019 at 11:24 Technology89 notifications@github.com wrote:

Gonna try these values tomorrow but you have a '#' in front of these values so they are not assigned

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXKOYV2C4GCW4OXEFSTQH2MVLA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5Y6DAQ#issuecomment-527556994, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXP3QR6W5TOKAJVUI4DQH2MVLANCNFSM4IRKEDJA .

Technology89 commented 5 years ago

Of course... Seems like i had a brainfart 😄

zillarob commented 5 years ago

Finally got to try a fresh version out, looks ok. Really like the new cancel button. Saves a bunch of time in the menus. The animated Marlin startup screen is some nice eye candy also =D

I think the toughest part on the new versions is the pins file. This is one I have been using for a while and seems to be ok, but have been being lazy and just rolling stuff into it lately. Not sure how much is actually needed in the new stuff or if there is some redundancy, but I should go back and start fresh one of these days and find out how much is needed. This is for Main branch Marlin after you setup config and config.h for whatever you have. Might need to change a few pins also, I run BLTouch so some stuff there is swapped around. pins_MKS_ROBIN_NANO.zip

zillarob commented 5 years ago

The X on the left is nice. No more having to scroll up to the top to go to the previous menu, just hit the X.

3Dangel commented 5 years ago

Cool staff!!! I was not able to make my Robin v2.1 to work yet under Marlin2 xxxbug yet. I got it to compile and get the .bin but the screen stays black.

Thinking that it has to be pins issues. Thanks for sharing yours. Mine “works” ( not hooked up yet with motors and etc) under an older brancknofnMarlin

On Tue, Sep 3, 2019 at 22:12 zillarob notifications@github.com wrote:

The X on the left is nice. No more having to scroll up to the top to go to the previous menu, just hit the X.

[image: 20190904_000639] https://user-images.githubusercontent.com/42916376/64225250-8ef8ac00-cea8-11e9-8ff1-480d51993546.jpg

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXL36BATJ4RV74T3N2DQH4YT7A5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52IYRI#issuecomment-527731781, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXK4C7M6RQMCOUGLIA3QH4YT7ANCNFSM4IRKEDJA .

zillarob commented 5 years ago

Im on a Nano so no idea how it will work on the other boards.

Technology89 commented 5 years ago

@zillarob can you upload the whole marlin? Your screen is fullscreen and not only the left corner like with mine version. I don't think this is only a pins issue on mine.

zillarob commented 5 years ago

Doesnt look like, too big.

zillarob commented 5 years ago

Here is the compiled one if you want to test, but dont try to print with it. Robin_nano.zip

3Dangel commented 5 years ago

Zillarob,

Not sure if it is too much too ask: Would it be possible to have the marlin config (x2) and thenplatformIO.ini from you?

I know mine is not nano. But they both share much in common. So I could compare the two and hopefully I could find the way out of it.

Thanks in advance

On Tue, Sep 3, 2019 at 22:47 zillarob notifications@github.com wrote:

Here is the compiled one if you want to test, but dont try to print with it. Robin_nano.zip https://github.com/makerbase-mks/MKS-Robin/files/3572767/Robin_nano.zip

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXKIABOW3RBJLRVULU3QH44VVA5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52KJQI#issuecomment-527738049, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXKAGUI6BCQZJR76GWLQH44VVANCNFSM4IRKEDJA .

zillarob commented 5 years ago

Only thing in pio.ini is setting the env to robin nano. configs.zip

3Dangel commented 5 years ago

thanks a lot! it all due to the lib dependency that I saw I am having... the TMC was givcing me tons of issues and I had to delete some of the source and replace it with the Bigtree's TMC lib to get the compile going.

On Tue, Sep 3, 2019 at 11:06 PM zillarob notifications@github.com wrote:

Only thing in pio.ini is setting the env to robin nano. configs.zip https://github.com/makerbase-mks/MKS-Robin/files/3572795/configs.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/124?email_source=notifications&email_token=AFYWWXPTHJOXP4KCW72Q2ODQH4635A5CNFSM4IRKEDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52LE5Q#issuecomment-527741558, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXKQHWDUPQMZCGDK33DQH4635ANCNFSM4IRKEDJA .

Technology89 commented 5 years ago

You can upload here on github 👌