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

MKS Robin touch screen not working with Marlin 2.0 #138

Closed Slewentogzz closed 5 years ago

Slewentogzz commented 5 years ago

I followed the instructions on how to install Marlin 2.0, it went smoothly and everything works. The display also works but I can't control it with touch, it's like a normal display without touch functionality. Anyone know how to solve this?

3Dangel commented 5 years ago

Great for you !!

Just you need to alter the calibration X/Y and it’s offset. Try that way.

On Tue, Oct 1, 2019 at 00:27 Slewentogzz notifications@github.com wrote:

I followed the instructions on how to install Marlin 2.0, it went smoothly and everything works. The display also works but I can't control it with touch, it's like a normal display without touch functionality. Anyone know how to solve this?

— 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/138?email_source=notifications&email_token=AFYWWXIOLLFSKFSRTBRWQZTQMLUVXA5CNFSM4I4FBID2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOX6H7Q, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXLVWSRRP4MKXBUT2VTQMLUVXANCNFSM4I4FBIDQ .

Slewentogzz commented 5 years ago

I don't understand how that will make the touch functionality work? I want to be able to use the screen, otherwise I can't print with a SD card

3Dangel commented 5 years ago

Bottoms use x-y coordinate Is screen is not set correctly The touching is not “perceived” at the set coordinate.

On Tue, Oct 1, 2019 at 10:15 Slewentogzz notifications@github.com wrote:

I don't understand how that will make the touch functionality work? I want to be able to use the screen, otherwise I can't print with a SD card

— You are receiving this because you commented.

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

Slewentogzz commented 5 years ago

Where do I find the setting to change this?

3Dangel commented 5 years ago

In the configuration.h

You should have enabled the touch already. Depending what version you have and from where you downloaded it ( Marlin) I recall mine was just under the display section around the SD card settings or the pins_Mks Robin.h

On Tue, Oct 1, 2019 at 11:27 Slewentogzz notifications@github.com wrote:

Where do I find the setting to change this?

— You are receiving this because you commented.

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

3Dangel commented 5 years ago

Refer to this post and find the little FW specifically that runs for calibration. And you should see what is your values.

Use it at your own risk. I used it and it worked for me.

https://github.com/MarlinFirmware/Marlin/issues/9771

On Tue, Oct 1, 2019 at 11:27 Slewentogzz notifications@github.com wrote:

Where do I find the setting to change this?

— You are receiving this because you commented.

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

Slewentogzz commented 5 years ago

Allright, thanks. In the firmware provided by MKS the x-y-settings didn't exist. I've downloaded the default marlin now and the settings you are talking about is in the config file. However it doesn't compile, it says "CS_PIN not declared in this scope" (in file Marlin\src\feature\touch\xpt2046.cpp).

3Dangel commented 5 years ago

Yeah, Marlin branch does work. The one that worked for me was in the Makerbase’s. I now don’t remember where the x-y values needs to be. I need to get back home and search mine. It will be later today when home from work.

On Tue, Oct 1, 2019 at 12:50 Slewentogzz notifications@github.com wrote:

Allright, thanks. In the firmware provided by MKS the x-y-settings didn't exist. I've downloaded the default marlin now and the settings you are talking about is in the config file. However it doesn't compile, it says "CS_PIN not declared in this scope" (in file Marlin\src\feature\touch\xpt2046.cpp).

— You are receiving this because you commented.

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

3Dangel commented 5 years ago

check the MKS-Robin https://github.com/makerbase-mks/MKS-Robin/MKS Robin https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/ firmware https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware /Marlin2.0-MKS-Robin https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin /Marlin https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin /src https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin/src /HAL https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin/src/HAL /HAL_STM32F1 https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/firmware/Marlin2.0-MKS-Robin/Marlin/src/HAL/HAL_STM32F1 /xpt2046.h

in there you need to select what type of LCD you have and then play with the "-" (negative sign) I believe it has to be negative x offset and negative Y calibration

try and see

good luck

On Tue, Oct 1, 2019 at 12:50 PM Slewentogzz notifications@github.com wrote:

Allright, thanks. In the firmware provided by MKS the x-y-settings didn't exist. I've downloaded the default marlin now and the settings you are talking about is in the config file. However it doesn't compile, it says "CS_PIN not declared in this scope" (in file Marlin\src\feature\touch\xpt2046.cpp).

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

Slewentogzz commented 5 years ago

THANK YOU! Now the touch works. It was setup for a different display version, I just had to comment some things out in xpt2046.h. However the SD card doesn't show up.

I've looked at the schematics for the V2.3 and V2.4 Robin boards, and it seems in V2.3 the SD detect pin (SD_CD) is connected directly to ground... In V2.4 it's connected to PF12 as it says in Marlin. Is there a way to force Marlin to detect the card, even though SD_CD is low?

EDIT: Yes, there is. Comment out the line "define SD_DETECT_PIN" in pins_MKS_ROBIN.h. This will require you to manually mount the SD card from the touch display (as it's not detected automatically), but it will work!

3Dangel commented 5 years ago

For the SD card, follow the same link I sent you and towRd the bottom of the post , change your SD_ pins and your should see that you can manually activate the SD card.

On Wed, Oct 2, 2019 at 03:40 Slewentogzz notifications@github.com wrote:

Closed #138 https://github.com/makerbase-mks/MKS-Robin/issues/138.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/138?email_source=notifications&email_token=AFYWWXLR7ME77MNJCUPCIQDQMRT75A5CNFSM4I4FBID2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOT66MOVY#event-2679949143, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYWWXMWUHN3ZVXYULIJBRLQMRT75ANCNFSM4I4FBIDQ .