Difference between revisions of "Remove A1"

From iagent
Jump to: navigation, search
(Created page with "Remove is an accellerometer for doing input shaping with Klipper. <div class="res-img"> center </div> Klipper configuration: <pre> # The Remove reso...")
 
(Klipper firmware compilation)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Remove is an accellerometer for doing input shaping with Klipper.
+
Remove is an accelerometer for doing input shaping with Klipper.
 
<div class="res-img">
 
<div class="res-img">
 
[[File:Remove A0 iso.jpg|center]]
 
[[File:Remove A0 iso.jpg|center]]
 
</div>
 
</div>
Klipper configuration:
+
 
 +
=== Pinout diagram ===
 +
<div class="res-img">
 +
[[File:Remove pinout.png|center]]
 +
</div>
 +
 
 +
=== Klipper configuration ===
 
<pre>
 
<pre>
 
# The Remove resonance tester mcu
 
# The Remove resonance tester mcu
Line 18: Line 24:
 
probe_points:
 
probe_points:
 
     100, 100, 20  # an example
 
     100, 100, 20  # an example
 +
 +
[static_digital_output remove_leds]
 +
pins: rp2040:gpio17, rp2040:gpio18
 +
 +
</pre>
 +
 +
 +
=== Klipper usage ===
 +
To test the accellerometer, try this in the user interface:
 +
<pre>
 +
ACCELEROMETER_QUERY
 +
</pre>
 +
 +
At this time there is an issue with the A1 board where the initialization can fail in Klipper.
 +
 +
If you follow the klipper documentation and run the expected commands you may get the following error:
 +
<pre>
 +
Invalid adxl345 id (got f2 vs e5).
 +
This is generally indicative of connection problems
 +
(e.g. faulty wiring) or a faulty adxl345 chip.
 
</pre>
 
</pre>
 +
 +
This does '''not''' mean your Remove is faulty. Try running the command again, it is a known initialization error, and will go away once the initial message happens. It will happen again next time you restart klipper though, as it re-initializes the ADXL345 again.
 +
 +
After that first test, the actual calibration can be run with:
 +
<pre>
 +
TEST_RESONANCES axis=x
 +
</pre>
 +
 +
=== Klipper firmware compilation ===
 +
The unit comes with firmware pre-installed. If you want to upgrade the firmware, these are the steps to reproduce.
 +
This can be done directly from Recore, or from a regular computer. If the device ID doesn't match, the board is not in DFU mode, and needs to be manually started that way. Use a paperclip or some wire, unplug the USB of the device, short the two round pads on the back of the PCB and plug in the USB. At that point the RP2040 will be in DFU mode, allowing it to be flashed.
 +
<pre>
 +
cp test/configs/rp2040.config .config
 +
make olddefconfig
 +
make -j
 +
make flash FLASH_DEVICE="2e8a:0003"
 +
</pre>
 +
 +
=== Entering boot-mode after flashing ===
 +
If a firmware upgrade is necessary, the device must be put into boot mode. This can be done by short together the test points shown below while inserting the USB port.
 +
[[File:Remove pinout back.png|center]]

Latest revision as of 12:50, 20 March 2024

Remove is an accelerometer for doing input shaping with Klipper.

Remove A0 iso.jpg

Pinout diagram

Remove pinout.png

Klipper configuration

# The Remove resonance tester mcu
[mcu rp2040]
serial: /dev/ttyACM0
baud: 1500000

[adxl345]
cs_pin: rp2040:gpio5
spi_bus: spi0a

[resonance_tester]
accel_chip: adxl345
probe_points:
    100, 100, 20  # an example

[static_digital_output remove_leds]
pins: rp2040:gpio17, rp2040:gpio18


Klipper usage

To test the accellerometer, try this in the user interface:

ACCELEROMETER_QUERY

At this time there is an issue with the A1 board where the initialization can fail in Klipper.

If you follow the klipper documentation and run the expected commands you may get the following error:

Invalid adxl345 id (got f2 vs e5).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty adxl345 chip.

This does not mean your Remove is faulty. Try running the command again, it is a known initialization error, and will go away once the initial message happens. It will happen again next time you restart klipper though, as it re-initializes the ADXL345 again.

After that first test, the actual calibration can be run with:

TEST_RESONANCES axis=x

Klipper firmware compilation

The unit comes with firmware pre-installed. If you want to upgrade the firmware, these are the steps to reproduce. This can be done directly from Recore, or from a regular computer. If the device ID doesn't match, the board is not in DFU mode, and needs to be manually started that way. Use a paperclip or some wire, unplug the USB of the device, short the two round pads on the back of the PCB and plug in the USB. At that point the RP2040 will be in DFU mode, allowing it to be flashed.

cp test/configs/rp2040.config .config
make olddefconfig
make -j
make flash FLASH_DEVICE="2e8a:0003"

Entering boot-mode after flashing

If a firmware upgrade is necessary, the device must be put into boot mode. This can be done by short together the test points shown below while inserting the USB port.

Remove pinout back.png