Introduction: How to Install Pronterface on Raspberry Pi

While many people find it easy to just control a general Rep-Rap 3D printer from their own computer, there will come times when you must use something portable If you need to, for example, take your computer to work. The Raspberry Pi would be the go-to solution for you. These steps will take you through on how to run the software "Pronterface" on your Raspberry Pi 2 B. Pronterface is a wonderful software that most people know about if they have a Rep-Rap. I will assume that you have a general knowledge of the Raspberry Pi, and that you are able to boot it up, and have basic command terminal experience (This is my first Instructable).

Materials:

Raspberry Pi 2 B with Raspbian

Peripherals for Raspberry Pi

3D Printer (Rep-Rap)

Mouse

Keyboard

1. First, boot your Pi up, and direct yourself to the command terminal. Then, type in the following (This is VERY important because it updates your Pi's software cache):

sudo apt-get update

Then:

sudo apt-get upgrade

2. After that, then, type this:

sudo apt-get install python-serial python-wxgtk2.8 python-pyglet python-numpy cython python-libxml2 python-gobject python-dbus python-psutil python-cairosvg git

3. Finally, type out this:

git clone https://github.com/kliment/Printrun.git

4. In your home folder, go to the folder "Printrun", and open up the file "Pronterface.py". It should ask you to if you want to execute the file, and when it does, click "execute", not "execute in terminal"

5. Going further, if you want to make a desktop icon, type out the following into "leafpad", or any other text editor:

[Desktop Entry]

Name=PRONTERFACE

Comment=3D Printer

Exec=/usr/bin/python /home/pi/Printrun/pronterface.py

Icon=/home/pi/Printrun/pronsole.ico

Terminal=false

Type=Application

(NOTE: Make sure that there are no spaces in the text document for the icon.)

6. You're done! Enjoy using Internet free, hassle free 3D printing. Once you connect you printer during the boot process, you're just about done.

7. Also, remember to, in the drop-down list of ports in Pronterface, please pick the correct one. The device should end with a "0"

NOTE: The following information and code has been only tested on a Raspberry Pi 2 Model B, and controlling a Printrbot Simple Metal with a Printrboard Revision F5.

NOTE: If you have any trouble with the code, go to these websites, as they have the instructions listed above:

https://github.com/kliment/Printrun

http://bukobot.com/raspberry-pi

8. Expand Your Project:

If you really want to extend your Raspberry Pi, add a touchscreen on it! Adafruit has some great models such as this one:

https://adafruit.com/products/2298

Also, you could 3D print a mount for your Raspberry Pi to connect to your 3D printer. This link is for a Printrbot Simple Metal if you want to mount your Raspberry Pi:

https://thingiverse.com/thing:673133

Finally, you could add a Raspberry Pi camera to you Pi, and take time-lapse videos with it. Refer to "The Raspberry Pi User Guide" for more info:

http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118921666.html

NOTE: If you have successfully completed the steps above, please click the "I made it!" button and post some pictures. I would love to see them!

Comments

author
AJRSousa made it!(author)2017-03-08

Really thanks!

author
raspberrypi33 made it!(author)2017-03-11

No problem.

author
tb1405 made it!(author)2016-09-15

Hi

I have tried this with a anet 3d a8. (Prusa I3 China Clone) but i doesnt work.

I get all the time this Error Code.

Connecting...

start

Printer is now online.

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

ok 0

Attempted to write invalid text to console, which could be due to an invalid baudrate

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14665, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "/home/pi/Printrun/printrun/gui/controls.py", line 289, in tempdisp_setlabel

wx.StaticText.SetLabel(root.tempdisp, label)

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 8503, in SetLabel

return _core_.Window_SetLabel(*args, **kwargs)

File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 26: invalid start byte

Attempted to write invalid text to console, which could be due to an invalid baudrate

ok 0

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14665, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "/home/pi/Printrun/printrun/gui/controls.py", line 289, in tempdisp_setlabel

wx.StaticText.SetLabel(root.tempdisp, label)

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 8503, in SetLabel

return _core_.Window_SetLabel(*args, **kwargs)

File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 26: invalid start byte

Attempted to write invalid text to console, which could be due to an invalid baudrate

ok 0

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14665, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "/home/pi/Printrun/printrun/gui/controls.py", line 289, in tempdisp_setlabel

wx.StaticText.SetLabel(root.tempdisp, label)

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 8503, in SetLabel

return _core_.Window_SetLabel(*args, **kwargs)

File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 26: invalid start byte

Attempted to write invalid text to console, which could be due to an invalid baudrate

ok 0

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14665, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "/home/pi/Printrun/printrun/gui/controls.py", line 289, in tempdisp_setlabel

wx.StaticText.SetLabel(root.tempdisp, label)

File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 8503, in SetLabel

return _core_.Window_SetLabel(*args, **kwargs)

File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 26: invalid start byte

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Attempted to write invalid text to console, which could be due to an invalid baudrate

Do you have any idea?

author
raspberrypi33 made it!(author)2017-01-15

Furthermore, sometimes China clones don't work, so if the problem persists, then try using a different Arduino or RAMPS board or whtaever board you currently have now.

author
raspberrypi33 made it!(author)2016-10-06

I had this exact same problem with my Printrbot a few weeks ago! I found that it wasn't the computer's fault, but it was a firmware problem. If you know how to re-flash your firmware on your electronics board, then you should give it a try.

author
LongJ made it!(author)2016-12-26

Ok what do you call the text file for the desktop icon and where do you put it

Seems like that might be kind of important

author
raspberrypi33 made it!(author)2017-01-03

For me, I just opened up Leafpad, and saved it to my desktop. It them just appered as an executable icon.

author
LongJ made it!(author)2017-01-14

Thanks I'll give that a try some time. I have a Pi 3 with a 5" touchscreen running octoprint but a lightweight interface like this can be handy for tweaking and setups after upgrades ..... And there is always another upgrade. it's mounted on a small worktable with locking wheels

I'm looking to make something that I can download from thingieverse, slice it and print making the printer standalone needing only a power outlet and a WiFi network

This coming summer a buddy and I are going to load it in my modified jon boat run it off the boat's wifi network/AP and run the unit from my deep cycle storage cells and making a video of it printing "out in the wild" something I want for my boat or a 3D printed lure and then catch a fish with it. Just because I can ...... and I haven't seen anyone else do it

http://netbook2chartplotter.blogspot.com/

author
Krishnananda.+K.H made it!(author)2016-08-23

Very helpful article. But do not include "Categories-Application;Development;" while creating Desktop shortcut. Else it will remain text document. At least for me it was so.

author
raspberrypi33 made it!(author)2016-09-06

Thanks for telling me that! I will update it!

author
kd7eir made it!(author)2016-04-22

Accessing it from the same computer it is running on as you are doing with Pronterface, Octoprint does NOT require internet access. Also, you never mentioned connecting the printer to the raspberry pi, and configuring the ports - without those steps, Pronterface will not be able to communicate with your 3d printer.

author
raspberrypi33 made it!(author)2016-04-28

Just the other day, I tried Octopi without internet access. I needed to plug in an Ethernet cable into my pi to get it to work. I don't have W-Fi, so plugging the Ethernet cable made it work. I wonder if it works for you if you don't have internet access to your pi.

author
kd7eir made it!(author)2016-04-28

OctoiPi only requires a network connection if you want to access it from another device. If you want to access it directly from the Pi that it's installed on, then you just launch the browser on the Pi and access it that way.

author
raspberrypi33 made it!(author)2016-04-25

Sorry, I'm not so familiar with Octoprint; I will add in your recommended steps.

author
wold630 made it!(author)2016-04-22

Thanks for sharing this!

About This Instructable

4,615views

23favorites

License:

Bio: My favorite pastime is 3D printing, and I have a homebuilt Rep-Rap Kossel.
More by raspberrypi33:How to access Beaglebone via VNCMake a 608 Bearing MUCH Faster3D Printing on Unconventional Items
Add instructable to: