How to Install Pronterface on Raspberry Pi
Intro: 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!
23 Comments
rms54 2 years ago
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
I got a list of errors. "python-serial" has no installation candidate
Unable to locate python-wxgtk3.0
unable to locate package python-pyglet
etc.
None of them completed. ???
StepOnItNow 3 years ago
raspberrypi33 3 years ago
StepOnItNow 3 years ago
Sam
raspberrypi33 3 years ago
whiteeedotcom 4 years ago
TahirT4 6 years ago
I have the new raspberry 3 B + with me it does not want the software PRONTERFACE
amoroi 6 years ago
AJRSousa 7 years ago
Really thanks!
raspberrypi33 7 years ago
No problem.
tb1405 7 years ago
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?
raspberrypi33 7 years ago
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.
raspberrypi33 7 years ago
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.
LongJ 7 years ago
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
raspberrypi33 7 years ago
For me, I just opened up Leafpad, and saved it to my desktop. It them just appered as an executable icon.
LongJ 7 years ago
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/
Krishnananda. K.H 7 years ago
raspberrypi33 7 years ago
Thanks for telling me that! I will update it!
kd7eir 8 years ago
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.
raspberrypi33 8 years ago
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.