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

相关推荐
国科安芯1 小时前
ASP4644芯片低功耗设计思路解析
网络·单片机·嵌入式硬件·安全
充哥单片机设计1 小时前
【STM32项目开源】基于STM32的智能厨房火灾燃气监控
stm32·单片机·嵌入式硬件
CiLerLinux8 小时前
第四十九章 ESP32S3 WiFi 路由实验
网络·人工智能·单片机·嵌入式硬件
时光の尘8 小时前
【PCB电路设计】常见元器件简介(电阻、电容、电感、二极管、三极管以及场效应管)
单片机·嵌入式硬件·pcb·二极管·电感·三极管·场效应管
Lu Zelin8 小时前
单片机为什么不能跑Linux
linux·单片机·嵌入式硬件
宁静致远20219 小时前
stm32 freertos下基于hal库的模拟I2C驱动实现
stm32·嵌入式硬件·freertos
Wave84513 小时前
STM32--智能小车
stm32·单片机·嵌入式硬件
wdfk_prog16 小时前
[Linux]学习笔记系列 -- lib/timerqueue.c Timer Queue Management 高精度定时器的有序数据结构
linux·c语言·数据结构·笔记·单片机·学习·安全
充哥单片机设计19 小时前
【STM32项目开源】基于STM32的智能家居环境(空气质量)检测系统
stm32·单片机·嵌入式硬件
夜月yeyue20 小时前
ART 加速器、流水线与指令预测的关系详解
linux·服务器·c语言·单片机·嵌入式硬件·性能优化·嵌入式高阶技巧