bigtreetech / BIGTREETECH-SKR-E3-DIP-V1.0

BIGTREETECH SKR-E3-DIP-V1.0 motherboard is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
130 stars 111 forks source link

BigTreeTech SKR E3 DIP v1.1 #103

Closed DaddyCRO closed 3 years ago

DaddyCRO commented 3 years ago

Recently purchased BigTreeTech SKR E3 DIP v1.1 with four TMC5160 drivers. Everything works like a charm (very quiet drivers). The board is built-in in Creality CR-20 Pro 3D printer. Also purchased Bigtreetech TFT24 v1.1 touch screen display. It is working correctly with E3 DIP board in Marlin mode. However, unable to set it up to work in touch screen mode. Have a message "no printer attached" in this mode. Marlin is last version (2.0.7.2?). Also, TFT24 is flashed with latest firmware from GitHub. Both cables are correctly connected (checked pinout several times).

Any suggestions? Is this board able to work with TFT24 in touch screen mode? Thnx for help/sugestions.

oldman4U commented 3 years ago

Hi

It works

Send a picture which shows the cable and what is the baud rate defined in Marlin and TFT?

DaddyCRO commented 3 years ago

Hi,

please find settings bellow...

SKR E3 DIP Configuration.h:

define SERIAL_PORT 2

define SERIAL_PORT_2 -1

define BAUDRATE 115200

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

define CR10_STOCKDISPLAY

BTT TFT24_V1.1 config.ini:

Options: [Unified Menu: 1, Classic Menu: 0]

unified_menu:0

Baudrate

Options: [2400: 0, 9600: 1, 19200: 2, 38400: 3, 57600: 4, 115200: 5, 250000: 6, 500000: 7, 1000000: 8]

baudrate:5

--------------------------------------------------------------------

Marlin Mode Settings (Only for TFT24_V1.1 & TFT28/TFT35/TFT43/TFT50/TFT70_V3.0)

--------------------------------------------------------------------

Default Mode

Options: [0: Marlin Mode, 1: Touch Mode]

default_mode:1

Keep Serial Always ON

Keep UART (Serial communication) alive in Marlin Mode

Allow seamless OctoPrint UART connection to the TFT's UART/serial expansion port no matter which mode the TFT is in.

Options: [0: Disabled, 1: Enabled]

serial_always_on:1

Default Marlin Mode Background & Font Color Options

Options: [ WHITE: 0, BLACK: 1, RED: 2, GREEN: 3, BLUE: 4, CYAN: 5, MAGENTA: 6, YELLOW: 7,

ORANGE: 8, PURPLE: 9, LIME: 10, BROWN: 11, DARKBLUE: 12, DARKGREEN: 13, GRAY: 14, DARKGRAY: 15]

Or set the color(RGB888 format) hex value directly(start with “0x”).

Such as: 0xFF0000 : Red, 0x00FF00 : Green, 0x0000FF : Blue

marlin_bg_color:1 marlin_fn_color:8

Marlin Mode show title

Options: [enable: 1, disable: 0]

marlin_show_title:1

Run Marlin Mode in Fullscreen

Options: [enable: 1, disable: 0] [Disabled. RECOMMENDED FOR TFT24]

marlin_fullscreen:0

Select marlin type

Options: [LCD12864: 1, LCD2004: 0]

marlin_type:1

Text displayed at the top of the TFT in Marlin Mode.

marlin_title:LCD12864 Simulator

Also, as suggested, all these options are enabled in Marlin firmware:

Note: Ensure that following options are enabled in Marlin firmware

#

M115_GEOMETRY_REPORT (in Configuration_adv.h)

M114_DETAIL (in Configuration_adv.h)

REPORT_FAN_CHANGE (in Configuration_adv.h)

EMERGENCY_PARSER (in Configuration_adv.h)

SERIAL_FLOAT_PRECISION 4 (in Configuration_adv.h)

HOST_ACTION_COMMANDS (in Configuration_adv.h)

#

For printing from onboard SD

#

SDSUPPORT (in Configuration.h)

AUTO_REPORT_TEMPERATURESS (in Configuration_adv.h)

