Questions tagged [3d-printing]

Most questions about 3D printing should be posted to the dedicated site at 3dprinting.stackexchange.com.

40 questions
6
votes
2 answers

How to send one gcode command over USB?

I am trying to write a simple python script that sends a gcode command to my wanhao D9 motherboard printer, running Marlin. I am running the python script on a raspberry pi that is connected to the printer via USB. import serial ser =…
C.Gibbons
  • 183
  • 1
  • 11
6
votes
2 answers

How to correctly communicate with 3D Printer

I have to write a java program that receives G-Code commands via network and sends them to a 3D printer via serial communication. In principle everything seems to be okay, as long as the printer needs more than 300ms to execute a command. If…
theCNG27
  • 405
  • 8
  • 27
5
votes
1 answer

Why is a normal vector necessary for STL files?

STL is the most popular 3d model file format for 3d printing. It records triangular surfaces that makes up a 3d shape. I read the specification the STL file format. It is a rather simple format. Each triangle is represented by 12 float point…
Jason Liu
  • 109
  • 1
  • 4
5
votes
0 answers

Perl small change for extrusion order while 3D printing with Slic3r

A popular, open source, 3D printing slicer software named Slic3r is written in Perl. I need to make a small change to the source code for a university project, but I'm completely unfamiliar with Perl. Here's a nice image of what dual extrusion…
3
votes
1 answer

Using pySerial to send gcode

This may be a bit of a long shot but I can't figure out the problem here. I'm trying to build an interface on my laptop using tkinter and pySerial to control my 3D-printer. I've got a function that contains this piece of code (Yes, I imported time…
Nick
  • 51
  • 2
3
votes
2 answers

associative arrays in openscad?

Does openscad have any language primitive for string-keyed associative arrays (a.k.a hash maps, a.k.a dictionaries)? Or is there any convention for how to emulate associative arrays? So far all I can think of is using vectors and using variables to…
Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
2
votes
4 answers

How to floor objects in OpenSCAD (make it flush on the Z axis for 3d printing)

If you want to 3D print something, then you have to make sure that your object is on the positive side of all axis. You can't have an object going through the negative Z axis otherwise it will not be proper on the printer bed ( I think). So how can…
Mohammed
  • 2,215
  • 1
  • 9
  • 8
1
vote
0 answers

Optimising key strokes for multiple semi-automated file exports (autocad->.stl)

I'm using autocad to slice a very large model into smaller pieces (.stl) for 3d printing. Imagine a 2d road map with all the roads extruded out an inch to created 3d pieces. Since there are many individual .stl files to export (and store) I need to…
1
vote
1 answer

G-Code post Processing script using Perl to lessen paste 3D printer ooze

this is my first post so I hope I set this up correctly. Basic situation: I'm trying to use a post processing Perl script to change lines of G-code for my custom paste 3D printer. To prevent the paste from oozing I've had decent success by manually…
m slez
  • 13
  • 2
1
vote
2 answers

3d printer firmware compile

i have an ender 3 pro 3d printer, due to hardware upgrades I have needed to change the firmware, unfortunately this hasn't been hassle free, I have got the firmware files from github.com in the marlin section, marlin being the firmware that the 3d…
stuart
  • 33
  • 1
  • 1
  • 3
1
vote
1 answer

How do you send two different g-code instructions simultaneously?

Im trying to send two different g-code instructions to the SKR V1.3 simultaneously using the pi 4B's UART pins to control two wheel stepper motors and one stepper motor for my lidar system: First i send this command in order to allow un-restricted…
1
vote
1 answer

3D Printer Serial Communication

I'm working on building a tool that can communication with 3D printers in Golang. The problem that I'm having is stumping me, it seems that I can initiate the connection to the printer. The LCD screen changes, the code starts to run, but whenever…
gochuck
  • 185
  • 2
  • 13
1
vote
1 answer

Generating outside supporters into mesh for 3D printing

Prologue This is my attempt to re-ask the closed Generating supporters for 3D printing as it is interesting question but lacking important details ... This is intended as Q&A and currently I am working on the code for the answer but feel free to…
Spektre
  • 49,595
  • 11
  • 110
  • 380
0
votes
0 answers

Marlin firmware - integrating touchscreen on ender 3

I am struggling to integrate the touchscreen in custom edited marlin firmware The display is already flashed with DWIN and I've got this far: built the bin file and flashed it on the printer board (4.2.7 silent mb) the touch screen is responsive…
0
votes
0 answers

How to make moonraker button code conditional? [Klipper, Moonraker, 3D Printer]

For my 3D printer with Klipper and Moonraker I wanted to improve the code for my hardware-button. I wanted to extend the on_press code for the button in moonraker.conf to have several conditions, based on properties of the printer object and the…
dorki453
  • 1
  • 1
1
2 3