Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

BigTreeTech TFT35 & Raspberry Pi (Octoprint) not working #9

Open
BakaBazooka opened this issue Apr 16, 2019 · 17 comments
Open

BigTreeTech TFT35 & Raspberry Pi (Octoprint) not working #9

BakaBazooka opened this issue Apr 16, 2019 · 17 comments

Comments

@BakaBazooka
Copy link

Cannot get the TFT35 touchscreen to work with octoprint using a MKS GEN L?
When removing the touchscreen, octoprint works normally.

How to fix this problem

@BakaBazooka BakaBazooka changed the title BigTreeTech TFT35 & Raspberry Pi (Octoprint) BigTreeTech TFT35 & Raspberry Pi (Octoprint) not working Apr 16, 2019
@Msq001
Copy link
Contributor

Msq001 commented Apr 19, 2019

maybe you use a same UART port in TFT35 and Raspberry Pi,
The USB and AUX-1 use the same UART. you can click "Settings->Disconnect" on touch screen to disconnect the TFT35, or use the other UART connect with TFT35

@BakaBazooka
Copy link
Author

BakaBazooka commented Apr 19, 2019

I am using a bunch of 2130 x4 on SPI connections.

Is there a way to separate the USB and AUX-1 connection??
Or can anything be done in the Marlin firmware to split into 2 separate serial connections ?
(one for octoprint and the other for the touch scren)

@Msq001
Copy link
Contributor

Msq001 commented Apr 22, 2019

image
yeah, marlin-bugfix-2.0.x support the second serial port. you can #define SERIAL_PORT 0 for usb, and #define SERIAL_PORT_2 2 for TFT35, wiring RX(TFT35) to TXD2(MKS Gen L), TX(TFT35) to RXD2(MKS Gen L)

@BakaBazooka
Copy link
Author

I am already using the EXP1 & EXP2 pins for the RepRap LCD, and the AUX-2 & AUX-3 for the TMC2130 SPI connections.
Is there a way to address or define the serial port to the AUX-1 on the MKS Gen L for the touchscreen?

@Msq001
Copy link
Contributor

Msq001 commented Apr 25, 2019

the serial port in AUX-1 was be wired with USB in PCB, so if you use Raspberry Pi by USB, Serial ports on AUX-1 are Actually unusable. atmega2560 has four hardware serial ports, two of which are used as endstops, leaving only two serial ports in AUX-1 and EXP-1 for use.
I want to know why TFT35 and RepRap LCD need to be used at the same time. T_T

@BakaBazooka
Copy link
Author

BakaBazooka commented Apr 29, 2019

Thanks @Msq001

I am using the RepRap LCD to adjust my BLTouch settings, since the TFT35 does not come with the BLTouch commands and I do not know how to configure them. So i was hoping to get it working with the two screens. Is it possible to use the EXP-2 instead of the EXP-1, and if so what serial port should it be addressed to?

Has anyone done a step by step guide for Marlin 2.0 for Ender 3 with MKS Gen L?
Can't get my firmware to compile.

@Msq001
Copy link
Contributor

Msq001 commented Apr 29, 2019

The pin of RepRap LCD display is on EXP-1, and the EXP-2 is for SD Card, So if you want to use EXP-2 to display RepRap LCD and EXP-1 to insert TFT35, you need to modify the pins_xx.h for MKS_GEN_L in Marlin firmware.

@BakaBazooka
Copy link
Author

BakaBazooka commented May 6, 2019

Thanks for the info. I might just order the SKR V1.3 board

I assume that the SKR v1.3 would be better for connecting both screens and octoprint? Since it has a dedicated TFT screen port.
But I have a question: the TFT port sharing the same UART connection with the USB port?

@Msq001
Copy link
Contributor

Msq001 commented May 6, 2019

The USB port of SKR V1.3 uses virtual serial port. not the same UART as TFT

@MDRudnicki
Copy link

This worked for me in Configuration.h, Marlin 2.0.:

#define SERIAL_PORT 0
/**

  • Select a secondary serial port on the board to use for communication with the host.
  • This allows the connection of wireless adapters (for instance) to non-default port pins.
  • Serial port -1 is the USB emulated serial port, if available.
  • :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
    */
    #define SERIAL_PORT_2 -1
    I'm running a BTT SKR v1.3 + TFT3.5 + Octoprint and can control the printer through the touchscreen and Octoprint.

@arut16
Copy link

arut16 commented Apr 17, 2020

@MDRudnicki You just connected your RPi by USB to SKR ?

@bdelia
Copy link

bdelia commented Apr 29, 2020

@MDRudnicki , I have a similar setup except I am using the TFT24 V1.1 instead of the TFT3.5. I have the serial ports defined as you do in Marlin, but I cannot seem to get Octoprint and the TFT to operate at the same time. I am using the SKR V1.3 board...Just got the TFT24 a couple of days ago and stuggling to get it fully configured.

Would you mind sharing your Configuration.h, Configuration_adv.h, and aany files associated with PIN assignments like pins.h, pins_BTT_SKR_common.h and pins_BTT_SKR_V1_3.h? I'd like to compare and see if I have missed something with the Marlin config.

@MDRudnicki
Copy link

MDRudnicki commented Apr 29, 2020 via email

@MDRudnicki
Copy link

MDRudnicki commented Apr 29, 2020 via email

@bdelia
Copy link

bdelia commented May 1, 2020

Hey @MDRudnicki , thanks for this. I may be missing it in the cut and paste, but did you also share your Configuration.h file? I seem to only see the Configuration_adv.h file. If you could also share the Configuration.h file that would be great.

Also, if you could attach them rather than cut and paste that might be easier.

Many thanks!

@MDRudnicki
Copy link

MDRudnicki commented May 1, 2020 via email

@Fabriglas
Copy link

Just setting up my skr 1.4 turbo with btt 3.5 e3 TFT ..and see the Pi may not be able to hook up for octoprint... any advice?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants