bigtreetech / BIGTREETECH-TouchScreenFirmware

support TFT35 V1.0/V1.1/V1.2/V2.0/V3.0, TFT28, TFT24 V1.1, TFT43, TFT50, TFT70
GNU General Public License v3.0
1.32k stars 1.65k forks source link

Enable marlin mode on TFT35 V2 #147

Closed Zuru1 closed 4 years ago

Zuru1 commented 5 years ago

hi,

I have been trying to enable marlin mode on my TFT35 V2 without any success. What I'm wondering is, what is needed other than a rotary encoder connected to display?

Thx in advance

guruathwal commented 4 years ago

@Raphael327 did you checked which side is 5v Pin in your Exp1 Cable? you need to match it with your board schematic. it is not necessary that it is the red one.

Raphael327 commented 4 years ago

@guruathwal Thank you very much, I'm very happy :) It's working really well :) Now I can't save the error settings on the sdcard in the EEPROM. Do you know it can be? When I click to save configuration on the SDcard it will make the home Thank you very much. cef80040-30ef-4dcd-8600-d28a643fa697

Raphael327 commented 4 years ago

Consegui :). para funcionar SDcard utilize #define SDCARD_CONNECTION ONBOARD

ETE-Design commented 4 years ago

@guruathwal That is very nice done, great Work... I own an MKS TFT32, BBT's Firmware is already running on IT as you may know... But Will it be possible to do simular to this board? All schematic and pictures are Up now that MKS have Open Sourced their board / firmware...

Doenermaker commented 4 years ago

Great work :) Since the TFT35V1.2 also utilizes the STM32F103VCT6, this mod should also work on that screen, right?

bjoernwedi commented 4 years ago

Great work :) Since the TFT35V1.2 also utilizes the STM32F103VCT6, this mod should also work on that screen, right?

I would be interest oed on this also, because TFT35V1.2 is quite cheap meanwhile,

bjoernwedi commented 4 years ago

What about hte BTT TFT35 V1.2 pins U-52,U-53,U-53,U-33 and RESET on the SD breakout. Shall be 80% of SPI2 already. Except U-51 is missing, but U-33 is there for CS maybe.

Zuru1 commented 4 years ago

@guruathwal Nicely done. Will try this out as soon as I can. One question, if I connect the encoder button to the encoder port on the TFT and still wire the two wires from that connection port to the exp1 or 2, will this work as the v3 does?

digant73 commented 4 years ago

@guruathwal Thank you very much, I'm very happy :) It's working really well :) Now I can't save the error settings on the sdcard in the EEPROM. Do you know it can be? When I click to save configuration on the SDcard it will make the home Thank you very much. cef80040-30ef-4dcd-8600-d28a643fa697

@Raphael327 but what was the problem and the fix you made?

ETE-Design commented 4 years ago

@guruathwal Any chance on making this working on the MKS TFT 28/32?

guruathwal commented 4 years ago

@digant73 the next comment https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/issues/147#issuecomment-616242299 translated to: I got it :). to work SDcard use #define SDCARD_CONNECTION ONBOARD

guruathwal commented 4 years ago

@ETE-Design I do not have the MKS TFT 28/32. if you can figure out the pinout, it may work.

guruathwal commented 4 years ago

@bjoernwedi Those pins are already used by the sd card.

ETE-Design commented 4 years ago

@guruathwal The Schematic and other related is here... In boot strong in that part, so mabye you can look at it? https://github.com/makerbase-mks/MKS-TFT-Hardware/blob/master/MKS%20TFT28%20V4.0_003/MKS%20TFT28%20V4.0_003%20SCH.pdf

digant73 commented 4 years ago

@guruathwal The Schematic and other related is here... In boot strong in that part, so mabye you can look at it? https://github.com/makerbase-mks/MKS-TFT-Hardware/blob/master/MKS%20TFT28%20V4.0_003/MKS%20TFT28%20V4.0_003%20SCH.pdf

For MKS TFT 28/32, pin PB3 (pin 89 of the main chip) has to be wired to a pin free header (e.g. you can wire pin 89 to pin NC of the WiFi connector).

I tried to enable Marlin mode on the MKT TFT 28 clone used in my Artillery Sidewinder but I have two main problems:

scenario 1) powering the TFT and Marlin main board via USB (on Marlin main board), I can see only two menus. In the initial menu, clicking on the upper right corner of the screen the second menu is shown but then I cannot select any other menu scrolling up and down. If I switch to touch mode (with a long press on the screen...), I continuously see the message "U disk inserted" followed by "U disk removed"

scenario 2) switching on the printer from the main power (with no USB power), I see only the text "LCD12864 Simulator". The rest is a black screen. This occurs even when the initial condition is scenario 1 (USB power). So switching on the printer, the screen becomes black (only LCD12864 Simulator is shown). The screen remains black even when powering off the printer and only USB power is provided. No menu is shown as it was in scenario 1.

ScruffR commented 4 years ago

@guruathwal, great job on that mod :+1: Just some silly questions (excuse my ignorance):

Why do we need to use the encoder pins PA0, PA1 and PE6 on the display at all? Could we not just directly wire the encoder to the EXP1 pins without the display ever knowing of the encoder? After all, the encoding is handled by the main controller, isn't it? Or is this only required for the "software encoder" touch buttons?

Second, can the SPI2 Slave Select pin not be assigned to any other GPIO? To avoid soldering? e.g. PE6 when not needed for "software encoder" (BTW, the mod instructions state PB12 is on pin 50 but from the image it rather looks like pin 51).

Finally, are there any schematics to look up the connections of the other 10 solder islands near P11 are?

ETE-Design commented 4 years ago

@guruathwal Seems like your into the stuff... Not related to this, but have an TFT E3 V3.0... Is there anyway to disable the Option where you can choose between Marlin Mode and Touch Mode? Would like to only have Touch Mode with the Encoder still working :-) BTW thanks for All the work you do in here :-D

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.