Edit Talk

Running Delta 3D printer with BBB as Gcode sender system for Melzi Controller

From Appropedia

BeagleBone Black powered by Franklin gcode sender and Melzi controller[edit | edit source]

Beaglebone Black was uploaded with debian linux distribution OS. Franklin is a firmware package which is a gcode sender and melzi firmware uploader with printer calibration settings editor which can be used to communicate with Melzi controller and world internet for having the gcode files sent from any system to the beaglebone ip address.

Abstract[edit | edit source]

It is very good experience to have 3D printers at your home, so that you can print anything anytime you need. But it becomes very annoying when you have to recalibrate it now and then. So I decided to use Franklin package for 3D printer developed by Bas Wijnen. Everything from Z height length to tie rod length is configurable from the software browser interface itself. Configure deploy to the printer and start printing. Beagle bone black is a good small computer which can run variety of OS's right from android to other unix based systems. As Bas has developed the firmware and gcode sender based on browser on debian based linux system, I also did the same and uploaded latest eMMC flasher for debian linux distribution from official website for beagle bone black rev C(link given in the manual for beagle bone black rev C). Running a server version of linux gives you the advantage of being connected to the world internet and have the gcodes downloaded directly to your system and have them printed whenever you like to print them.

Beagle bone Black

Bill of Materials[edit | edit source]

  1. AmazonBasics RJ45 Cat5e Ethernet Patch Cable (14 Feet/4.2 Meters) ~ $5.5 [1]
  2. HDE 13-Port High Speed USB 2.0 Hub with On/Off Switch - Black ~ $ 12 [2]
  3. Kara Mobile High Quality DC5V 2A Power Supply AC100/240V Regulated UL 2.1/5.5mm Plug ~ $15 [3]
  4. Beagleboard (BeagleBone Rev C) ~ $58 [4]
  5. BeagleBone / Boards / BeagleBone Black Rev C ~ $55 [5]
  6. Edimax EW-7811Un 150Mbps 11n Wi-Fi USB Adapter, Nano Size Lets You Plug it and Forget it, Ideal for Raspberry Pi, Supports Windows, Mac OS, Linux ~ $9 [6]
  7. Setting up WiFi with BeagleBone Black ~ $12-$20 [7]
  8. Get a USB hub as per your need amazon gives very good offer.
  9. If you are not amazon prime member you can get a full kit from adafruit
  10. I bought everything from amazon with a bill of $103.

Tools[edit | edit source]

  1. Everything you have in bill of materials
  2. You need ethernet connection from your home or office router
  3. 3D printer and building instructions if you are building it for the first time [8]


Before You Begin[edit | edit source]

Before you begin you should have knowledge of all listed below

  1. Calibrating MOST 3d printer
  2. Linux commands
  3. Interfacing hardware because what you are doing is changing your interface from your linux/windows computer to debian linux beaglebone black
  4. So you will be using a Franklin g code sender and calibrating software on linux which is set on eMMC of beaglebone black.


Software to download and install[edit | edit source]

  1. Downloads are available with Bas Wijnen ~ Contact bwijnen@mtu.edu, So follow his instructions for the download page and package.
  2. You need websocket package, interface package and network package
  3. Bas keeps his franklin package editing so its better to have him send you his firmware to your inbox.


Building[edit | edit source]

Connections[edit | edit source]

  1. Connect Beagle Bone black to the windows PC with SSH login. You can use putty if you want.(I used my windows 8 so windows), Linux users can use it very easily from their shells.
  2. Connect the Ethernet and power supply for BBB(Beagle Bone black).
  3. After setting up franklin on BBB you can connect the USB cable to your MOST delta printer


Installing the packages[edit | edit source]

After you have all the packages saved on your BBB follow the instructions below:

  1. First check for all packages using - ls ,command. You should have four packages.
  2. If all packages are for debian then use - dpkg -i * , runs all packages, if other packages are also detected then use - dpkg -i (address to the package on your system including package name), all of the packages should be install separately so there will be four install instructions.
  3. If franklin doesn't install run - apt-get install -f. This will run check for needed packages and then install it using above install command.

Running Franklin at the port xxxx[edit | edit source]

  1. Go to the address where franklin pacakge is installed using - cd address.
  2. Run - nano franklin , this opens the franklin settings shown in the image on the side
  3. Write PORT = 8000 , make sure you are running franklin on a port which is not already in use for other package or service.
  4. So if 8000 is not working change the port and make sure it works with that port.
  5. Exit for the settings for franklin.
PORT Setting

Setting up franklin for use[edit | edit source]

  1. Use - service franklin restart, command and franklin will run. You need to do this each time you rebbot the BBB. Better idea is to keepit running for the printer.
  2. Go to address - address will be your BBB's ip:8000/?setup=1. My address looks like this http://192.168.7.2:8000/?setup=1. First time the network will ask you whether you want to connect or not. Hit connection with add exception shown in image Add exception.
  3. The page with USB option will come up. Hit the usb option as shown in UBS Option image.
  4. First time you will have to upload melzi firmware option shown in Setup Franklin.
  5. Ask me for a default.ini file which you have to upload to the franklin using import button in franklin settings shown in Settings Franklin image.
  6. With this you will see all the values in franklin are setup for your printer. See MOST printer calibration if you are confused.
  7. With profile save as you can save printer profile in the BBB shown in Settings Franklin.
  8. With export settings to file you can save printer profile file in the system you are having SSH login for BBB shown in Settings Franklin.
  9. Settings2 area shown in Settings2 image used for motor, extruder, motor speed and printer type calibration. As you use it you will understand it more.
  10. Settings3 area shown in Settings3 image used for interfacing direction settings of BBB with respect to Melzi. So check which direction and options your printers need for running correctly. My printer doesn't use inverted direction setting.
  11. Settings4 area shown in Settings4 image is used for browsing g code and giving printing and other manual command to the printer.
  12. Settings5 area shown in Settings5 image shows the printing area with x, y, and z axes. Blue dot shows the current position of the Extruder.

Final Word[edit | edit source]

  1. Setting up the tie rod length is most essential part in calibration. Measure the tie rod length correctly and put that in the setting up page.
  2. As soon as you are confident that the printer is running correctly, go on url window and change the address of franklin replacing 1 by 0. This will show only the Settings4 image area for your convenience.
  3. This is a detailed article about my project but if you get stuck because of the updates made by Bas Wijnen, please contact him.

Revision/improvements[edit | edit source]

  1. Adding LCD panel for displaying data.
  2. A switch can be interfaced for printing when you are not running your SSH client.
  3. Setting it up for automatic printing when a gcode is downloded to your beagle bone from network

Immediate Additions[edit | edit source]

  1. Run the WiFi module came with you BBB. When you buy it from adafruit it's the easiest.
  2. If you are getting it from amazon then it is a probability that it will work. So getting BBB and WiFi module from adafruit and other electronics from list from amazon works.


References[edit | edit source]

[1]

  1. Bas Wijnens Github repository : https://github.com/mtu-most/franklin