Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Czyli co i jak podłączyć żeby działało
Awatar użytkownika
atom1477
Postów w temacie: 39
Posty: 259
Rejestracja: 17 paź 2023, 18:21
x 66

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: atom1477 »

Breyger pisze: 29 mar 2024, 09:23 Ale mam zmieniać kwarc na płycie głównej? Dlaczego?
Nie zmieniać na płycie, tylko w ustawieniach żeby ustawienie pasowało do tego co jest na płycie (zresztą już miałeś dobrze bo 8 MHz).
Breyger pisze: 29 mar 2024, 09:23Ten plik .elf też ma być wrzucony na kartę? Wrzucam cały folder, ale może trzeba mu też zmienić nazwę z klipper na robin_nano35 tak jak .bin?
Tak cały czas kombinuję w myślach.
Tylko plik bin jest potrzebny. I trzeba mu zmienić nazwę tak jak napisałeś.
Breyger
Breyger
Postów w temacie: 90
Posty: 188
Rejestracja: 03 mar 2024, 18:29
x 1

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: Breyger »

Chyba są postępy. Ale nie cieszę się przed zachodem słońca. A jak mam teraz wejść do Mainsail? jaki port ma mailsail? Samo IP nie działa
Awatar użytkownika
atom1477
Postów w temacie: 39
Posty: 259
Rejestracja: 17 paź 2023, 18:21
x 66

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: atom1477 »

Chodzi o wejście na stronę? Powinno działać bez portu.
Może adres IP się zmienił.
Breyger
Breyger
Postów w temacie: 90
Posty: 188
Rejestracja: 03 mar 2024, 18:29
x 1

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: Breyger »

Jednak error
Załączniki
Zrzut ekranu 2024-03-29 105238.png
Awatar użytkownika
atom1477
Postów w temacie: 39
Posty: 259
Rejestracja: 17 paź 2023, 18:21
x 66

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: atom1477 »

No to pora zobaczyć co wychodzi z pinu TX RPI przy starcie.
Najprościej LEDem z rezystorem podłączonym od 3.3V RPI do pinu TX. Czyli od pinu 1 do pinu 8.
Breyger
Breyger
Postów w temacie: 90
Posty: 188
Rejestracja: 03 mar 2024, 18:29
x 1

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: Breyger »

Właśnie to mi się wydaje że to może być wina po strony maliny. A nie trzeba włączyć GPIO w raspi-config? Albo coś? Ale tam chyba jest remote GPIO
Awatar użytkownika
atom1477
Postów w temacie: 39
Posty: 259
Rejestracja: 17 paź 2023, 18:21
x 66

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: atom1477 »

Nie chodzi o remote GPIO, tylko o UARTa.
Musi być włączony. U mnie po instalacji był włączony od razu, ale może nie zawsze tak jest.
Trzeba by sprawdzić w ustawieniach po wywołaniu komendy:

Kod: Zaznacz cały

sudo raspi-config
Tylko zamiast "wydaje mi się", może sprawdź na 100% że to wina UARTa w RPI. Czyli sprawdź tym LEDem.
Breyger
Breyger
Postów w temacie: 90
Posty: 188
Rejestracja: 03 mar 2024, 18:29
x 1

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: Breyger »

Pany, byłem się pomodlić na nabożeństwie. I Pan wysłuchał chyba moje prośby.

Wkleiłem w printer.cfg ten konfig co podałeś (Atom) na poprzedniej stronie. Oczywiście zmieniłem na /dev/ttyS0 Co dalej?

Kod: Zaznacz cały

# This file contains common pin mappings for the Two Trees Sapphire
# Pro (SP-3) printer (Robin Nano 1.2, TMC2209 drivers for X,Y,Z,E, TMC2209 on single PC7 pin (addressed by MS1/MS2 pins)).

# INSTRUCTIONS FOR COMPILING
# To use this config, the firmware should be compiled for the STM32F103.
# When running "make menuconfig", enable "extra low-level configuration setup",
# select the 28KiB bootloader, serial (on USART1 PA10/PA9) to use direct UART connection with Raspberry trough wifi pins.
# Set "GPIO pins to set at micro-controller startup" to "!PC6,!PD13" to turn off display at startup.

# INSTRUCTIONS FOR FLASHING, THE SCRIPT IS COMPULSORY OR IT WON'T WORK!!!
# Note that the "make flash" command does not work with the Robin Nano!
# After running "make", run the following command in one row FROM THE KLIPPER FOLDER:
#   ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano35.bin
# Copy the file out/Robin_nano35.bin (if you can't find the file the script was not executed)
# to an SD card and then restart the printer with that SD card.
# If you removed the LCD screen rename the file to "Robin_nano43.bin" for correct flashing.

