bigtreetech / BIGTREETECH-SKR-mini-E3

BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It 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.
2.02k stars 1.98k forks source link

BTT SKR MINI E3 V2 with BTT MINI12864 V1.0 - only backlight working #686

Open Legiotech opened 2 years ago

Legiotech commented 2 years ago

Hi I'm trying to connect SKR MINI V2 with Mini12864, but best I can get is backlight working. I've made a custom cable to connect display to the board - then i checked 10 times if i made it right (according to #650/info in Marlin files). I have also followed recomendations for commenting/uncommenting different lines from #650 topic. I have set the contrast in _Marlin\src\lcd\dogm\marlinuiDOGM.cpp to 255: void MarlinUI::_set_contrast() { u8g.setContrast(255); } IMG_20220929_174446

If I am correct my cable is working fine, otherwise i wouldn't get backlight (at least gnd, +5 and one more cable are fine). Do you know any way to make my screen work?

P1ayer2 commented 1 year ago

No way! Thank you so much!

stilkata8888 commented 1 year ago

No way! Thank you so much!

when your display arrives connect it with the board and tell me does it turn on

shahabaz commented 1 year ago

Same situation here, apparently I have got SKR Mini E3 V2.1 which seems to be similar to V2.0. I just got my display will try this out and update here

stilkata8888 commented 1 year ago

make things in this thread and ur diaplsy is gonna work :)

shahabaz commented 1 year ago

make things in this thread and ur diaplsy is gonna work :)

Sure I'm on it. I got side tracked by a solution from Smith3d here I was wondering which to go from. I will try things from here first and then get back.

Since I highlighted this can you confirm if both say the same ?

P1ayer2 commented 1 year ago

Hey again! I got it to work pretty easily. All I had to do was to wire it like it says in the Marlin documentation. It worked on the first try!

shahabaz commented 1 year ago

It's working for me too. @Sporkforce v2 wiring helped me. SD card doesn't seem to be working plus need to check on USB..

16806954288142218320905287514256

radek8 commented 1 year ago

The SD card cannot work. Your board has only the EXP1 connector

shahabaz commented 1 year ago

The SD card cannot work. Your board has only the EXP1 connector

How about the error speaker does it work ?

radek8 commented 1 year ago

The speaker is also not connected and configured. Looking at the schematic, with a little modification to the wiring and pin set, the speaker could be wired up.

There probably won't be enough free pins on the SD card. So you have to use the SD card on the SKR board.

shahabaz commented 1 year ago

I'm working on a connecting board for the same, I have figured out the connection for RESET button. I can use PIN 1 of TFT to PIN EXP2-3 of the display however for beep I am looking to use pin from the SKR Board any other recommendations ?

image

radek8 commented 1 year ago

As I recall, these boards SKR have had speaker issues in the past. Either the speed control on the fans worked, or the speaker. The problem was with the limited number of timers in the Processor (if I understood correctly). Perhaps the problem has already been solved.

On the dscse SKR, pin 5 (PA10) on the EXP1 connector remained connected You can connect it to the speaker pin on the display. Define a speaker in the pin file

define BEEPER_PIN EXP1_05_PIN

and enable the speaker in the configuration and compile the new Marlin. Then test if it will work.

If not, another option is to swap pin 5 with another pin to free up a more suitable pin. EXP1_02_PIN or EXP1_08_PIN or EXP1_01_PIN

shahabaz commented 1 year ago

I have created a connector PCB for the same. Feel free to drop in for the PCB layout.

20230501_192238 20230501_192335

TUR106 commented 10 months ago

radek8

Hi, friend. Can you help me connect BTT SKR Mini E3 V2.0 with BTT Mini12864 v1.0. I uploaded your file to Marlin 2.1.2.1 - pins_BTT_SKR_MINI_E3_common.zip. I connected according to this diagram. 198934480-8d2367dc-1920-4924-b592-69256863680d

The image appears, menu works well, but the backlight does not work.

After I uncommented and corrected the lines.

define NEOPIXEL_LED

if ENABLED(NEOPIXEL_LED)

