얕고 넓게

[3DP] Ender 3 Neo, BTT SKR V1.4 보드 교체 #1 본문

IT/3D Printer, CNC

[3DP] Ender 3 Neo, BTT SKR V1.4 보드 교체 #1

블랙오닉스 2024. 8. 23. 21:32

2024.08.23

드디어 LCD, 모터, A4988 내용이 정리되어 기존 보드 교체를 준비

다시 정리하면

- Ender 3 Neo(Pro) 풀 그래픽 LCD: Marline 에서 CR10_STOCK으로 설정하면 됨

- A4988: 설명서에 RST-SLP을 연결하라고 해서 그렇게 했는데 모터가 이상하게 동작

   유튜드 검색해보니 4개 점퍼를 모두 오른쪽으로 연결 필요

  subdivision은 1/16이 되도록 모두 오른쪽으로

- 모터 케이블: 내써팝에서 샀던 HS 모터는 크로스 케이블 사용

- ESP01: WiFi는 Marline에서 설정하는 것이 아니라 보드의 ESP01 포트에 연결하고, UART로 통신

- 케이스: BTT github에 모델이 많이 있으나 어떻게 조립하는지 몰라 Thingiverse에 올라온 것으로 출력

https://www.thingiverse.com/thing:3717627

 

SKR 1.3 / 1.4 case for Creality Ender 3 and Ender 3 PRO. Easy to print design. by hudja

