Clicky

Loading

MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.

Download Now

How to use octopi with Orange Pi PC?

Please Login to Comment

Hi Guys
3 months ago I used my raspberry pi 3 with Octopi to control my 3d printer and also I connected it to my webcam to do some time lapse. The thing is
recently I've received an Orange Pi PC and I'm planning to connect it to my second 3d printer but with some extra features, (even after knowing that I can connect 2 printers to one raspberry pi, but it is always good to learn new things ) and I was wondering if I can use the same .img on orange pi that I've used with raspberry pi3 before. (depending on what I know, that orange pi pc similar to raspberry pi2 since both of them have H3 chip /Quad core ARM Cortex A7 CPU -1.6GHZ), (also the img is origanally made to fit raspberry pi (1, 2, and 3)

so, is it possible?

some details, links will really help

thanks in advanced

I just went through the process, and after numerous image writes and much tinkering, here's my step through notes.

LOOKS LIKE RASPBIAN SERVER IS THE ONLY USEFUL IMAGE
http://www.orangepi.org/downloadresources/orangepizero/2017-05-05/orangepizero_e7c74a532b47c34968b5098.html
..../Raspbian_server_For_zero_H2+_V0_1/Raspbian_server_For_zero_H2+_V0_1.img
username(root/orangepi), password(orangepi)

get ip address from router or
arp & arp -n
OrangePi
IP=192.168.178.26

ssh root@$IP

sudo fs_resize

sudo reboot

ssh root@$IP

sudo apt-get update && sudo apt-get -y upgrade

apt-get install python-pip python-dev git virtualenv python-setuptools psmisc

deluser orangepi
rm -rf /home/orangepi
adduser pi

usermod -a -G tty pi
usermod -a -G dialout pi

visudo

pi ALL=(ALL) NOPASSWD:ALL

...at end of file

disable root login
passwd root -d

switch from root login to pi login
sudo su pi

cd ~
wget https://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz
tar -zxf pyserial-2.7.tar.gz
cd pyserial-2.7
sudo python setup.py install
cd ~
git clone https://github.com/foosel/OctoPrint.git
cd OctoPrint
virtualenv venv
./venv/bin/python setup.py install

sudo cp ~/OctoPrint/scripts/octoprint.init /etc/init.d/octoprint
sudo chmod +x /etc/init.d/octoprint
sudo cp ~/OctoPrint/scripts/octoprint.default /etc/default/octoprint

seems to work with ALL FIELDS UNCOMMENTED, and not otherwise
sudo nano /etc/default/octoprint

# Configuration for /etc/init.d/octoprint

OCTOPRINT_USER=pi

BASEDIR=/home/pi/.octoprint

CONFIGFILE=/home/pi/.octoprint/config.yaml

PORT=5000

DAEMON=/home/pi/OctoPrint/venv/bin/octoprint

DAEMON_ARGS="--port=$PORT"

UMASK=022

NICELEVEL=-2

START=yes

sudo update-rc.d octoprint defaults
sudo service octoprint start

sudo apt-get install haproxy

sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_ORIG

sudo nano /etc/haproxy/haproxy.cfg
replaced contents

global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        log 127.0.0.1 local0 debug

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        option http-server-close
        option forwardfor
        maxconn 2000
        timeout connect 5s
        timeout client  15min
        timeout server  15min

frontend public
        bind :::80 v4v6
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint

backend octoprint
        reqrep ^([^\ :]*)\ /(.*)     \1\ /\2
        option forwardfor
        server octoprint1 127.0.0.1:5000

backend webcam
        reqrep ^([^\ :]*)\ /webcam/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8080

sudo nano /etc/default/haproxy

ENABLED=1

sudo service haproxy restart
sudo service haproxy status

nmtui
setup wifi

relevant (ifconfig is no longer supported)
ip addr show
ip link set dev <interface> up
Ip link set dev <interface> down

I have an Orange Pi Zero and it is working with Octopi. Just follow this tutorial https://youtu.be/8D4eF5KLVwM. Then use this command to keep Octopi running when you close your SSH window. https://goo.gl/oUHNVn

It looks like it can be done!

https://www.youtube.com/watch?v=lUgxbKdX_go&feature=youtu.be

Someone says just build it yourself. Easy enough.

as people already stated, no, and they do not share the same processors, while orange pi uses Allwinner H3, the raspberry pi uses Broadcom processors, ARM processors are not quite interchangeable like x86/x64 can be....

well, good to know.

I've actually seen some published info in some communities stated that they have the same processor, but it is good for me to update my knowledge

thank you

no the Rpi image not working with Orangepi PC Plus

https://www.youtube.com/watch?v=lUgxbKdX_go

in the description is a script for build your own Octopi/octorangepi image from scrath using Armbian OS

thank you so much

Comment has been deleted

thanks, I really appreciate your help