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

Complete PIS instructions -- Bed Slinger with EBB36 - Multiple ADXL345 #6

Open
spankurmonkey opened this issue Mar 1, 2023 · 2 comments

Comments

@spankurmonkey
Copy link

I have a bed slinger and have an onboard ADXL345 in the BTT EBB36 canbus setup.

This only gets me X axis input shaping.

I bought the Fysetc PIS to do the Y axis but its unclear in the very limited- near to no - set up instructions.

How to set up 2nd ADXL and get the correct serial id for communication to the Fysetc PIS

@spankurmonkey
Copy link
Author

spankurmonkey commented Mar 1, 2023

My issues are multi-thread -

  1. The Fysetc instructions are not complete for complete set up and use of the PIS.
  2. I have an odd use case that I have a EBB36 on my toolhead and I need ADXL345 on my bed to Input Shape on my Y axis.
  3. With help of folks on Klipper discord I have resolved and able to complete my input shaping using the Fysetc PIS following these steps below. When I tested my Y axis with the PIS - I commented out the ADXL345 config for my EBB36.

MAKE SURE YOUR KLIPPER IS UP-TO-DATE

Via SSH to your PI with Klipper installed

  1. Change directory to Klipper
  2. make menuconfig
  3. set menu per image -- https://github.com/FYSETC/FYSETC-PortableInputShaper/blob/main/menuconfig.png
    3.1 Do not enable extra low-level configuration options
    3.2 Set Micro-controller Architecutre to Raspberry PI RP2040
    3.3 Set communication interface to USB
  4. Exit and save menu config.
  5. sudo service klipper stop
  6. make flash
  7. sudo service klipper start

Now the firmware 'klipper.uf2' should be created and located on your pi in the klipper/out directory

  1. FTP into your PI
  2. Navigate to the Klipper/Out directory
  3. Download the 'klipper'uf2' file onto your pc desktop.
  4. Exit and quit FTP

Now flash the firmware 'klipper.uf2' onto the Fysetc PIS

  1. Press and hold the button on the Fysetc PIS
  2. Connect the PIS with USB C to your PC
  3. Release the button on the PIS
  4. A folder named RPI-RP2 will pop up
  5. Copy/Move the 'klipper.uf2' file from your desktop into the RPI-RP2 folder
  6. Wait - the folder should close automatically
  7. Unplug the PIS from your PC

Now set up PIS on your PI via USB

  1. Press and Hold the button on the PIS
  2. Connect PIS to your Raspberry PI

Now set up the firmware

  1. Via SSH issue - lsusb
  2. locate the device ID for the RP2040 -- i.e. Bus 001 Device 008: ID 2e8a:0003 Raspberry Pi RP2 Boot
  3. Copy the ID i.e. '2e8a: 0003'
  4. CD to your Klipper directory
  5. issue command- make flash FLASH_DEVICE=2e8a:0003 << CHANGE TO YOUR DEVICE ID
  6. You should see that the UF2 has been flashed

