LEGO 3D Printer Using 3D Models

by Creative Mindstorms in Circuits > Robots

3631 Views, 13 Favorites, 0 Comments

LEGO 3D Printer Using 3D Models

20210822_185928.jpg
vlcsnap-2021-08-23-20h31m26s279.png

This is a guide on how to make your own 3D printer, that can print out any 3D model, in just a few clicks.

It's written in Python (with ev3dev and micropython extension).

Video: https://youtu.be/AXyhm5_saEY

Supplies

  1. Lego
  • Lego Mindstorms (+ batteries)
  • 4 Lego Mindstorms Motors
  • Lot's of Lego bricks
  1. 3D pen
  2. micro SD card
  3. Software
  1. Downloads

Building the 3D Printer

20210822_185928.jpg
vlcsnap-2021-08-28-17h08m29s231.png
vlcsnap-2021-08-28-17h10m22s199.png
vlcsnap-2021-08-28-17h09m50s319.png
vlcsnap-2021-08-28-17h10m05s156.png

First you'll need to make a LEGO Mindstorms 3D printer.

If you haven't built your LEGO Mindstorms 3D printer yet, here are some tips:

  1. Make sure you build a solid structure, because the smallest amount of movement, will make a big difference in the end result.
  2. Move your platform from two opposite sides per axis. Don't try moving it with just one gear on one side, because the platfom won't move in a straight line, and may get stuck. You can simply make an axle go underneath the platform or above the gear racks and connect it to the platform with some gears. Another option is to move the platform with linear actuators attached to the middle of a side.
  3. If you work with gears, make a gear transmission that reduces the speed at which the platform moves, in all three directions. I recommend only one transmission on the X and Y axis, and a larger or more reductions on the Z axis, as the platform would go too slow if you made more transmissions.
  4. Make sure you use two of the same motors with the same transmissions to move in the X and Y direction. The code is programmed to work with two of the same motors, because the medium and large motor rotate at a different speed. When you use two different motors, the code won't work propperly and your prints will fail.
  5. Build a mechanism that can push the extruderbutton on the 3d pen. It will reduce the amount of loose strings.

Setting Up the Software and Mindstorms

bisual.png
fooototo.jpg

First you need to download all the programs for the Mindstorms 3D printer:

  1. Visual Studio Code
  2. balena Etcher
  3. The EV3 MicroPython micro SD card image
  4. Code + Files
  5. Slicer (I recommend Ultimaker Cura)

You first need to flash the SD card with the EV3 MicroPython micro SD card image. You can find instructions on how to do this in the Getting started guide from Mindstorms Education EV3 MicroPython.

After this, you can download Visual Studio Code, and download the required extensions.

Customizing the Code

config.png

You can change these variables in the program, to make the code work with your 3D printer:

  • :portSelection - You can define the ports in which the motors are put into.
  • :startposition - If your 3D printer starts at an offsetpoint, change the numbers to your offsetpoint.
  • :degreestomm Give the amount a motor has to turn, in order to move 1mm. (you may have to increase or decrease them a little bit)
  • :motorSpeed - The speed at which the motors have to turn. (I recommend putting it low)Scale: 0 - 1000(you should keep the max speed 900)
  • :filename - Change this to select which gcode file the program has to read and print.

Add 3D Models

vlcsnap-2021-08-28-18h39m22s111.png

If you want to add new 3D models:

  1. Add custom 3D printer settings, with the correct layer height and printing space dimensions. (layer height should be arround 1mm)
  2. Change the printing settings till they seem right.
  3. Slice your 3D model with your slicer and save the Gcode file.
  4. Make a new .txt file in the Mindstorms_3D_printer_code - V2.0 folder.
  5. Copy the entire Gcode text (ctrl. + A, ctrl. + C) and paste it into the new text file (ctrl. + V).
  6. Change the :filename in main.py to the filename from the file you just added.

Start Printing!

timelapse 1

Now you've set everything up, start the program (Click here for instructions).

Your very own 3D printer should now start printing!

Errors and Contact Info

vlcsnap-2021-08-28-15h48m10s658.png
timelapse 2

If you've come across any errors, or simply can't figure out how to get your 3D printer to work, feel free to contact me via mail!

creativemindstorms1@gmail.com

If you've succesfully completed your 3D printer, feel free to share it with me as well, as I would love to see your 3D printer in action!

IMPORTANT: Remember the Creative Commons licence

You are allowed to use the downloadable files for personal use, but not for commercial purposes.
If you want to publish your 3d printer using one of the files, please add the following to your publishment:

Code by: Creative Mindstorms - https://youtu.be/AXyhm5_saEY