Octoprint: Difference between revisions

From B-Wiki
Jump to navigation Jump to search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
= OctoPrint setup =
= OctoPrint setup =
<li style="display: inline-block;">  [[File:Octoprint-600x400.png|thumb|100px|link=http://192.168.2.5/|Octoprint Creality Ender 3]] </li>
<li style="display: inline-block;">  [[File:Octoprint-600x400.png|thumb|100px|link=http://192.168.2.11/|Octoprint Creality CR6 SE]] </li>
<li style="display: inline-block;">  [[File:Ps3-eye.jpg|thumb|100px|link=http://192.168.2.5/webcam/|Webcap Octoprint]] </li>
Base guide: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337
== VM How to connect ==
* Open ssh session
* Create a virtual desktop using vncserver
<syntaxhighlight lang="Bash">
pi@raspberrypi:~ $ vncserver -geometry 1920x1080
</syntaxhighlight>
* Connect to the virtual desktop
<syntaxhighlight lang="Bash">
Address 192.168.2.5:1 <- :1 is the desktop number
</syntaxhighlight>
* Kill the desktop when not needed
<syntaxhighlight lang="Bash">
pi@raspberrypi:~ $ vncserver -kill :1
</syntaxhighlight>
== Serial install ch340 ==
<syntaxhighlight>
download
pi@raspberrypi:~ $ wget https://github.com/aperepel/raspberrypi ... 7/ch34x.ko
check
pi@raspberrypi:~ $ lsmod
Module Size Used by
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 70
go towards
pi@raspberrypi:~ $ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial
Install first
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod usbserial.ko
Check once again
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
usbserial 29943 0 <===== Need be installed FIRST
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
NOW, install ch341.ko
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod ch341.ko
Voilá !!!
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
ch341 6086 0 <==== Must be here first
usbserial 29943 1 ch341 <==== Can you see me now ?
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
</syntaxhighlight>


== Hardware ==
== Hardware ==
Line 6: Line 124:
! Hardware !! Picture !! Link
! Hardware !! Picture !! Link
|-
|-
| Raspbery Pi || pic || https://www.raspberrypi.org/downloads/raspbian/
| Raspbery Pi || [[File:RaspberryPi B3 plus.jpg|thumb|100px]]|| https://www.raspberrypi.org/downloads/raspbian/
|-
|-
| TFT || pic || [[Configuration for the TFT]]
| TFT || [[File:Geekcret-raspberry-pi-lcd-case.png|thumb|100px]]|| [[Configuration for the TFT]]
|-
|-
| Camera 3EYE|| pic || [[Configuration for the 3EYE]]
| Camera 3EYE|| [[File:Ps3-eye.jpg|thumb|100px]] || [[Configuration for the 3EYE]]
|}
|}
== Install grblControll ==
* Get QTCreator https://www.raspberrypi.org/forums/viewtopic.php?t=69163
* Get Candle https://github.com/Denvi/Candle/issues/77
* Get serial port https://github.com/dresden-elektronik/deconz-rest-plugin/commit/36a3a89ad6648f086097fa0bdb747d477dcdfeea

Latest revision as of 12:54, 1 December 2021

OctoPrint setup

  • Octoprint Creality Ender 3
  • Octoprint Creality CR6 SE
  • Webcap Octoprint
  • Base guide: https://community.octoprint.org/t/setting-up-octoprint-on-a-raspberry-pi-running-raspbian/2337

    VM How to connect

    • Open ssh session
    • Create a virtual desktop using vncserver

    <syntaxhighlight lang="Bash"> pi@raspberrypi:~ $ vncserver -geometry 1920x1080 </syntaxhighlight>

    • Connect to the virtual desktop

    <syntaxhighlight lang="Bash"> Address 192.168.2.5:1 <- :1 is the desktop number </syntaxhighlight>

    • Kill the desktop when not needed

    <syntaxhighlight lang="Bash"> pi@raspberrypi:~ $ vncserver -kill :1 </syntaxhighlight>

    Serial install ch340

    <syntaxhighlight> download pi@raspberrypi:~ $ wget https://github.com/aperepel/raspberrypi ... 7/ch34x.ko

    check pi@raspberrypi:~ $ lsmod Module Size Used by bnep 12051 2 hci_uart 20020 1 btbcm 7916 1 hci_uart bluetooth 365511 22 hci_uart,bnep,btbcm brcmfmac 222874 0 brcmutil 9092 1 brcmfmac cfg80211 543027 1 brcmfmac rfkill 20851 4 bluetooth,cfg80211 snd_bcm2835 24427 1 snd_pcm 98501 1 snd_bcm2835 snd_timer 23968 1 snd_pcm snd 70032 5 snd_timer,snd_bcm2835,snd_pcm bcm2835_gpiomem 3940 0 evdev 12423 6 joydev 9988 0 uio_pdrv_genirq 3923 0 uio 10204 1 uio_pdrv_genirq fixed 3285 0 i2c_dev 6913 0 fuse 99603 3 ipv6 408971 70

    go towards pi@raspberrypi:~ $ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial

    Install first pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod usbserial.ko

    Check once again pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod Module Size Used by usbserial 29943 0 <===== Need be installed FIRST bnep 12051 2 hci_uart 20020 1 btbcm 7916 1 hci_uart bluetooth 365511 22 hci_uart,bnep,btbcm brcmfmac 222874 0 brcmutil 9092 1 brcmfmac cfg80211 543027 1 brcmfmac rfkill 20851 4 bluetooth,cfg80211 snd_bcm2835 24427 1 snd_pcm 98501 1 snd_bcm2835 snd_timer 23968 1 snd_pcm snd 70032 5 snd_timer,snd_bcm2835,snd_pcm bcm2835_gpiomem 3940 0 evdev 12423 6 joydev 9988 0 uio_pdrv_genirq 3923 0 uio 10204 1 uio_pdrv_genirq fixed 3285 0 i2c_dev 6913 0 fuse 99603 3 ipv6 408971 68

    NOW, install ch341.ko pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod ch341.ko

    Voilá !!! pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod Module Size Used by ch341 6086 0 <==== Must be here first usbserial 29943 1 ch341 <==== Can you see me now ? bnep 12051 2 hci_uart 20020 1 btbcm 7916 1 hci_uart bluetooth 365511 22 hci_uart,bnep,btbcm brcmfmac 222874 0 brcmutil 9092 1 brcmfmac cfg80211 543027 1 brcmfmac rfkill 20851 4 bluetooth,cfg80211 snd_bcm2835 24427 1 snd_pcm 98501 1 snd_bcm2835 snd_timer 23968 1 snd_pcm snd 70032 5 snd_timer,snd_bcm2835,snd_pcm bcm2835_gpiomem 3940 0 evdev 12423 6 joydev 9988 0 uio_pdrv_genirq 3923 0 uio 10204 1 uio_pdrv_genirq fixed 3285 0 i2c_dev 6913 0 fuse 99603 3 ipv6 408971 68 </syntaxhighlight>

    Hardware

    Hardware Picture Link
    Raspbery Pi
    https://www.raspberrypi.org/downloads/raspbian/
    TFT
    Configuration for the TFT
    Camera 3EYE
    Configuration for the 3EYE

    Install grblControll