M3D Linux - Third party Linux program for native gcode support

From Micro3Dfans Wiki
Jump to: navigation, search

M3D Linux

M3D Linux is a Linux program that can communicate with the Micro M3D printer, written by donovan6000. This tool can be used for Octoprint talking to the Micro. Sources can be downloaded at https://github.com/donovan6000/M3D_Linux

HOWTO - Installation of M3D Linux on a Raspberry Pi using Octoprint

Setup Raspberry Pi

Update Raspian

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get dist-upgrade

Update OctoPi

  • cd ~/OctoPrint
  • git pull
  • find . -iname '*.pyc' -print0 | xargs -0 --no-run-if-empty rm
  • ~/oprint/bin/python setup.py install
  • sudo service octoprint restart

Setup M3D_Linux

  • sudo sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
  • sudo apt-get update
  • sudo apt-get install gcc-4.9 g++-4.9

Configuring libc6 --> No

  • sudo sed -i 's/jessie/wheezy/g' /etc/apt/sources.list
  • sudo apt-get update

Add Octoprint plugin for direct communication

  • cd cd ~/M3D_Linux
  • wget https://www.exploitkings.com/public/m3d-linux-octoprint-plugin-V0.3.zip
  • unzip m3d-linux-octoprint-plugin-V0.3.zip -d ~/.octoprint/plugins -x "Read Me"
  • sudo reboot
  • Wait for reooting RasPi, then browse to OctoPi at http://<your pi's ip address>
  • Go to Settings - M3D Linux - Path to M3D Linux - /home/pi/M3D_Linux
  • Check pre-processing: validation, preparation, thermal bonding, wave bonding, bed compensation, backlash compensation, feed rate conversion
  • Add Printer settings

Update M3D_Linux

  • cd ~/M3D_Linux
  • git pull
  • g++-4.9 -std=c++11 -O3 -o "M3D_Linux" *.cpp

Using M3D_Linux

Via OctoPrint

  • Browse to OctoPi at http://<your pi's ip address>
  • Drag and drop gcode from Cura or other slicer to left side of OctoPi screen

Process gcode manual via CLI (geek version)

  • login to raspberry
  • sudo ./M3D_Linux -v -p -t -b -l -f -i input.gcode -o output.gcode
  pre-process file with validation, preparation, thermal bonding, bed compensation, backlash compensation, and feed rate conversion
  • sudo ./M3D_Linux -s
  start virtual port
  • Browse to OctoPi at http://<your pi's ip address> and load output.gode into OctoPrint and start printing


Sources:

https://github.com/donovan6000/M3D_Linux

https://www.raspberrypi.org/documentation/installation/installing-images/README.md

http://linuxconfig.org/raspbian-gnu-linux-upgrade-from-wheezy-to-raspbian-jessie-8

https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian

https://printm3d.com/portal/forum/index#/discussion/1784/linux-software

https://solarianprogrammer.com/2015/01/13/raspberry-pi-raspbian-install-gcc-compile-cpp-14-programs/