define NEOPIXEL_TYPE NEO_RGB

It gives errors when compiling and I don't know how to fix them.

edited files.zip

radek8 commented 10 months ago

@TUR106 Can you send the error message?

TUR106 commented 10 months ago

@TUR106 Can you send the error message?

112

.pio\libdeps\STM32F103RC_btt_USB_maple\Adafruit NeoPixel/Adafruit_NeoPixel.h:377:3: error: 'GPIO_TypeDef' does not name a type GPIO_TypeDef *gpioPort; ///< Output GPIO PORT ^~~~ * [.pio\build\STM32F103RC_btt_USB_maple\src\src\gcode\queue.cpp.o] Error 1 In file included from Marlin\src\gcode\sd../../feature/leds/neopixel.h:38:0, from Marlin\src\gcode\sd../../feature/leds/leds.h:39, from Marlin\src\gcode\sd../../feature/leds/printer_event_leds.h:28, from Marlin\src\gcode\sd\M1001.cpp:47: .pio\libdeps\STM32F103RC_btt_USB_maple\Adafruit NeoPixel/Adafruit_NeoPixel.h:377:3: error: 'GPIO_TypeDef' does not name a type GPIO_TypeDef gpioPort; ///< Output GPIO PORT ^~~~ [.pio\build\STM32F103RC_btt_USB_maple\src\src\gcode\sd\M1001.cpp.o] Error 1

radek8 commented 10 months ago

How did you configure Marlin? Many users make the mistake of downloading configuration files from some site. He then copies these into the Marlin directory, which he downloaded from another repository in different versions than the configuration files he used. Compilation then ends with errors because the compiler cannot find variables that may have been renamed in different versions.

radek8 commented 10 months ago

radek8

Hi, friend. Can you help me connect BTT SKR Mini E3 V2.0 with BTT Mini12864 v1.0. I uploaded your file to Marlin 2.1.2.1 - pins_BTT_SKR_MINI_E3_common.zip. I connected according to this diagram.

You may not copy the configuration files from this thread to the current version of Marlin!

TUR106 commented 10 months ago

radek8 Hi, friend. Can you help me connect BTT SKR Mini E3 V2.0 with BTT Mini12864 v1.0. I uploaded your file to Marlin 2.1.2.1 - pins_BTT_SKR_MINI_E3_common.zip. I connected according to this diagram.

You may not copy the configuration files from this thread to the current version of Marlin!

That's exactly what I did. I copied the configuration file into the current version of Marlin. Compilation proceeds without problems until I activate the line #define NEOPIXEL_LED

Which version of Marlin should I download for the configuration file to work?

radek8 commented 10 months ago

Never do not copy files from other versions of Marlin. Use the default files and edit the necessary lines. Why did you copy files from this page? What was your problem?

TUR106 commented 10 months ago

Nikfy do not copy files from other versions of Marlin. Use the default files and edit the necessary lines. Why did you copy files from this page? What was your problem?

I bought a board and a screen with a special cable. But the screen didn't work at all. There was no image and no backlight. изображение_viber_2023-12-25_13-47-19-973 изображение_viber_2023-12-25_13-47-19-780

radek8 commented 10 months ago

The cable you bought is not for this display. Use your own cable from this thread and the configuration for this display. However, you must not copy files from another version of Marlin.

radek8 commented 10 months ago

Which version of Marlin should I download for the configuration file to work?

You don't need to copy the file. The display must also work in the new version Marlin

TUR106 commented 10 months ago

Which version of Marlin should I download for the configuration file to work?

You don't need to copy the file. The display must also work in the new version Marlin

I installed clean Marlin 2.1.2.1. And I didn’t change any files. I only edited native files. And I just edited:

Configuration.h

90 #define MOTHERBOARD BOARD_BTT_SKR_MINI_E3_V2_0

101 #define SERIAL_PORT 2

114 #define BAUDRATE 115200

123 #define SERIAL_PORT_2 -1

