Deploying to gh-pages from @ Klipper3d/klipper@cba119db3a 🚀

This commit is contained in:
KevinOConnor
2023-04-17 00:03:38 +00:00
parent 13f13bf7d5
commit e172d515bc
108 changed files with 3049 additions and 1001 deletions

View File

@@ -735,6 +735,26 @@
ADXL345
</a>
<nav class="md-nav" aria-label="ADXL345">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#direct-to-raspberry-pi" class="md-nav__link">
Direct to Raspberry Pi
</a>
</li>
<li class="md-nav__item">
<a href="#using-raspberry-pi-pico" class="md-nav__link">
Using Raspberry Pi Pico
</a>
</li>
</ul>
</nav>
</li>
</ul>
@@ -787,6 +807,33 @@
Configure ADXL345 With RPi
</a>
</li>
<li class="md-nav__item">
<a href="#configure-adxl345-with-pi-pico" class="md-nav__link">
Configure ADXL345 With Pi Pico
</a>
<nav class="md-nav" aria-label="Configure ADXL345 With Pi Pico">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#flash-the-pico-firmware" class="md-nav__link">
Flash the Pico Firmware
</a>
</li>
<li class="md-nav__item">
<a href="#configure-the-connection" class="md-nav__link">
Configure the Connection
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
@@ -1480,6 +1527,26 @@
ADXL345
</a>
<nav class="md-nav" aria-label="ADXL345">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#direct-to-raspberry-pi" class="md-nav__link">
Direct to Raspberry Pi
</a>
</li>
<li class="md-nav__item">
<a href="#using-raspberry-pi-pico" class="md-nav__link">
Using Raspberry Pi Pico
</a>
</li>
</ul>
</nav>
</li>
</ul>
@@ -1532,6 +1599,33 @@
Configure ADXL345 With RPi
</a>
</li>
<li class="md-nav__item">
<a href="#configure-adxl345-with-pi-pico" class="md-nav__link">
Configure ADXL345 With Pi Pico
</a>
<nav class="md-nav" aria-label="Configure ADXL345 With Pi Pico">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#flash-the-pico-firmware" class="md-nav__link">
Flash the Pico Firmware
</a>
</li>
<li class="md-nav__item">
<a href="#configure-the-connection" class="md-nav__link">
Configure the Connection
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
@@ -1662,7 +1756,7 @@
<p>採購 ADXL345 時,請注意有各種不同的 PCB 板設計和它們的不同克隆。確保電路板支持 SPI 模式(通過將 SDO 拉至 GND 來為 I2C 硬配置少數電路板),如果要連接到 5V 打印機 MCU它有一個穩壓器和電平轉換器。</p>
<h2 id="_2">安裝指南<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<h3 id="_3">接線<a class="headerlink" href="#_3" title="Permanent link">&para;</a></h3>
<p>An ethernet cable with shielded twisted pairs (cat5e or better) is recommended for signal integrety over a long distance. If you still experience signal integrity issues (SPI/I2C errors), shorten the cable.</p>
<p>An ethernet cable with shielded twisted pairs (cat5e or better) is recommended for signal integrity over a long distance. If you still experience signal integrity issues (SPI/I2C errors), shorten the cable.</p>
<p>Connect ethernet cable shielding to the controller board/RPI ground.</p>
<p><strong><em>Double-check your wiring before powering up to prevent damaging your MCU/Raspberry Pi or the accelerometer.</em></strong></p>
<h4 id="spi-accelerometers">SPI Accelerometers<a class="headerlink" href="#spi-accelerometers" title="Permanent link">&para;</a></h4>
@@ -1673,7 +1767,8 @@ SCLK+CS
</code></pre></div>
<h5 id="adxl345">ADXL345<a class="headerlink" href="#adxl345" title="Permanent link">&para;</a></h5>
<p><strong>Note: Many MCUs will work with an ADXL345 in SPI mode(eg Pi Pico), wiring and configuration will vary according to your specific board and avaliable pins.</strong></p>
<h6 id="direct-to-raspberry-pi">Direct to Raspberry Pi<a class="headerlink" href="#direct-to-raspberry-pi" title="Permanent link">&para;</a></h6>
<p><strong>Note: Many MCUs will work with an ADXL345 in SPI mode(eg Pi Pico), wiring and configuration will vary according to your specific board and available pins.</strong></p>
<p>我們需要將ADXL345連線到樹莓派的SPI介面。注意儘管ADXL345文件推薦使用I2C但其數據吞吐能力不足<strong>不能</strong>實現共振測量的要求。推薦的接線圖為:</p>
<table>
<thead>
@@ -1687,7 +1782,7 @@ SCLK+CS
<tr>
<td align="center">3V3 或 VCC</td>
<td align="center">01</td>
<td align="center">3.3v 直流DC電源</td>
<td align="center">3.3V DC power</td>
</tr>
<tr>
<td align="center">GND</td>
@@ -1718,6 +1813,52 @@ SCLK+CS
</table>
<p>部分ADXL345開發板的Fritzing接線圖如下</p>
<p><img alt="ADXL345-樹莓派" src="img/adxl345-fritzing.png" /></p>
<h6 id="using-raspberry-pi-pico">Using Raspberry Pi Pico<a class="headerlink" href="#using-raspberry-pi-pico" title="Permanent link">&para;</a></h6>
<p>You may connect the ADXL345 to your Raspberry Pi Pico and then connect the Pico to your Raspberry Pi via USB. This makes it easy to reuse the accelerometer on other Klipper devices, as you can connect via USB instead of GPIO. The Pico does not have much processing power, so make sure it is only running the accelerometer and not performing any other duties.</p>
<p>In order to avoid damage to your RPi make sure to connect the ADXL345 to 3.3V only. Depending on the board's layout, a level shifter may be present, which makes 5V dangerous for your RPi.</p>
<table>
<thead>
<tr>
<th align="center">ADXL345引腳</th>
<th align="center">Pico pin</th>
<th align="center">Pico pin name</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">3V3 或 VCC</td>
<td align="center">36</td>
<td align="center">3.3V DC power</td>
</tr>
<tr>
<td align="center">GND</td>
<td align="center">38</td>
<td align="center">GND</td>
</tr>
<tr>
<td align="center">CS晶片選定</td>
<td align="center">2</td>
<td align="center">GP1 (SPI0_CSn)</td>
</tr>
<tr>
<td align="center">SDO</td>
<td align="center">1</td>
<td align="center">GP0 (SPI0_RX)</td>
</tr>
<tr>
<td align="center">SDA</td>
<td align="center">5</td>
<td align="center">GP3 (SPI0_TX)</td>
</tr>
<tr>
<td align="center">SCL</td>
<td align="center">4</td>
<td align="center">GP2 (SPI0_SCK)</td>
</tr>
</tbody>
</table>
<p>Wiring diagrams for some of the ADXL345 boards:</p>
<p><img alt="ADXL345-Pico" src="img/adxl345-pico.png" /></p>
<h4 id="i2c-accelerometers">I2C Accelerometers<a class="headerlink" href="#i2c-accelerometers" title="Permanent link">&para;</a></h4>
<p>Suggested twisted pair order:</p>
<div class="highlight"><pre><span></span><code>3.3V+SDA
@@ -1826,6 +1967,47 @@ probe_points:
</code></pre></div>
<p>建議在測試開始前,用探針在熱床中央進行一次探測,觸發后稍微上移。</p>
<h4 id="configure-adxl345-with-pi-pico">Configure ADXL345 With Pi Pico<a class="headerlink" href="#configure-adxl345-with-pi-pico" title="Permanent link">&para;</a></h4>
<h5 id="flash-the-pico-firmware">Flash the Pico Firmware<a class="headerlink" href="#flash-the-pico-firmware" title="Permanent link">&para;</a></h5>
<p>On your Raspberry Pi, compile the firmware for the Pico.</p>
<div class="highlight"><pre><span></span><code>cd ~/klipper
make clean
make menuconfig
</code></pre></div>
<p><img alt="Pico menuconfig" src="img/klipper_pico_menuconfig.png" /></p>
<p>Now, while holding down the <code>BOOTSEL</code> button on the Pico, connect the Pico to the Raspberry Pi via USB. Compile and flash the firmware.</p>
<div class="highlight"><pre><span></span><code>make flash FLASH_DEVICE=first
</code></pre></div>
<p>If that fails, you will be told which <code>FLASH_DEVICE</code> to use. In this example, that's <code>make flash FLASH_DEVICE=2e8a:0003</code>. <img alt="Determine flash device" src="img/flash_rp2040_FLASH_DEVICE.png" /></p>
<h5 id="configure-the-connection">Configure the Connection<a class="headerlink" href="#configure-the-connection" title="Permanent link">&para;</a></h5>
<p>The Pico will now reboot with the new firmware and should show up as a serial device. Find the pico serial device with <code>ls /dev/serial/by-id/*</code>. You can now add an <code>adxl.cfg</code> file with the following settings:</p>
<div class="highlight"><pre><span></span><code>[mcu adxl]
# Change &lt;mySerial&gt; to whatever you found above. For example,
# usb-Klipper_rp2040_E661640843545B2E-if00
serial: /dev/serial/by-id/usb-Klipper_rp2040_&lt;mySerial&gt;
[adxl345]
cs_pin: adxl:gpio1
spi_bus: spi0a
axes_map: x,z,y
[resonance_tester]
accel_chip: adxl345
probe_points:
# Somewhere slightly above the middle of your print bed
147,154, 20
[output_pin power_mode] # Improve power stability
pin: adxl:gpio23
</code></pre></div>
<p>If setting up the ADXL345 configuration in a separate file, as shown above, you'll also want to modify your <code>printer.cfg</code> file to include this:</p>
<div class="highlight"><pre><span></span><code>[include adxl.cfg] # Comment this out when you disconnect the accelerometer
</code></pre></div>
<p>通過<code>RESTART</code>命令重啟Klipper。</p>
<h4 id="configure-mpu-60009000-series-with-rpi">Configure MPU-6000/9000 series With RPi<a class="headerlink" href="#configure-mpu-60009000-series-with-rpi" title="Permanent link">&para;</a></h4>
<p>Make sure the Linux I2C driver is enabled and the baud rate is set to 400000 (see <a href="RPi_microcontroller.html#optional-enabling-i2c">Enabling I2C</a> section for more details). Then, add the following to the printer.cfg:</p>
<div class="highlight"><pre><span></span><code>[mcu rpi]
@@ -1848,7 +2030,7 @@ serial: /dev/serial/by-id/&lt;your PICO&#39;s serial ID&gt;
[mpu9250]
i2c_mcu: pico
i2c_bus: i2c1a
i2c_bus: i2c0a
[resonance_tester]
accel_chip: mpu9250
@@ -1871,7 +2053,7 @@ pin: pico:gpio23
<div class="highlight"><pre><span></span><code>Recv: // adxl345 values (x, y, z): 470.719200, 941.438400, 9728.196800
</code></pre></div>
<p>如果輸出類似 <code>Invalid adxl345 id (got xx vs e5)</code>,其中'xx'為e5以外ID這表示出現連線問題連線錯誤、線纜電阻過大、干擾等或感測器錯誤殘次感測器 或 錯誤的感測器)。請在此檢查電源,接線(再三確定接線正確,沒有破損、鬆動的電線)或焊接問題。</p>
<p>If you get an error like <code>Invalid adxl345 id (got xx vs e5)</code>, where <code>xx</code> is some other ID, immediately try again. There's an issue with SPI initialization. If you still get an error, it is indicative of the connection problem with ADXL345, or the faulty sensor. Double-check the power, the wiring (that it matches the schematics, no wire is broken or loose, etc.), and soldering quality.</p>
<p><strong>If you are using MPU-6000/9000 series accelerometer and it show up as <code>mpu-unknown</code>, use with caution! They are probably refurbished chips!</strong></p>
<p>下一步在Octoprint中輸入 <code>MEASURE_AXES_NOISE</code>之後將會顯示各個軸的基準測量噪聲其值應在1-100之間。如果軸的噪聲極高例如 1000 或更高可能意味著3D印表機上存在感測器問題、電源問題或不平衡的風扇。</p>
<h3 id="_8">測量共振值<a class="headerlink" href="#_8" title="Permanent link">&para;</a></h3>
@@ -1923,7 +2105,7 @@ max_accel: 3000 # should not exceed the estimated max_accel for X and Y axes
</code></pre></div>
<p>或者您可以根據生成的圖表自行選擇其他配置:圖表上功率譜密度的峰值對應於打印機的共振頻率。</p>
<p>請注意,您也可以從 Klipper <a href="#input-shaper-auto-calibration">直接</a> 運行輸入整形器自動校準,例如,對於輸入整形器 [re-calibration](#input-shaper-re -校準)。</p>
<p>Note that alternatively you can run the input shaper auto-calibration from Klipper <a href="#input-shaper-auto-calibration">directly</a>, which can be convenient, for example, for the input shaper <a href="#input-shaper-re-calibration">re-calibration</a>.</p>
<h3 id="bed-slinger">Bed-slinger打印機<a class="headerlink" href="#bed-slinger" title="Permanent link">&para;</a></h3>
<p>如果您的打印機是拋床打印機,您將需要在 X 軸和 Y 軸測量值之間更改加速度計的位置:用連接到工具頭的加速度計測量 X 軸的共振和 Y 軸的共振 - 到床(通常的床吊具設置)。</p>
<p>但是,您也可以同時連接兩個加速度計,儘管它們必須連接到不同的板(例如,連接到 RPi 和打印機 MCU 板),或者連接到同一板上的兩個不同的物理 SPI 接口(很少可用)。然後可以通過以下方式配置它們:</p>
@@ -2050,7 +2232,7 @@ Recommended shaper_type_y = mzv, shaper_freq_y = 36.8 Hz # 建議shaper_type_y =
<div class="highlight"><pre><span></span><code>SHAPER_CALIBRATE AXIS=X
</code></pre></div>
<p><strong>警告!</strong>不建議非常頻繁地運行成型機自動校準例如在每次打印之前或每天。為了確定共振頻率自動校準會在每個軸上產生強烈的振動。通常3D 打印機的設計不能承受長時間暴露於共振頻率附近的振動。這樣做可能會增加打印機組件的磨損並縮短其使用壽命。某些零件擰鬆或鬆動的風險也會增加。每次自動調整後,請務必檢查打印機的所有部件(包括通常不會移動的部件)是否牢固地固定到位。</p>
<p><strong>Warning!</strong> It is not advisable to run the shaper auto-calibration very frequently (e.g. before every print, or every day). In order to determine resonance frequencies, auto-calibration creates intensive vibrations on each of the axes. Generally, 3D printers are not designed to withstand a prolonged exposure to vibrations near the resonance frequencies. Doing so may increase wear of the printer components and reduce their lifespan. There is also an increased risk of some parts unscrewing or becoming loose. Always check that all parts of the printer (including the ones that may normally not move) are securely fixed in place after each auto-tuning.</p>
<p>此外,由於測量中的一些噪聲,調諧結果可能會從一次校準運行到另一次校準運行略有不同。不過,預計噪音不會對打印質量產生太大影響。但是,仍然建議仔細檢查建議的參數,並在使用前打印一些測試打印以確認它們是好的。</p>
<h2 id="_13">加速度計數據的離線處理<a class="headerlink" href="#_13" title="Permanent link">&para;</a></h2>
<p>可以生成原始加速度計數據並離線處理(例如在主機上),例如尋找共振。為此,請通過 Octoprint 終端運行以下命令:</p>