Difference between revisions of "Fab modules - compiled version"

From Fab Lab Wiki - by NMÍ Kvikan
Jump to: navigation, search
m (Madouc moved page Fab modules to Fab modules - compiled version without leaving a redirect: New guide for the new version of the fab-modules)
 
(18 intermediate revisions by 3 users not shown)
Line 8: Line 8:
 
  mkdir fabmodules
 
  mkdir fabmodules
 
  cd fabmodules
 
  cd fabmodules
  wget http://kokompe.cba.mit.edu/dist/fab.zip
+
  wget http://kokompe.cba.mit.edu/fab_src.zip
  unzip fab.zip
+
  unzip fab_src.zip
  chmod +x bin/*
+
  sudo make install
  sudo mv bin/* /usr/local/bin
+
  #see wiki.infosyncratic.nl/FabSend for tips on configuring fab modules
 +
 
 +
Had some problems to begin with as Ubuntu had installed in Icelandic - fixed it by switching the language to English, probably could have worked as well as writing cd ~/Skjáborð instead of cd ~/Desktop
  
 
*graphing and interface modules
 
*graphing and interface modules
 
+
*Install: Python wxPython GCC libpng Make BASH okular
apt-get -y install python-wxtools
+
You can install all of the dependencies with the commands
 
+
  sudo apt-get install python python-wxgtk2.8 gcc g++ libpng12-dev make bash okular libboost-thread-dev libboost-system-dev cmake
*Install: Python wxPython GCC libpng Make BASH
+
sudo apt-get install pip
 
+
sudo pip install PyOpenGL PyOpenGL_accelerate
  apt-get install python python-wxgtk2.8 gcc libpng12-dev make bash
+
  
 
<br>  
 
<br>  
Line 32: Line 33:
  
 
<br> Then you can select from different options  
 
<br> Then you can select from different options  
 +
==How to update Fab modules==
 +
cd ~/Desktop
 +
sudo mv fabmodules fabmodules_older
 +
 +
cd ~/Desktop
 +
mkdir fabmodules
 +
cd fabmodules
 +
wget http://kokompe.cba.mit.edu/fab_src.zip
 +
unzip fab_src.zip
 +
sudo apt-get install python python-wxgtk2.8 python-dev python-pip gcc g++ libpng12-dev make bash okular libboost-thread-dev libboost-system-dev cmake
 +
 +
sudo pip install PyOpenGL PyOpenGL_accelerate numpy
 +
sudo make install
 +
chmod +x bin/*
 +
sudo mv bin/* /usr/local/bin
 +
 +
There is an alternative and easier method for updating fab modules. Open a terminal a type:
 +
 +
fab_update check
 +
 +
This will check if there is a new version. If so, proceed to the update by typing:
 +
 +
sudo fab_update install
  
 
== Modela settings  ==
 
== Modela settings  ==
Line 39: Line 63:
 
*Change port="/dev/ttyUSB0" to port="/dev/ttyS0"  
 
*Change port="/dev/ttyUSB0" to port="/dev/ttyS0"  
 
*/dev$ sudo chmod 0766 /dev/usblp0
 
*/dev$ sudo chmod 0766 /dev/usblp0
 +
 +
Go to the root
 +
 +
cd ..
 +
cd ..
 +
cd ..
 +
 +
*Open the send_rml with gedit program
 +
 +
cd /usr/local/bin
 +
 +
Write
 +
 +
sudo gedit rml_send
 +
 +
In the gedit program
 +
 +