Now lets find the serial address for the Fysetc PIS RP2040 connected to your PI

  1. issue command - ls /dev/serial/by-id/*
  2. copy the address denoted with rp2040 -- ie. /dev/serial/by-id/usb-Klipper_rp2040_E66160F4235E4038-if00

Now lets create the PIS.cfg in klipper

  1. Machine >> Create File >> name it PIS.cfg OR download it from Fysetc git up and upload the file
  2. Copy contents from the Fysetc PIS file into your kipper PIS.cfg
  3. Edit the "serial" line to have your path you copied from the prior steps for obtaining the serial address
  4. Save/close/restart Klipper on your PI
  5. Edit your printer.cfg to add a line that includes the PIS.cfg -- [include PIS.cfg]
  6. Save/close/restart Klipper on your PI

Now make sure you have completed these steps denoted in klipper3d.org/Measuring_Resonances.html

  1. sudo apt update
  2. sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
  3. ~/klippy-env/bin/pip install -v numpy

Now your Fysetc PIS should be ready to use and your PI/Klipper setup ready for the Resonance Compensation Input Shaping testing.

@spankurmonkey spankurmonkey changed the title Bed Slinger with EBB36 - Multiple ADXL345 Complete PIS instructions -- Bed Slinger with EBB36 - Multiple ADXL345 Mar 1, 2023
@hugomon
Copy link

hugomon commented Mar 1, 2024

My issues are multi-thread -

1. The Fysetc instructions are not complete for complete set up and use of the PIS.

2. I have an odd use case that I have a EBB36 on my toolhead and I need ADXL345 on my bed to Input Shape on my Y axis.

3. With help of folks on Klipper discord I have resolved and able to complete my input shaping using the Fysetc PIS following these steps below.   When I tested my Y axis with the PIS - I commented out the ADXL345 config for my EBB36.

MAKE SURE YOUR KLIPPER IS UP-TO-DATE

Via SSH to your PI with Klipper installed

1. Change directory to Klipper

2. make menuconfig

3. set menu per image -- https://github.com/FYSETC/FYSETC-PortableInputShaper/blob/main/menuconfig.png
   3.1 Do not enable extra low-level configuration options
   3.2 Set Micro-controller Architecutre to Raspberry PI RP2040
   3.3 Set communication interface to USB

4. Exit and save menu config.

5. sudo service klipper stop

6. make flash

7. sudo service klipper start

Now the firmware 'klipper.uf2' should be created and located on your pi in the klipper/out directory

1. FTP into your PI

2. Navigate to the Klipper/Out directory

3. Download the 'klipper'uf2' file onto your pc desktop.

4. Exit and quit FTP

Now flash the firmware 'klipper.uf2' onto the Fysetc PIS

1. Press and hold the button on the Fysetc PIS

2. Connect the PIS with USB C to your PC

3. Release the button on the PIS

4. A folder named RPI-RP2 will pop up

5. Copy/Move the 'klipper.uf2' file from your desktop into the RPI-RP2 folder

6. Wait - the folder should close automatically

7. Unplug the PIS from your PC

Now set up PIS on your PI via USB

1. Press and Hold the button on the PIS

2. Connect PIS to your Raspberry PI

Now set up the firmware

1. Via SSH issue -  lsusb

2. locate the device ID for the RP2040  -- i.e. Bus 001 Device 008: ID 2e8a:0003 Raspberry Pi RP2 Boot

3. Copy the ID  i.e. '2e8a: 0003'

4. CD to your Klipper directory

5. issue command-   make flash FLASH_DEVICE=2e8a:0003 << **CHANGE TO YOUR DEVICE ID**

6. You should see that the UF2 has been flashed

Now lets find the serial address for the Fysetc PIS RP2040 connected to your PI

1. issue command - ls /dev/serial/by-id/*

2. copy the address denoted with rp2040 -- ie. /dev/serial/by-id/usb-Klipper_rp2040_E66160F4235E4038-if00

Now lets create the PIS.cfg in klipper

1. Machine >> Create File >> name it PIS.cfg  **OR** download it from Fysetc git up and upload the file

2. Copy contents from the Fysetc PIS file into your kipper PIS.cfg

3. Edit the "serial" line to have your path you copied from the prior steps for obtaining the serial address

4. Save/close/restart Klipper on your PI

5. Edit your printer.cfg to add a line that includes the PIS.cfg --  [include PIS.cfg]

6. Save/close/restart Klipper on your PI

Now make sure you have completed these steps denoted in klipper3d.org/Measuring_Resonances.html

1. sudo apt update

2. sudo apt install python3-numpy python3-matplotlib libatlas-base-dev

3. ~/klippy-env/bin/pip install -v numpy

Now your Fysetc PIS should be ready to use and your PI/Klipper setup ready for the Resonance Compensation Input Shaping testing.

Now it's working.

I also need to change those lines under [resonance_tester] in PIS.cfg:

# accel_chip: adxl345 usbadxl
accel_chip: adxl345 

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