162 #define X_DRIVER_TYPE TMC2209 162 #define Y_DRIVER_TYPE TMC2209 163 #define Z_DRIVER_TYPE TMC2209 175 #define E0_DRIVER_TYPE TMC2209

2833 #define BTT_MINI_12864_V1

Commented in file pins_BTT_SKR_MINI_E3_common.h - 278 line:

Marlin-2.1.2.1\Marlin\src\pins\stm32f1\pins_BTT_SKR_MINI_E3_common.h

278 //#error "CAUTION! FYSETC_MINI_12864_2_1 / MKS_MINI_12864_V3 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"

After that I compile the firmware. The image and menu work, but there is no backlight. изображение_viber_2023-12-26_19-35-57-113

TUR106 commented 10 months ago

I connect the board and screen according to the following diagram (as indicated in this topic):

BIGTREETECH MINI shema

or

BTT SKR mini E3 V2 0 mini12864 1 0 shema

TUR106 commented 10 months ago

When I activate NEOPIXEL_LED, and Correcting NEO_RGB:

3294 #define NEOPIXEL_LED 3295 #if ENABLED(NEOPIXEL_LED) 3296 #define NEOPIXEL_TYPE NEO_RGB

When compiling, it produces the same errors as before. 123

What am I doing wrong?

radek8 commented 10 months ago

Can you send me your config files and both pin files?

TUR106 commented 10 months ago

Can you send me your config files and both pin files?

Files.zip

radek8 commented 10 months ago

Can you try this modified pins_BTT_SKR_MINI_E3_V2_0.h file?

pins_BTT_SKR_MINI_E3_V2_0.zip

TUR106 commented 10 months ago

Can you try this modified pins_BTT_SKR_MINI_E3_V2_0.h file?

pins_BTT_SKR_MINI_E3_V2_0.zip

333333

TUR106 commented 10 months ago

Can you try this modified pins_BTT_SKR_MINI_E3_V2_0.h file?

pins_BTT_SKR_MINI_E3_V2_0.zip

With my files, does the compilation complete successfully on your computer?

radek8 commented 10 months ago

I have a different version of the Marlin, a different SKR and a different display. I can try to click on your configuration and compile.

TUR106 commented 10 months ago

I don’t understand why only I have this problem when compiling? My brain is already exploding. Out of nerves, I ordered another set of board and screen...

radek8 commented 10 months ago

I used a 20 hour old version of Marlin. I am getting the same error.

TUR106 commented 10 months ago

I am not an expert in this topic. but others had no problems. Is there any way to force the backlight to turn on? I'm not interested in changing colors. The main thing is that the image is visible.

radek8 commented 10 months ago

Unfortunately. I probably can't help you with that

TUR106 commented 10 months ago

friend, thanks for your time. and for your attention. I will continue to look for a solution. If I find anything, I'll let you know.

TUR106 commented 10 months ago

К сожалению. Я, наверное, не смогу тебе с этим помочь

Hi, friend. I chose Marlin bugfix 2.1.x. And I did the compilation through Auto Build Marlin - STM32F103RC_btt_USB (256). And it compiled the firmware without red errors. 654654654

But after updating the board firmware... the backlight did not appear.

fantastic))))

radek8 commented 10 months ago

Also try enabling this option. define LED_USER_PRESET_STARTUP define LED_COLOR_PRESETS

TUR106 commented 10 months ago

Also try enabling this option. define LED_USER_PRESET_STARTUP define LED_COLOR_PRESETS

In general, everything worked out. What I've done: Downloaded pure marlin 2.1.2.1. Replaced configuration files from: Configurations-release-2.1.2.1\config\examples\Creality\Ender-3\BigTreeTech SKR Mini E3 2.0

Configuration.h activated the lines: BTT_MINI_12864_V1

ooooo222

NEOPIXEL_LED, line 3297 changed to: #define NEOPIXEL_TYPE NEO_RGB

ooooo111

Configuration_adv.h activated the lines: LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, LED_COLOR_PRESETS

ooooo

I connected the display according to the diagram as in my pictures above.

Compiled this option ooooo222333

And I’m shocked - everything worked today... And the new screen also arrived today :))))))