AUTO_REPORT_SD_STATUS (in Configuration_adv.h)

LONG_FILENAME_HOST_SUPPORT (in Configuration_adv.h)

SDCARD_CONNECTION ONBOARD (in Configuration_adv.h)

Thank you for support! P.S. I do not know why there is so big font in reply., so sorry for that...

DaddyCRO commented 3 years ago

BTT TFT24_V1 1 Also, please finf picture of TFT24 and cables...

oldman4U commented 3 years ago

I am wondering that Marlin works.

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

Has to be changed to //#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

Try also to change the serial port from 2 to 0.

DaddyCRO commented 3 years ago

Tried with both settings already. If I comment //#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, it is also not working. Then for LCD/TFT section stays only uncommented "#define CR10_STOCKDISPLAY". Does a board needs (somehow) an information that TFT screens is connected to the board?

If I set serial port to "0", Marlin displays error during building firmware:

error "SERIAL_PORT must be -1 or from 1 to 5. Please update your configuration."

oldman4U commented 3 years ago

Do you have a picture of the mainboard and how the cable looks like there also.

DaddyCRO notifications@github.com schrieb am Sa. 12. Dez. 2020 um 00:03:

[image: BTT TFT24_V1 1] https://user-images.githubusercontent.com/75860696/101962800-5ef09a80-3c0d-11eb-8b80-a61c841bf3e1.jpg Also, please finf picture of TFT24 and cables...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-743471156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZHCPVKDKOQHC4KRN7TSUKQMRANCNFSM4UXGIKSA .

oldman4U commented 3 years ago

define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

Is only for mainboards with two 10pin cables. Yours is using one on the mainboard and two on the TFT. This also has nothing to do with touch mode but 2 display types are wrong.

Touchmode requires 3 things.

  1. working serial connection including sender (TFT), receiver (mainboard) and cable and
  2. same baudrate defined in Marlin and TFT.
  3. correct serial port (seems to be 2)

So please change serial back from 0 to 2. Then try to change the baudrate on the TFT to another value (wait 10sec before checking the next value). Last check the black 5pin serial cable with a multimeter and if the orientation is correct. You see the pin value at the back of the mainboard.

DaddyCRO notifications@github.com schrieb am Sa. 12. Dez. 2020 um 00:18:

Tried with both settings already. If I comment //#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, it is also not working. Then for LCD/TFT section stays only uncommented "#define CR10_STOCKDISPLAY". Does a board needs (somehow) an information that TFT screens is connected to the board?

If I set serial port to "0", Marlin displays error during building firmware:

error "SERIAL_PORT must be -1 or from 1 to 5. Please update your

configuration."

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-743475772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZFT7ZTYRMA7JWPQHVTSUKSF3ANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

Not in this moment. I will tomorrow (in Croatia is almost midnight :-) ), open a printer, and take a picture. I saw here that there is a difference between v1.0 and v1.1 in pins: image So I follow this scheme to connect a cable... BOARD TFT

RST RST RX2 TX TX2 RX GND GND +5V +5V

I even changed pins on the board side cable connector to match RX-RX and TX-TX but without success...

oldman4U commented 3 years ago

It is after midnight here in Austria 😁

DaddyCRO notifications@github.com schrieb am Sa. 12. Dez. 2020 um 00:31:

Not in this moment. I will tomorrow (in Croatia is almost midnight :-) ), open a printer, and take a picture. I saw here that there is a difference between v1.0 and v1.1 in pins: [image: image] https://user-images.githubusercontent.com/75860696/101964069-6796a000-3c10-11eb-803b-b53225a5a94b.png So I follow this scheme to connect a cable... BOARD TFT

RST RST RX2 TX TX2 RX GND GND +5V +5V

I even changed pins on the board side cable connector to match RX-RX and TX-TX but without success...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-743480571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZBZIYGLZYQFO2LBUGTSUKTTPANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

:-) Greetings then from Croatia to Austria... I am working for one Austrian company here in Zagreb...

oldman4U commented 3 years ago

Greetings back. 👍🏻