if [ $# -eq 1 ]
 +
then
 +
port="/dev/ttyS0" 
 +
else
 +
#fg breyttiport=$2
 +
  port="/dev/ttyS0" 
 +
fi
 +
 +
*Open the rml_move with gedit program
 +
 +
cd /usr/local/bin
 +
 +
Write
 +
 +
sudo gedit rml_move
 +
 +
Use gedit
 +
 +
#frosti breytti port="/dev/ttyUSB0"
 +
port="/dev/ttyS0"
 +
if [ $# -eq 3 ]
 +
  then
 +
    port=$3
 +
  fi
  
 
== CAMM settings  ==
 
== CAMM settings  ==
Line 92: Line 157:
  
 
<br>  
 
<br>  
 +
 +
== Settings for the laser  ==
 +
 +
*How to get Epilog laser running on net with Ubuntu
 +
**Be sure the Epilog is on and connected.
 +
 +
<br>
 +
 +
***· System -&gt; Administration -&gt; Printing -&gt;
 +
***· Server-&gt;New Printer
 +
***· Select Devices -&gt; Network Printer
 +
***· Host 192.168.12.236
 +
***· Queue queue -- Forward
 +
***· Select printer from database -&gt;Generic -- Forward
 +
***· Models Raw queue --Forward
 +
***· Printer name laser -- Apply
 +
 +
<br>
 +
 +
*If you use the USB connection you will only be able to "print" from one computer. †If that's ok, then just use Ubuntu's regular "add printer", select USB, and otherwise select RAW driver. †Name it "laser", which is what cad.py is looking for. †(Cad.py doesn't know how it's hooked up only it's name).
 +
 +
*yeah, call them laser1 and laser2 or something. For host you will need to select the 2 ip addresses that the lasers have when you plug them into the network-- may not necessarily be 192.168.12.236.
 +
 +
<br> Here's how to find the IP address of the Epilog Mini once it's on the network
 +
 +
<br> Mini/Helix:
 +
 +
**1. Quickly depress and release the “Go” and “Pointer” buttons simultaneously to display the “Functions Menu”
 +
**2. Continue to press the “Go” button until the IP Address is visible and note the address.
 +
**3. Continue to press the “Go” button until the display reads “GO/SAVE” and then press “Go” to return to the jobs screen.
 +
 +
([http://www.epiloglaser.com/tl_troubleshoot_directnetwork.htm http://www.epiloglaser.com/tl_troubleshoot_directnetwork.htm])
 +
 +
*then in fab_send (/usr/local/bin/fab_send) you have to change the laser name from 'laser' to 'laser1' or whatever you named the one you want to print to that computer from with.
 +
 +
<br>
 +
 +
==Fabserver==
 +
If you installed Fab Modules
 +
you have installed fabserver as well
 +
*it should be in /usr/local/bin.
 +
* first you have to start fabserver and write the port number:
 +
fabserver 1234
 +
*Then you can open http://127.0.0.1:1234/ in Chrome or chromium.
 +
 +
 +
 +
  
 
=== Conversion from dpi (Dots per Inch) to millimeters (mm)  ===
 
=== Conversion from dpi (Dots per Inch) to millimeters (mm)  ===
  
500 dots per inch equals to 19.67 dots per mm.  
+
*500 dots per inch equals to 19.67 dots per mm.
  
You can use Wolfram Alpha to convert between inches to mm:http://www.wolframalpha.com/input/?i=500+dpi
+
*You can use Wolfram Alpha to convert between inches to mm:http://www.wolframalpha.com/input/?i=500+dpi

Latest revision as of 15:51, 21 January 2015

This is how I installed the Fab Modules on Ubuntu and it seems to work. I got this tutorial on

  • fab modules
cd ~/Desktop
mkdir fabmodules
cd fabmodules
wget http://kokompe.cba.mit.edu/fab_src.zip
unzip fab_src.zip
sudo make install
#see wiki.infosyncratic.nl/FabSend for tips on configuring fab modules

Had some problems to begin with as Ubuntu had installed in Icelandic - fixed it by switching the language to English, probably could have worked as well as writing cd ~/Skjáborð instead of cd ~/Desktop

  • graphing and interface modules
  • Install: Python wxPython GCC libpng Make BASH okular

You can install all of the dependencies with the commands

sudo apt-get install python python-wxgtk2.8 gcc g++ libpng12-dev make bash okular libboost-thread-dev libboost-system-dev cmake
sudo apt-get install pip
sudo pip install PyOpenGL PyOpenGL_accelerate 


Run the Fab Module

And to run the Fab module simply write in the Ubuntu terminal:

fab

and press enter from what you are going to do with it.


Then you can select from different options

How to update Fab modules

cd ~/Desktop
sudo mv fabmodules fabmodules_older

cd ~/Desktop
mkdir fabmodules
cd fabmodules
wget http://kokompe.cba.mit.edu/fab_src.zip
unzip fab_src.zip
sudo apt-get install python python-wxgtk2.8 python-dev python-pip gcc g++ libpng12-dev make bash okular libboost-thread-dev libboost-system-dev cmake
sudo pip install PyOpenGL PyOpenGL_accelerate numpy
sudo make install
chmod +x bin/*
sudo mv bin/* /usr/local/bin

There is an alternative and easier method for updating fab modules. Open a terminal a type:

fab_update check

This will check if there is a new version. If so, proceed to the update by typing:

sudo fab_update install

Modela settings

not working at the moment......

  • Change port="/dev/ttyUSB0" to port="/dev/ttyS0"
  • /dev$ sudo chmod 0766 /dev/usblp0

Go to the root

cd .. 
cd ..
cd ..
  • Open the send_rml with gedit program
cd /usr/local/bin

Write

sudo gedit rml_send

In the gedit program

if [ $# -eq 1 ]
then
port="/dev/ttyS0"  
else
#fg breyttiport=$2 
  port="/dev/ttyS0"  
fi
  • Open the rml_move with gedit program
cd /usr/local/bin

Write

sudo gedit rml_move

Use gedit

#frosti breytti port="/dev/ttyUSB0"
port="/dev/ttyS0"
if [ $# -eq 3 ]
 then
    port=$3
 fi

CAMM settings

  • To make it work with the vinyl cutter:
  • First find out how the vinyl-cutter is connected, (what is the name of the usb port?)
cd ..
cd ..
cd ..
  • Until you are on the root
  • then write
/var/log$ dmesg
  • Turn on the vinyl cutter and
/var/log$ dmesg
  • Then you will see the name of the USB port that the vinyl cutter uses
  • Turn of the vinyl cutter and
/var/log$ dmesg

Then you will see the name of the USB port that the vinyl cutter uses

Then you should change the permisson

/dev$ sudo chmod 0766 /dev/usblp0
  • Open the send_camm with gedit program
/usr/local/bin$ sudo gedit camm_send
*Change the name of the port to the one you will be using
port="/dev/usblp0"

then you can check how it works in the fab module

fab

Setting on the CAMM

Ritural to make sure the vinyl cutter accepts force settings:

  • 1.Keep MENU/PARAM and cursor LEFT,RIGHT key down and turn power on.
  • 2.Select "!FScmd" by dial.
  • 3.Select parameter field by MENU/PARAM key.
  • 4.Select "ON" by dial.
  • 5.Push ENTER key.
  • 6.Turn power off.


Settings for the laser

  • How to get Epilog laser running on net with Ubuntu
    • Be sure the Epilog is on and connected.


      • · System -> Administration -> Printing ->
      • · Server->New Printer
      • · Select Devices -> Network Printer
      • · Host 192.168.12.236
      • · Queue queue -- Forward
      • · Select printer from database ->Generic -- Forward
      • · Models Raw queue --Forward
      • · Printer name laser -- Apply


  • If you use the USB connection you will only be able to "print" from one computer. †If that's ok, then just use Ubuntu's regular "add printer", select USB, and otherwise select RAW driver. †Name it "laser", which is what cad.py is looking for. †(Cad.py doesn't know how it's hooked up only it's name).
  • yeah, call them laser1 and laser2 or something. For host you will need to select the 2 ip addresses that the lasers have when you plug them into the network-- may not necessarily be 192.168.12.236.


Here's how to find the IP address of the Epilog Mini once it's on the network


Mini/Helix:

    • 1. Quickly depress and release the “Go” and “Pointer” buttons simultaneously to display the “Functions Menu”
    • 2. Continue to press the “Go” button until the IP Address is visible and note the address.
    • 3. Continue to press the “Go” button until the display reads “GO/SAVE” and then press “Go” to return to the jobs screen.

(http://www.epiloglaser.com/tl_troubleshoot_directnetwork.htm)

  • then in fab_send (/usr/local/bin/fab_send) you have to change the laser name from 'laser' to 'laser1' or whatever you named the one you want to print to that computer from with.


Fabserver

If you installed Fab Modules you have installed fabserver as well

  • it should be in /usr/local/bin.
  • first you have to start fabserver and write the port number:
fabserver 1234



Conversion from dpi (Dots per Inch) to millimeters (mm)

  • 500 dots per inch equals to 19.67 dots per mm.