Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcu 'PIS': Unable to connect #19

Open
EnginGitg opened this issue Jan 11, 2024 · 1 comment
Open

mcu 'PIS': Unable to connect #19

EnginGitg opened this issue Jan 11, 2024 · 1 comment

Comments

@EnginGitg
Copy link

EnginGitg commented Jan 11, 2024

I followed the guides but it doesn't work. I have a raspberry pi 3a using fluid connected to ender 3 and pis.
Why is my serial usb-1a86 while yalls is rp2040?

Klipper is saying: mcu 'PIS': Unable to connect

Screenshot 2024-01-11 231411
Screenshot 2024-01-11 231944

PIS.cfg file:

`[mcu PIS]

Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify

serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

[adxl345]
cs_pin: PIS:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: PIS:gpio10
spi_software_mosi_pin: PIS:gpio11
spi_software_miso_pin: PIS:gpio12
axes_map: x,-z,y

[resonance_tester]
accel_chip: adxl345

accel_chip: adxl345

probe_points:
100,100,20 # an example
`

Printer.cfg file:

`# This file contains pin mappings for the stock 2020 Creality Ender 3

V2. To use this config, during "make menuconfig" select the

STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)

communication.

If you prefer a direct serial connection, in "make menuconfig"

select "Enable extra low-level configuration options" and select

serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC

cable used for the LCD module as follows:

3: Tx, 4: Rx, 9: GND, 10: VCC

Flash this firmware by copying "out/klipper.bin" to a SD card and

turning on the printer with the card inserted. The firmware

filename must end in ".bin" and must not match the last filename

that was flashed.

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

[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop: 0
position_min: 0
position_max: 230
homing_speed: 50

[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: -12
position_min: -12
position_max: 230
homing_speed: 50

[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
#position_endstop: 0.0
position_min: -4
position_max: 250

[stepper_z1]
step_pin: PA14
dir_pin: !PA13
enable_pin: !PC3
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop

[extruder]
max_extrude_only_distance: 100.0
step_pin: PB4
dir_pin: PB3
enable_pin: !PC3
microsteps: 16
rotation_distance: 7.71
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_only_distance: 100
pressure_advance: 0.065
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid

tuned for stock hardware with 200 degree Celsius target

pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 260

[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid

tuned for stock hardware with 50 degree Celsius target

pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130

[fan]
pin: PA0

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

[bltouch]
sensor_pin: ^PB1
control_pin: PB0
x_offset: -36
y_offset: 0
#z_offset: 0

[safe_z_home]
home_xy_position: 151,115 # Nozzle coordinates
speed: 250
z_hop: 10
z_hop_speed: 5

[bed_mesh]
speed: 250
horizontal_move_z: 5
mesh_min: 40,40 # Probe coordinates
mesh_max: 190, 190
probe_count: 3,3

[screws_tilt_adjust]
screw1: 71,35 # Probe coordinates
screw1_name: front left screw
screw2: 230,35
screw2_name: front right screw
screw3: 230,200
screw3_name: rear right screw
screw4: 71,200
screw4_name: rear left screw
horizontal_move_z: 5.
speed: 250.
screw_thread: CCW-M4

[z_tilt]
z_positions: 39, 212.5
330, 212.5
points: 59, 117.5
230, 117.5
speed: 100
retries: 5
retry_tolerance: 0.05

[virtual_sdcard]
path: ~/printer_data/gcodes

[display_status]

[pause_resume]

[input_shaper]
shaper_freq_x: 40.4
shaper_type_x: 2hump_ei
shaper_freq_y: 53.6
shaper_type_y: 2hump_ei

[mcu rpi]
serial: /tmp/klipper_host_mcu

#[adxl345]
#cs_pin: rpi:None

#[resonance_tester]
#accel_chip: adxl345
#probe_points:

115,115,20

[include macros.cfg]
[include PIS.cfg]

## <---------------------- SAVE_CONFIG ---------------------->
#
# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
##
#
# [bltouch]
## z_offset = 0.700
#
#
## [bed_mesh default]
#
# version = 1
## points =
#
# 0.000000, -0.017500, -0.052500
## 0.002500, -0.007500, -0.027500
#
# 0.002500, 0.002500, 0.027500
## tension = 0.2
#
# min_x = 40.0
## algo = lagrange
#
# y_count = 3
## mesh_y_pps = 2
#
# min_y = 40.0
## x_count = 3
#
# max_y = 190.0
## mesh_x_pps = 2
#
# max_x = 190.0
`

@bepstein111
Copy link

Do you have the NIS not the PIS? Many of the AliExpress pages selling the NIS call it the PIS even though it's not. See NIS here: https://github.com/FYSETC/Nozzle-Input-Shaper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants