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

替换下方文件

bash 复制代码
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

修改另一个文件

bash 复制代码
sudo vim /etc/apt/sources.list.d/armbian.list

注释原有内容

更新系统

bash 复制代码
sudo apt-get update 

如果出现如下错误,则降上述源中https改为http即可解决

注意:

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

ifconfig命令找不到

执行ifconfig找不到,重新安装提示已安装

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

bash 复制代码
export PATH=$PATH:/sbin

再次执行即可

kilipper安装

新建用户klipper

bash 复制代码
sudo adduser klipper

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

修改权限

切换root用户

bash 复制代码
su 

修改用户文件权限

bash 复制代码
chmod u+w /etc/sudoers

修改文件

bash 复制代码
vim /etc/sudoers

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

bash 复制代码
klipper ALL=(ALL) ALL

再次修改文件权限

bash 复制代码
chmod u-w /etc/sudoers

克隆仓库

bash 复制代码
https://github.com/th33xitus/kiauh.git

执行安装脚本

bash 复制代码
./kiauh/kiauh.sh

根据提示安装klipper Moonraker fluidd

安装过程慢,耐心等待

最终效果

安装后ifconfig无效

运行 export PATH=$PATH:/sbin/

访问后台界面

访问香橙派ip地址 我的设备ip默认为192.168.1.4

klipper用户增加串口权限

复制代码
sudo usermod -aG dialout klipper

查看主板外接单片机

c 复制代码
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 mini E3 V2.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

相关推荐
代码游侠6 小时前
ARM开发——阶段问题综述(二)
运维·arm开发·笔记·单片机·嵌入式硬件·学习
DLGXY6 小时前
STM32——旋转编码器计次(七)
stm32·单片机·嵌入式硬件
羽获飞7 小时前
从零开始学嵌入式之STM32——3.使用寄存器点亮一盏LED灯
单片机·嵌入式硬件
浩子智控8 小时前
商业航天计算机抗辐射设计
单片机·嵌入式硬件
独处东汉11 小时前
freertos开发空气检测仪之输入子系统结构体设计
数据结构·人工智能·stm32·单片机·嵌入式硬件·算法
czy878747512 小时前
机智云 MCU OTA可以对MCU程序进行无线远程升级。
单片机·嵌入式硬件
A9better14 小时前
嵌入式开发学习日志52——二值与计数信号量
单片机·嵌入式硬件·学习
日更嵌入式的打工仔15 小时前
(实用向)中断服务程序(ISR)的优化方向
笔记·单片机
想放学的刺客16 小时前
单片机嵌入式试题(第25)嵌入式系统可靠性设计与外设驱动异常处理
stm32·单片机·嵌入式硬件·mcu·物联网
wotaifuzao16 小时前
STM32+FreeRTOS 长期可维护架构设计(事件驱动篇)-- 告别“屎山”代码
c语言·stm32·嵌入式硬件·freertos·状态机·事件驱动·嵌入式架构