Wireless control ultimaker

M
mennosmit Getting started Level: 10 Points: 106
Posts: 6

Posted by
M
mennosmit

Posted Oct 27, 2013 - 9:08 AM  

Hey there!

Is there someone on the forum using octoprint on a Raspberry pi

I own a Ultimaker for about 4 weeks now, acualy the printer is located at my work.

And everithing works great !

Sinds a week i'm intrested in the programm caled octoprint.

Octoprint is a program to control your 3d printer over the web.

You can control it via a Raspberry pi .

I read the instructions on octoprint.org

So i bought a Raspberry pi, download Raspbain, downloaded the octoprint.zip file en unzip it to put the image on the sd card of the Raspberry.

Boot it up and now only Raspbain starts.....

When i type in the browser <a data-ipb='nomediaparse' href=''>http://octopi.local nothing is hapening

Someone knows what whent wrong ?

Gr Menno Smit

20 replies
 5647
Best replies 
Sort 
Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Oct 27, 2013 - 10:05 AM

Hi,

you have to follow the instructions exactly. There are two ways. You either install Raspbian and then install OctoPrint by hand via this guide:

https://github.com/...-Pi-running-Raspbian

Or, instead of installing Raspbian first, just grab the OctoPi image and restore it on the sdcard:

https://github.com/guysoft/OctoPi

It is not enough to unzip the image on the sdcard. You have to actually "restore" it on the sdcard. Depending on your operating system there are several ways:

http://elinux.org/RPi_Easy_SD_Card_Setup

Be aware that if you chose the second approach, when "restoring" you will loose all data on the sdcard. So if you bought the Raspberry Pi with a pre-installed Raspbian card, you will loose this. It is no big deal because it is easy to install Raspbian - just keep it in mind:

http://www.raspberrypi.org/downloads

N
nachokaos 3D printing enthusiast Level: 15 Points: 136
Posts: 106
Posted by
N
nachokaos

Posted Oct 27, 2013 - 11:37 AM

Dont need to install raspbian for nothing just octoprint.

Not much time now its few things to do to work properly i will post as soon i can

N
nachokaos 3D printing enthusiast Level: 15 Points: 136
Posts: 106
Posted by
N
nachokaos

Posted Oct 27, 2013 - 12:11 PM

try couple of easy things: format the SD card and mount the Octoprint image with http://elinux.org/...32DiskImager_program

only the octoprint!!! must work perfect...also check the power supply nedds to be in off try a proper one or give some more with a power supply USB hub. turn on and wait 3 or 4 minutes then try to acces, all problems i got before comes from the power supply.

also in windows you have to install bonjour http://support.apple.com/...es%20from%20browser.

supoustly you do all that before but the power supply was a very very important thing

Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Oct 27, 2013 - 5:46 PM

The power supply is important but not that of a big deal. I have two Raspberry Pi's here both powered by the small iPhone 4s/5 recharger. It works even with a PS3 cam attached...

M
mennosmit Getting started Level: 10 Points: 106
Posts: 6
Posted by
M
mennosmit

Posted Oct 27, 2013 - 5:55 PM

NachokaoS & Nicolinux

first of all thanks for the quick response!!!

# Info. i use a macbook, Raspberry pi model B, Raspberry camera, sd-card 8gb (class10), power supply 1000mA.

Oke i empty the sd card and format it.

I put only the octoprint image on the sd

I think this power supply is good enough ?

when i connect the Respberry to a hdmi computer monitor, the screen is now complete black when i turn it on.

Accially the red light on the Raspberry and on the camera turn on.

when i connect the Raspberry only on the Ultimaker by usb cable, and internet (wired) i cant find it when i type <a href=''>http://octopi.local in the browser of my laptop. (the red light on the camera and raspberry are on!) </a>

so it's not working yet but I'm much further!! :grin:

Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Oct 27, 2013 - 7:18 PM

When the Raspberry Pi boots up you should see also a green light flickering. If it doesn't then I suspect the boot image was not restored correctly. How did you "put the image on the sd"?

M
mennosmit Getting started Level: 10 Points: 106
Posts: 6
Posted by
M
mennosmit

Posted Oct 28, 2013 - 6:21 AM

yesss !! I'm verry happy !!

it's working now !! octoprint is online in my browser and i can see myself from the camera.

I put the image on the sd card by (Pi Filler 1.1.1) turn it on and the red and the green light turn on.

Octoprint said 'failed to autodetect' got my serial port on AUTO and the Baudrate as well.

Gr Menno Smit

Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Oct 28, 2013 - 7:37 AM

Great, you are one step closer to a working OctoPrint installation. I think you need to change the supported baud rate in pyserial. Please follow this short instruction.

First log in into your Raspberry Pi via ssh. (open a terminal and type "ssh -lpi octopi.local"). Instead octopi.local you can enter the ip address of your Raspberry Pi.

Then:

<pre class="_prettyXprint _lang-">

sudo apt-get install subversion

svn checkout svn://svn.code.sf.net/p/pyserial/code/trunk pyserial-code

cd pyserial-code

wget -O pyserial.patch http://sourceforge.net/p/pyserial/patches/_discuss/thread/ed3fb0de/f4fd/attachment/pyserial.patch