DaddyCRO notifications@github.com schrieb am Sa. 12. Dez. 2020 um 00:37:

:-) Greetings then from Croatia to Austria... I am working for one Austrian company here in Zagreb...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-743482345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZGMF2O3PKVMZWEROFLSUKULPANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

Forgot to mention that I also compared "pins_BTT_SKR_E3_DIP.h" and "pins_BTT_SKR_PRO_common.h" files in VSC. In "pins_BTT_SKR_E3_DIP.h" file is missing section (exists in "pins_BTT_SKR_PRO_common.h" which uses other BTT board, except mini):

if IS_TFTGLCD_PANEL

if ENABLED(TFTGLCD_PANEL_SPI)

#define TFTGLCD_CS                      PG10

endif

Do not know if that affects to board TFT compatibility...

oldman4U commented 3 years ago

The combination of mainboard and TFT works out of the box without changing any pins file.

Connection Serial port Baud rate

DaddyCRO commented 3 years ago

20201212_144726

DaddyCRO commented 3 years ago

20201212_145156

DaddyCRO commented 3 years ago

20201212_145944

oldman4U commented 3 years ago

OK, so the cabling is right.

Assuming the cable is not broken and also that the SKR and the TFT are OK it has to be in software.

So I checked again Marlin and I have the following defined:

define SERIAL_PORT 2

//#define SERIAL_PORT_2 -1 //do not need USB so it is uncommented

define BAUDRATE 115200

With this setting and baud rate of the TFT also set to 115200, this has to work. Check the baud rate in the corresponding touchscreen menu.

DaddyCRO commented 3 years ago

It is strange that I cannot enter menu in touch screen mode. Long press on screen leads to a menu for choose between Marlin and touch screen mode, so I cannot check baud rate on TFT24. Yesterday I flashed new firmware versio on TFT without problem... In config.ini for TFT baud rate is set to 115200... Single press on any icon on screen has no response... Will try to comment line and rebuild Marlin... Thank you for your help...

oldman4U commented 3 years ago

Wait. You can not press a button on the touchscreen??

Make an empty textfile named reset.txt and save it on the sd card. Put it in the TFT and reset the TFT. Let me know

DaddyCRO commented 3 years ago

I did. After restart, it brings a menu for touch screen calibration... I successfully calibrated the screen, and now I can press on icons. So thank you for this tip! Checked baud rate on TFT24 and it is correctly sated up to 115200... Commented //#define SERIAL_PORT_2 -1 line, and building firmware...

DaddyCRO commented 3 years ago

Just did. But I still have "No printer attached!" message on screen. Do not know if it has some matter, but I am compiling in STM32F103RE_btt_USB mode... I have STM32F103RET6 chip on board...

oldman4U commented 3 years ago

STM32F103RC_btt is my defaults_envs

DaddyCRO notifications@github.com schrieb am So. 13. Dez. 2020 um 22:11:

Just did. But I still have "No printer attached!" message on screen. Do not know if it has some matter, but I am compiling in STM32F103RE_btt_USB mode... I have STM32F103RET6 chip on board...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744069091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZE7ESWA4O6MXFVPTJTSUUUY3ANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

20201202_183228

DaddyCRO commented 3 years ago

Just build "STM32F103RE_btt" and flash. Still the same... No connection...

oldman4U commented 3 years ago

Replace the cable. Can you make a new one?

DaddyCRO notifications@github.com schrieb am So. 13. Dez. 2020 um 22:28:

Just build "STM32F103RE_btt" and flash. Still the same... No connection...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744071296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZECZTMXYOHZ4TWAQ2LSUUWX7ANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

I will check it with my instrument (pin by pin connection)... I have digital multimeter at home... But it is brand new. I got it with my TFT24...

oldman4U commented 3 years ago

Ok.

DaddyCRO notifications@github.com schrieb am So. 13. Dez. 2020 um 22:31:

I will check it with my instrument (pin by pin connection)... I have digital multimeter at home... But it is brand new. I got it with my TFT24...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744071642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZFJTSDGG2J2X7LGRATSUUXCNANCNFSM4UXGIKSA .

