bigtreetech / BIGTREETECH-SKR-E3-Turbo

79 stars 53 forks source link

DWIN display Ender 3v2 #40

Open tome9111991 opened 3 years ago

tome9111991 commented 3 years ago

Hi Has anyone an idea how to get work the E3 turbo with Ender 3v2 dwin display?

EDIT: yes the e3 turbo is working with Ender 3 v2 stock display.

But a special display cable is required.

Attention don't touch Black(Pin1) & White(Pin2) wire it is for 5V/GND can damage you board/display.

Working cable: https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-991810976

https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-981102671

https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-922464232

Reference is this: https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-991853287

Firmware config can be found here. https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-980503242

A basic working precompiled firmware: https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-980544636

erdoganguner commented 2 years ago

It gives me this error when I try to compile it

`Processing LPC1769 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1769; framework: arduino)

Verbose mode can be enabled via -v, --verbose option In file included from c:\users\guner\documents\marlin-2.0.x\marlin\src\pins\pins.h:413, from c:\users\guner\documents\marlin-2.0.x\marlin\src\inc\marlinconfig.h:34, from buildroot/share/PlatformIO/scripts/common-dependencies.h:29: c:\users\guner\documents\marlin-2.0.x\marlin\src\pins\lpc1769/pins_BTT_SKR_E3_TURBO.h:205:4: error: #error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue." 205 | #error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue." | ^~~~~ CalledProcessError: Command '"C:\Users\guner.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-g++.exe" -DMARLIN_FIRMWARE -DNDEBUG -DU8G_HAL_LINKS -DMARLIN_DEPS -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.: File "C:\Users\guner.platformio\penv\lib\site-packages\platformio\builder\main.py", line 175: env.SConscript(item, exports="env") File "C:\Users\guner.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 591: return _SConscript(self.fs, *files, *subst_kw) File "C:\Users\guner.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 280: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\guner\Documents\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 320: apply_features_config() File "C:\Users\guner\Documents\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 139: if not env.MarlinFeatureIsEnabled(feature): File "C:\Users\guner.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Util.py", line 658: return self.method(nargs, kwargs) File "C:\Users\guner\Documents\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 296: load_marlin_features() File "C:\Users\guner\Documents\Marlin-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 284: define_list = subprocess.check_output(cmd, shell=True).splitlines() File "C:\Users\guner.platformio\python3\lib\subprocess.py", line 411: kwargs).stdout File "C:\Users\guner.platformio\python3\lib\subprocess.py", line 512: output=stdout, stderr=stderr)`

Do I have to make other changes in platformio.ini? So far I only changed the enviroment to LPC1769

erdoganguner commented 2 years ago

Since I'm in a bit of a hurry, would it be too much to ask just for the working bin file compatible with the DWIN display?

tome9111991 commented 2 years ago

You have to comment out the #error message in Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h Like:

//#error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue."

If i have free time i can upload a basic working firmeware.bin

But modified display cable still required

Working firmware: firmware.bin.zip

erdoganguner commented 2 years ago

I think I can handle modifying the display cable really thankful by the way

erdoganguner commented 2 years ago

I don't think I've rewired the cable correctly. Has anyone gotten it working with dupont connectors? Tried following the photos above; didn't work

tome9111991 commented 2 years ago

Still works for me.

Attention i use a black and a grey cable maybe look same in the photo. The black cable is near the white cable (+5V/GND).

Colors not match with original display cable.

Here my jumper cable 20210919_181608 20210919_181259

20211128_163128 20211128_163110 20211128_163034 20211128_163010

I-dont-want-peace commented 2 years ago

For some reason I found the above images and the text art confusing. I had to be patient to sort this out but here is, what I think, is a helpful couple pictures from when I did this. I disassembled the screen side connector and clipped the wires that were not being rearranged about 3mm, the ones that I was moving about 1mm (just enough to refresh the insulation) and then used to super thin screw driver to start them into the connection blades and then used the first piece of the connecter to press them back into their connections during reassembly. The orientation nub is hidden by the wires and under my index finger.

Works great now. IMG_0668 IMG_0533

PS. If you're also connecting a BLTouch ensure you have the wiring correct. I had them wrong and the screen would not work (flashing & blank) and the Octoprint Rpi disconnected from Wifi as soon as it booted. Fixing the BLTouch enabled them both to work.

tome9111991 commented 2 years ago

e3 turbo

is based on:


 /**
  *          Ender 3 V2 display                       SKR E3 Turbo (EXP1)                Ender 3 V2 display --> SKR E3 Turbo
  *                ------                                     ------                                  RX  8 -->  5  P0_15
  *            5V | 1  2 | GND                            5V | 1  2 | GND                             TX  7 -->  9  P0_16
  *   (BTN_E1)  A | 3  4 | B   (BTN_E2)       (LCD_EN) P0_18 | 3  4 | P0_17 (LCD_RS)              BEEPER  5 --> 10  P2_08
  *        BEEPER | 5  6   ENT (BTN_ENC)      (LCD_D4) P0_15 | 5  6   P0_20 (BTN_EN2)
  *  (SKR_RX1) TX | 7  8 | RX  (SKR_TX1)               Reset | 7  8 | P0_19 (BTN_EN1)
  *            NC | 9 10 | NC                (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
  *                ------                                     ------
  */

EDIT: "Color code" original display cable:

Wire    =   Pin

Black   =   1
White   =   2
Grey    =   3
Purple  =   4
Blue    =   5
Green   =   6
Yellow  =   7
Orange  =   8
Red =   9
Brown   =   10
Nuttavoot commented 2 years ago

Could you show me the photos of the screen when using this board with original v2 LCD ?

Which ui you’re using?

tome9111991 commented 2 years ago

Could you show me the photos of the screen when using this board with original v2 LCD ?

Which ui you’re using?

what do you want to see? there is no difference to the stock board. Only have this photo https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/40#issuecomment-864204378

I'm use EnhancedUI cirrently but the other UI's ist working too.