欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 时评 > voron0.x 香橙派、klipper、MCU配置记录

voron0.x 香橙派、klipper、MCU配置记录

2024/10/26 12:48:03 来源:https://blog.csdn.net/liangcsdn111/article/details/143228610  浏览:    关键词:voron0.x 香橙派、klipper、MCU配置记录

香橙派系统安装

https://www.bilibili.com/read/cv13785938

参考上述连接操作,

https://armbian.hosthatch.com/archive/orangepizeroplus/archive/

下载系统 **版本为:Buster **

写入SD卡,开机启动,默认用户名 root 密码1234

系统会提示修改root密码,修改后提示新建用户,新建klipper用户。

密码

用户名root,密码xxxxx

修改源(注意可能是版本问题,无效)

sudo vim /etc/apt/sources.list

替换下方文件

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free 
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free 
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free 
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free 
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free

修改另一个文件

sudo vim /etc/apt/sources.list.d/armbian.list

注释原有内容

更新系统

sudo apt-get update 

如果出现如下错误,则降上述源中https改为http即可解决
请添加图片描述

注意:

  1. 我自己的香橙派二次刷机后账户不为klipper 而是姓名首字母小写缩写

ifconfig命令找不到

请添加图片描述
执行ifconfig找不到,重新安装提示已安装

网上搜索得知因为选择了zsh,bash对应的环境变量没有同步过来,需要将已安装的文件路径导入到环境变量中

export PATH=$PATH:/sbin

再次执行即可
请添加图片描述

kilipper安装

新建用户klipper

sudo adduser klipper

#依次输入提示需要的信息

修改权限

切换root用户

su 

修改用户文件权限

chmod u+w /etc/sudoers

修改文件

vim /etc/sudoers

找到这行 root ALL=(ALL) ALL,在他下面添加(除用户名,其余与root一致)

klipper ALL=(ALL) ALL

再次修改文件权限

chmod u-w /etc/sudoers

克隆仓库

https://github.com/th33xitus/kiauh.git

执行安装脚本


./kiauh/kiauh.sh

根据提示安装klipper Moonraker fluidd

请添加图片描述
安装过程慢,耐心等待
请添加图片描述
最终效果请添加图片描述

安装后ifconfig无效

运行 export PATH=$PATH:/sbin/

访问后台界面

访问香橙派ip地址 我的设备ip默认为192.168.1.4请添加图片描述

klipper用户增加串口权限

sudo usermod -aG dialout klipper

查看主板外接单片机

ls /dev/serial/by-id/*

SKR MINI E3 V2.0刷程序

先用jlink刷bootloader,

bootloader

bootloader的地址是:

https://github.com/GadgetAngel/BTT_SKR_13_14_14T_SD-DFU-Bootloader/tree/main/bootloader_bin/backed_up_original_bootloaders/SKR%20mini%20E3%20V2.0/Bootloader

看上一级的描述这个bootloader应该是marlin写的。
请添加图片描述
请添加图片描述
配合JFLASH下载请添加图片描述
下载完成后编译klipper固件

klipper固件

按照这个教程操作 https://3dphell.com/2021/09/15/2928/

配置如下
请添加图片描述

生成的klipper,bin文件位置
请添加图片描述
拷贝到SD卡,重命名为firmware.bin

拔掉boot引脚跳线帽,插入SD卡,重新上电,等待10秒,拔下SD卡,插入电脑查看之前的固件名是否变化,

如果变化为FIRMWARE.CUR说明固件刷写成功。

注意:新购买的成品板子刷入bootloader后再用SD卡更新固件未成功,因此选择直接编译不包含bootloader的固件,如下:

购买板子最终固件生成

除未使用bootloader外,其余与下图相同请添加图片描述

参考实现 https://docs.vorondesign.com/build/software/miniE3_v20_klipper.html

voron 0.1 print.cfg

参考连接

https://www.bilibili.com/read/cv15525236
Voron-0/skr-mini-E3-v2.0.cfg at Voron0.1 · VoronDesign/Voron-0 · GitHub

主板接线

请添加图片描述

固定IP地址

https://www.linuxitellu.com/special-topic/orangepi/orangepi-zero2-configuration-guide2.html

35步进电机接线

请添加图片描述
请添加图片描述

kipper调试配置

回家速度改成20 或者30,归位时速度变慢

请添加图片描述

降低噪音

开始运行电流设置的小了(0.5)导致35步进电机雯雯叫,改成0.7就好了

PID参数

使用工具自动计算,硬件不同,参数不同。

我的加热头pid参数
pid_Kp=26.299 pid_Ki=1.525 pid_Kd=113.416

我的热床pid参数
pid_Kp=62.038 pid_Ki=3.829 pid_Kd=251.253

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com