oldman4U commented 3 years ago

What happens when you disconnect the 10pin cables and only keep the 5pin cable connected?

DaddyCRO commented 3 years ago

Hi. It powers up normally, butin touch screen mode still reports error message "No printer attached!" Got back from office, will check the cable immediately...

oldman4U commented 3 years ago

Serial port 2 Baud rate the same

If those two are correct it has to be hardware.

DaddyCRO notifications@github.com schrieb am Mo. 14. Dez. 2020 um 17:39:

Hi. It powers up normally, butin touch screen mode still reports error message "No printer attached!" Got back from office, will check the cable immediately...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744561897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZBETRRPBITEMFFKRILSUY5TZANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

Just checked the cable: all pins have connection cable seems OK to me.

DaddyCRO commented 3 years ago

One thing that bothers me is cable pinout, I am not sure if it is correct...

At the board, top most PIN is RST, and it is connected with RST pin on TFT24 next pin below on the board is RX2, it is connected to the TX2 pin on TFT24 next pin below on the board is TX2, it is connected to the RX2 pin on TFT24 next pin below on the board is GND, it is connected to the GND pin on TFT24 next pin below (bottom one) on the board is +5V, it is connected to the +5V pin on TFT24

Does TX2 and RX2 pins needs to be connected with corresponding TX and RX pins on TFT24? Or it should be as it is connected right now (describe earlier)?

DaddyCRO commented 3 years ago

Just swapped the cable pins so TX on the board points to the TX on TFT24, and RX on the board points on RX on TFT24, but without success. Still no conection...

DaddyCRO commented 3 years ago

What about serial port configuration number? I tried with 1 and 2: should I try with other numbers from the range (0 - 5)?

oldman4U commented 3 years ago

I used the cable without modifications. Connections are straight.

I asked you to disconnect all other cables because the TFT has to work in touchmode with 5pin cable only.

DaddyCRO notifications@github.com schrieb am Mo. 14. Dez. 2020 um 18:23:

Just swapped the cable pins so TX on the board points to the TX on TFT24, and RX on the board points on RX on TFT24, but without success. Still no conection...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744588739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZC2BPKHMTAPLWY3RLDSUZCXZANCNFSM4UXGIKSA .

oldman4U commented 3 years ago

Your motherboard requires 2.

DaddyCRO notifications@github.com schrieb am Mo. 14. Dez. 2020 um 18:24:

What about serial port configuration number? I tried with 1 and 2: should I try with other numbers from the range (0 - 5)?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744589786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZF2HDVJG2Y2ACS3XQLSUZC6VANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

So it is HW issue: either board, TFT or both...

oldman4U commented 3 years ago

Guess so. Or cable. Or something in pins which you changed falsly. If you send me Dropbox or something else link I can send you the firmware of mainboard and TFT.

DaddyCRO notifications@github.com schrieb am Mo. 14. Dez. 2020 um 19:06:

So it is HW issue: either board, TFT or both...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/issues/103#issuecomment-744613321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZDMA6UJKMIMTQVZQX3SUZHY5ANCNFSM4UXGIKSA .

DaddyCRO commented 3 years ago

Can you send it in e-mail in zip file?

oldman4U commented 3 years ago

Yes

DaddyCRO commented 3 years ago

Then please send it to: les.darko@gmail.com Thank you...

oldman4U commented 3 years ago

IMG_7485 IMG_7486 IMG_7487

DaddyCRO commented 3 years ago

Nice!

oldman4U commented 3 years ago

Please help the community and close the ticket once you do not need it anymore. Thank you

Happy printing

DaddyCRO commented 3 years ago

Just to inform that I finally found out where the problem was... Thank you "oldman4U" for your support. I added a filament run out sensor on the board, and somehow line 1183 in "Configuration.h" file stays uncommented:

define FIL_RUNOUT_PIN 2 // Creality CR20-S stock sensor

After commenting this line, TFT works perfect! It seems that there is some sort of collision between serial port communication and this parameter.

Will close the ticket, since problem (for me) is solved...