# See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PE3
dir_pin: !PE2
enable_pin: !PE4
microsteps: 16
rotation_distance: 40
endstop_pin: !PA15
position_endstop: 0
position_max: 230
homing_speed: 50

[tmc2209 stepper_x]
uart_pin: PC7
uart_address: 0
run_current: 0.800
hold_current: 0.290
stealthchop_threshold: 999999

[stepper_y]
step_pin: PE0
dir_pin: !PB9
enable_pin: !PE1
microsteps: 16
rotation_distance: 40
endstop_pin: !PA12
position_endstop: 230
position_max: 230
homing_speed: 50

[tmc2209 stepper_y]
uart_pin: PC7
uart_address: 1
run_current: 0.800
hold_current: 0.290
stealthchop_threshold: 999999

[stepper_z]
step_pin: PB5
dir_pin: !PB4
enable_pin: !PB8
microsteps: 16
rotation_distance: 2
endstop_pin: probe:z_virtual_endstop
position_max: 230
position_min: -6

[tmc2209 stepper_z]
uart_pin: PC7
uart_address: 2
run_current: 0.580
hold_current: 0.290
stealthchop_threshold: 999999

[extruder]
step_pin: PD6
dir_pin: !PD3
enable_pin: !PB3
microsteps: 16
gear_ratio: 50:17
rotation_distance: 23.52
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC3
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC1
control: pid
pid_Kp: 14.669
pid_Ki: 0.572
pid_Kd: 94.068
min_temp: 0
max_temp: 250

[tmc2209 extruder]
uart_pin: PC7
uart_address: 3
run_current: 0.700
hold_current: 0.330
stealthchop_threshold: 999999

[heater_bed]
heater_pin: PA0
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
control: pid
pid_Kp: 325.10
pid_Ki: 63.35
pid_Kd: 417.10
min_temp: 0
max_temp: 130

[heater_fan extruder]
pin: PB0

[fan]
pin: PB1

[mcu]
serial: /dev/ttyS0
restart_method: command

[printer]
kinematics: corexy
max_velocity: 250
max_accel: 4500
max_z_velocity: 10
max_z_accel: 80

[bed_screws]
screw1: 15,15
screw2: 210,15
screw3: 210,210
screw4: 15,210

[static_digital_output reset_display]
pins: !PC6, !PD13
Załączniki
Zrzut ekranu 2024-03-29 185245.png
Zrzut ekranu 2024-03-29 185415.png
Awatar użytkownika
konradsdev1
Postów w temacie: 17
Posty: 455
Rejestracja: 30 wrz 2020, 16:55
Lokalizacja: Warszawa
Drukarka: VORON 0
x 178

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: konradsdev1 »

Jeśli masz czujnik typu BLTouch to w konfigu brakuje Ci sekcji [probe] a jeśli to zwykła krańcówka to dla stepper_z powinno być np:

Kod: Zaznacz cały

[stepper_z]
endstop_pin: !PA1
"Everybody needs a hobby" (Tony Stark).
VORON V0.2 (BTT SKR Pico + RPi 4B + Phaetus x Voron Dragon Hotend ST)
DIY MK4 + VORON Stealthburner (BTT SKR PRO V1.1 + RPi Zero 2 W)
Breyger
Postów w temacie: 90
Posty: 188
Rejestracja: 03 mar 2024, 18:29
x 1

Re: Klipper dla Two Trees Sapphire Pro - rozeznanie tematu

Post autor: Breyger »

Mam BLtouch (klon) i wkleiłem na początku (czy to różnica jakaś?) pliku printer.cfg:

Kod: Zaznacz cały

[bltouch]
sensor_pin: ^PA11
control_pin: PA8
x_offset: 0
y_offset: -38.5
z_offset: 0
speed: 5.0
samples: 3
sample_retract_dist: 2.0
samples_result: average
samples_tolerance: 0.100
samples_tolerance_retries: 3
pin_move_time: 0.680
stow_on_each_sample: True
probe_with_touch_mode: False
pin_up_reports_not_triggered: True
pin_up_touch_mode_reports_triggered: True
Piny i offset pozmieniałem na swoje. Reszta tej sekcji z neta. Teraz mam to co na screenie.
Dodam jeszcze póki mogę edytować że mam tylko pisany config do printer.cfg. Nic innego nie ruszałem
Załączniki
Zrzut ekranu 2024-03-29 193639.png
Ostatnio zmieniony 29 mar 2024, 19:51 przez Breyger, łącznie zmieniany 1 raz.
ODPOWIEDZ

Wróć do „Elektronika sterująca, wyświetlacze”