Pi-Bot, 3d printing for Raspberry Pi
by Sebastius, published
This is a guide on how to set up your Raspberry Pi as a printerserver for your 3d printer!
Recent Commentsview all
Liked Byview all
Give a Shout Out
(note: PDF is attached with better formatting)
This guide is far from complete. In fact, you wonâ€™t even get it running the way you really want. Pronterfaceâ€™s webinterface is not ready for primetime just yet (lacking a lot of necessary features) . But give it a little time and experiment on your own, you might just amaze yourself! If you've got any tips, errors or additions, please let me know! (if you like, use the attached logo for your SD-card)
My endgoal is to make either a distributable image or a script that does all this work on its own, but i'm a long way from getting there. Please help if you can!
Raspberry Pi 4gb SDcard (class 4 or up) Regular PC (WinMacLin) Internet connection to PC and to Pi board Micro USB cable for power and a USB cable to your 3d printer USB keyboard/mouse HDMI enabled screen (TV will do fine)
When the SDcard is complete, connect the Pi to your HDMI screen, network, keyboard, SDcard and last: power.
After a short wait you should get the configuration menu. Check your settings and most importantly: enable SSH connections! Also use the SD card partition resizer. Reboot after youâ€™ve saved your settings by using â€˜<b>sudo reboot</b>â€™
Connect to your Pi using SSH, login as <i>pi/raspberry</i>. Alternatively, if you are sitting comfortably at your Pi-keyboard, just use that.
After login, itâ€™s time to do some updates:
<b>sudo apt-get update sudo apt-get upgrade</b>
This will take a little while. After that, itâ€™s wise to reboot (<b>sudo reboot</b>) and reconnect a minute or so later.
Now we will install a lot of dependencies and useful tools. This will take some time.
<b>sudo apt-get install python python-dev python-serial python-wxgtk2.8 python-pygletÂ git-core</b>
The system will ask you if itâ€™s okay to download and use diskspace. Sure it is. Now weâ€™ve got a complete set of Python tools and the Git system, which will download Pronterface for us!
Weâ€™ll need CherryPy for the web-server part.
<b>wget download.cherrypy.org/cherrypy/3.2.0rc1/CherryPy-3.2.0rc1.tar.gz tar -xf CherryPy-3.2.0rc1.tar.gz cd CherryPy-3.2.0rc1/ sudo python setup.py install</b>
To test CherryPy you can do the following
<b>cd cherrypy/tutorial pico tutorial.conf</b>
edit the IP adress to the Piâ€™s adress, press control+O (writeout, press enter) and control+X (exit)
Use a browser on any computer in the network, visit:
<i>Piâ€™s IP adress<b>:8080</b></i>
You should get a hello world. Press control+C afterwards to exit CherryPyâ€™s demo. Great stuff! Now everything is ready for Pronterface!
<b>cd /home/pi git clone git://github.com/kliment/Printrun.git</b>
This will download the latest version of Pronterface/Printrun.
But for the webinterface we need the experimental branch:
<b>cd Printrun git checkout -b experimental origin/experimental</b>
You can check and change the settings for the Webinterface using Pico:
<b>pico http.config (change it to your IP adress!) pico auth.config</b>
But first we need to edit Pronterface to enable the webinterface:
Find the line â€˜<i>webavail = False</i>â€™ and change it to â€˜<b>True</b>â€™. Save and exit.
At this point you can run <i>pronterface.py</i> from the GUI (using Python) and your webinterface will be waiting for you!
To enable STL slicing, you can install Skeinforge by typing
<b>sudo apt-get install skeinforge</b>
which will install skeinforge to /usr/share/skeinforge. Slic3r should work, but i havenâ€™t got it operational just yet (a lot of dependencies and stuff required).