This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
x40:octoprint [2023/01/30 14:00] mao [3.Reboot your Raspberry Pi and Connect the printer with its baud rate] |
x40:octoprint [2023/01/31 14:58] (current) mao |
||
---|---|---|---|
Line 8: | Line 8: | ||
| | ||
This is the easiest way to use OctoPrint on a Raspberry Pi\\ | This is the easiest way to use OctoPrint on a Raspberry Pi\\ | ||
- | ====Download Image==== | + | ====1.Download Image==== |
[[https:// | [[https:// | ||
- | ====Install image tool==== | + | ====2.Install image tool==== |
- | Download the latest version of [[https:// | + | Download the latest version of [[https:// |
- | ====Flash image==== | + | ====3.Flash image==== |
Then: | Then: | ||
*Connect an SD card reader with the SD card inside. | *Connect an SD card reader with the SD card inside. | ||
Line 18: | Line 18: | ||
*Choose the SD card you wish to write your image to. | *Choose the SD card you wish to write your image to. | ||
*Review your selections and click on the Write button to begin writing data to the SD Card. | *Review your selections and click on the Write button to begin writing data to the SD Card. | ||
+ | ====4.Connect Printer==== | ||
+ | Select X40 from the " | ||
+ | {{: | ||
---- | ---- | ||
Line 43: | Line 46: | ||
wget http:// | wget http:// | ||
(If your Linux kernel version is not 5.4.79, download the corresponding one from http:// | (If your Linux kernel version is not 5.4.79, download the corresponding one from http:// | ||
- | Use this command to check which version of your Linux kernel: **uname -r**)\\ | + | Use this command to check which version of your Linux kernel |
\\ | \\ | ||
Install the header file : | Install the header file : | ||
Line 49: | Line 52: | ||
{{: | {{: | ||
- | ===b)Download the CH340 serial driver source code and unzip it=== | + | ===b)Download the CH340/ |
wget http:// | wget http:// | ||
unzip ch341ser_linux-kernel5.4.79.zip | unzip ch341ser_linux-kernel5.4.79.zip | ||
Line 62: | Line 65: | ||
sudo depmod | sudo depmod | ||
{{: | {{: | ||
+ | |||
====5.Reboot your Raspberry Pi and Connect the printer with its baud rate==== | ====5.Reboot your Raspberry Pi and Connect the printer with its baud rate==== | ||
- | {{: | + | ===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== |
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | ===b)Connect printer with 115200 baud rate=== | ||
+ | {{: | ||
---- | ---- | ||
=====Install OctoPrint from source on a Raspberry Pi===== | =====Install OctoPrint from source on a Raspberry Pi===== | ||
- | This installation method is a bit complicated, | + | This installation method is a bit complicated, |
====1.Install OctoPrint==== | ====1.Install OctoPrint==== | ||
Install OctoPrint following the [[https:// | Install OctoPrint following the [[https:// | ||
\\ | \\ | ||
- | **If you can connect the printer | + | **If you can connect the printer |
\\ | \\ | ||
**If you can not connect the printer with OctoPrint**, | **If you can not connect the printer with OctoPrint**, | ||
Line 82: | Line 93: | ||
===b)Install your Linux kernel header package=== | ===b)Install your Linux kernel header package=== | ||
sudo apt install raspberrypi-kernel-headers | sudo apt install raspberrypi-kernel-headers | ||
- | ===c)Download the CH340 serial driver source code and unzip it=== | + | ===c)Download the CH340/ |
wget http:// | wget http:// | ||
unzip ch341ser_linux-kernel5.4.79.zip | unzip ch341ser_linux-kernel5.4.79.zip | ||
Line 94: | Line 105: | ||
sudo cp ch34x.ko / | sudo cp ch34x.ko / | ||
sudo depmod | sudo depmod | ||
- | {{: | + | {{: |
- | ====3.Reboot your Raspberry Pi and Connect | + | |
+ | ====3.Reboot your Raspberry Pi and connect | ||
===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== | ===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== | ||
- | {{: | + | {{: |
- | {{: | + | {{: |
- | {{: | + | {{: |
- | {{: | + | {{: |
- | ===b)Connect printer with 115200 baud rate | + | |
+ | ===b)Connect printer with 115200 baud rate=== | ||
+ | {{: | ||