UPDATE 12/04/20. This case also works with SKR 1.4.UPDATE 12/12/19. I uploaded .stl files of Ender 3 and Ender 3 PRO case with 4020 fan. Look for the '4020fan' in the file names. To avoid confusion, you will need to print:Ender 3 with 4010 fan (stock versi

www.thingiverse.com

참고로 BTT github

https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/tree/master/BTT%20SKR%20V1.3

 

BIGTREETECH-SKR-V1.3/BTT SKR V1.3 at master · bigtreetech/BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required - bigtreetech/BIGTREE...

github.com


ESP-01을 다시 확인하려고 보니 Programmer를 샀던 기억이 난다.

확인해 보니 HW-305

https://www.instructables.com/USB-to-ESP-01-Board-Adapter-Modification/

 

USB to ESP-01 Adapter Board Modification

USB to ESP-01 Adapter Board Modification: Did you buy this USB to ESP-01 Adapter Board and found out that it can't be used for flashing the ESP-01? You're not alone. This first generation adapter doesn't have any mechanism to put the ESP-01 into Serial Pro

www.instructables.com

두가지를 수정 해야 한다.

1. Program 모드를 위해 GPIO0 - GND 연결 스위치 추가 필요

2. 일반 동작 시킬때 EN 연결 필요? -> HW-305에서는 바로 동작한다 -> PCB를 확인해보니 EN-VCC가 연결되어 있다

  WiFi  ESP3D로 접속

 

메뉴를 클릭하면 PC -> WiFi -> ESP-01 -> Serial -> USB -> COM7로 날라온다.


2024.08.24

UART3 관련 포트 설정이 pin_*.h에 안보인다.

일단은

#define SERIAL_PORT_2 3

설정하고 BTTOUCH, LASER를 켜고 돌리니 에러가

 

LASER_FREQ를 막고보니 코멘트에 지원하는 것들에 대한 정보가 있다.

  #define SPINDLE_LASER_USE_PWM                // Enable if your controller supports setting the speed/power
  #if ENABLED(SPINDLE_LASER_USE_PWM)
    #define SPINDLE_LASER_PWM_INVERT    false  // Set to "true" if the speed/power goes up when you want it to go slower
    //#define SPINDLE_LASER_FREQUENCY     2500   // (Hz) Spindle/laser frequency (only on supported HALs: AVR, ESP32, and LPC)
                                               // ESP32: If SPINDLE_LASER_PWM_PIN is onboard then <=78125Hz. For I2S expander
                                               //  the frequency determines the PWM resolution. 2500Hz = 0-100, 977Hz = 0-255, ...
                                               //  (250000 / SPINDLE_LASER_FREQUENCY) = max value.
    #define SPINDLE_LASER_PWM_PIN      EXP2_01_PIN                                          
  #endif

인터럽트 안된다고 한다 ㅠㅠ

// #define ENDSTOP_INTERRUPTS_FEATURE

낮잠 자고 일어나서 "btt skr  esp-01" 로 검색

https://www.youtube.com/watch?v=Z5Cnm-1ybFY

정리가 잘되어 있다.

Serial1을 3번으로

Serial2를 -1로

#define SERIAL_PORT 3
#define BAUDRATE 115200
#define SERIAL_PORT_2 -1
#define BAUDRATE_2 115200  

WiFi를 위한 설정

//#define WIFISUPPORT         // Marlin embedded WiFi management. Not needed for simple WiFi serial port.
#define ESP3D_WIFISUPPORT   // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)

Hardwareserial.h에서 3번 포트의 pin확인

C:\Users\user\.platformio\packages\framework-arduino-lpc176x\cores\arduino

기본으로  28,29로 되어있다.

이제 빌드 해본다

바로 에러

일단 ESP3D_...을 막고 빌드 성공

어라 -> WiFi 설정을 안했는데 LCD에 IP 주소가 나온다

Web으로 제어하고 ProntFace에서 연결해서 확인.


보드 분해하고 교체하니 여러가지 문제가 나온다.

1. End Stop 커넥터: 기존 2핀, SKR은 3핀 -> 우선 GND, Input으로 연결

2. BL touch 커넥터: 기존 5핀, SKR은 3+2핀 -> 일단 보류

3. Motor 커넥터

  케이블 연결하니 모터가 진동한다

  크로스 케이블은 회전 방향이 거꾸로 같다

검색

https://support.dynamicperception.com/hc/en-us/articles/203218379-Wiring-your-own-stepper-motors-with-the-NMX

Creality V4.2.3

보드   모터

1A      1A

G          x

1B       2A

2A       1B

2B         x

           2B

 

SKR

보드   모터

A1       A1

A2        X

B2      A2

B1

 

가운데 크로스 정상 동작


2024.08.25

추가 작업

1. CR Touch: 5pin -> 3pin + 2pin으로 교체, 핀 순서는 2개 보드가 같았다.(G V In) (G Out)

2. FAN: Cooler 가 기존에는 FAN 터미널에 연결 되었으나, SKR은 Molex 커넥터 -> 수정  완료

            Fan0는 Fan0 커넥터에 연결

3. Z motor: Auto Home을 했는데 Z  만 안움직인다. 모터가 힘이 없어 보인다.

   -> 혹시나 싶어서 Z 모터 드라이버를 Y와 바꿨는데  모두 정상동작?

4. 전원 커넥터: 보드 위치가 뒤로 옮겨 지면서 케이블이 짧아 연결이 안된다

5. Mixing Extruder: Copilot 가이드대로 했는데 에러 발생

#define EXTRUDERS 2
#define MIXING_EXTRUDER
#if ENABLED(MIXING_EXTRUDER)
  #define MIXING_STEPPERS 2        // Number of steppers in your mixing extruder
  #define MIXING_VIRTUAL_TOOLS 16  // Use the Virtual Tool method with M163 and M164
  //#define DIRECT_MIXING_IN_G1    // Allow ABCDHI mix factors in G1 movement commands
  //#define GRADIENT_MIX           // Support for gradient mixing with M166 and LCD
  //#define MIXING_PRESETS         // Assign 8 default V-tool presets for 2 or 3 MIXING_STEPPERS
  #if ENABLED(GRADIENT_MIX)
    //#define GRADIENT_VTOOL       // Add M166 T to use a V-tool index as a Gradient alias
  #endif
#endif

EXTRUDER 1로 설정해본다.

//#define DISABLE_OTHER_EXTRUDERS   // Keep only the active extruder enabled

성공