patch -p0 < pyserial.patch

cd pyserial

python setup.py build

sudo python setup.py install

</pre>

To make it easier, reboot your Raspberry Pi when done.

Here is the link to the documentation where I found this snippet. Link

M
mennosmit Getting started Level: 10 Points: 106
Posts: 6
Posted by
M
mennosmit

Posted Oct 28, 2013 - 8:25 AM

Hey Nicolinux

The machine status is now OPERATIONAL !!

I choose a different serial port and now i can control the Ultimaker !

let's see if i can send a G-code to the printer.

M
mennosmit Getting started Level: 10 Points: 106
Posts: 6
Posted by
M
mennosmit

Posted Oct 28, 2013 - 10:50 AM

yeaa !! just printed a Raspberry pi camera case !!

I'm so happy i's working now

I'm wondering how i can connect my wifi/usb dongle to the pi

and how i can look at my Ultimaker when i use a different network then the Raspberry pi.

I will post a Time lapse and a few pictures soon

T
tukl 3D printing enthusiast Level: 11 Points: 46
Posts: 36
Posted by
T
tukl

Posted Nov 4, 2013 - 3:36 AM

Did someone tried OctoPrint with an UM2?

I installed it on a raspberry without problems, connecting with 250000 baud rate and state is "operational" but if I try to print something the printer starts immediately in the top left without preheating and prints "in the air", the bed is still at home (on the bottom).

In addition, the head moves just from left to right until it reaches the right border of the frame...

L
lohiaprateek 3D printing enthusiast Level: 17 Points: 98
Posts: 38
Posted by
L
lohiaprateek

Posted Nov 4, 2013 - 7:01 AM

You could use wireless or a wired connection. Either works. Also do see if you can do a VPN into your rouer. So, you could be anywhere in the world, VPN into your router and just type the adress to access the interface.

T
tukl 3D printing enthusiast Level: 11 Points: 46
Posts: 36
Posted by
T
tukl

Posted Nov 4, 2013 - 7:19 AM

Yes, that's clear to me. But anyone else trying to run an UM2 with OctoPrint?

Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Nov 4, 2013 - 7:31 AM

TUKL: I don't have the UM2 yet, but the problem you describe sounds weird. In the control tab, is it possible to move the head in x/y directions? Is the movement correct (not backwards)?

Also take a look at the generated .gcode. Maybe that's broken. And another idea - check the terminal tab. Do you see any suspicious messages?

Daid Team Ultimaker Points: 6198
Posts: 4673
Posted by
Daid

Posted Nov 4, 2013 - 8:03 AM

Quote by TUKL

Yes, that's clear to me. But anyone else trying to run an UM2 with OctoPrint?

If you want this, you have to change the GCode flavor from "UltiGCode" to "RepRap" in Cura, this is because when you use the SD card menu in the UM2, the UM2 heats up and starts up itself, and this is not in the GCode. But with RepRap style GCode this is in the GCode file, which is what OctoPrint expects.

geeks I know my way around here Level: 28 Points: 610
Posts: 469
Location: France Printers: Ultimaker 2
Posted by
geeks

Posted Nov 4, 2013 - 8:20 AM

Hello,

In fact, as I understand it, when it is not Cura which generates the code, but the head moves too early.

Alex.

Nicolinux Moderator Points: 3997
Posts: 2657
Location: Wiesbaden, Germany Printers: Ultimaker 2+, Ultimaker 3
Posted by
Nicolinux

Posted Nov 4, 2013 - 8:47 AM

Quote by Daid

If you want this, you have to change the GCode flavor from "UltiGCode" to "RepRap" in Cura, this is because when you use the SD card menu in the UM2, the UM2 heats up and starts up itself, and this is not in the GCode. But with RepRap style GCode this is in the GCode file, which is what OctoPrint expects.

Thanks for the explanation. I guess it won't be long before Gina patches up OctoPrint to support UltiGCode flavor.

T
tukl 3D printing enthusiast Level: 11 Points: 46
Posts: 36
Posted by
T
tukl

Posted Nov 6, 2013 - 4:28 AM

Hey! It seems that I have a problem with the endstops, because with OctoPrint it won't let me move left (terminal always says endstop reached), even if I move right some times before.

I hope I get any response from UM according this problem, then I will continue testing OctoPrint!

N
nachokaos 3D printing enthusiast Level: 15 Points: 136
Posts: 106
Posted by
N
nachokaos

Posted Nov 6, 2013 - 4:50 AM

Quote by TUKL

Hey! It seems that I have a problem with the endstops, because with OctoPrint it won't let me move left (terminal always says endstop reached), even if I move right some times before.

I hope I get any response from UM according this problem, then I will continue testing OctoPrint!

Dont really think UM have to response about others software, try first to find a solution at octoprint developers forum Google group etc.

All the ways it Looks pretty compatible, i Dont have the oportunity to try with UM2 yet.

U
uma 3D printing enthusiast Level: 11 Points: 132
Posts: 32
Posted by
U
uma

Posted Jan 8, 2014 - 12:47 AM

Can anyone post the setting for UM2 connection settings for OctoPrint?

20 replies
 5647
Best replies 
Sort 
Support