Questions tagged [python]

This question is associated with the programming language Python

Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

G-code dialog sequence over serial interface

I'm writing a Python module that allows new tricks with printing - it already can produce G-code I can put into a file, send to the printer and print out. No problem with generating the correct codes ...
SF.'s user avatar
  • 228
1 vote
0 answers
49 views

Flsun Q5 returns 'ok 0' as response to every command

I have a Flsun Q5 which I am trying to get to communicate with my python script. The script is this: ...
Broteen Das's user avatar
3 votes
3 answers
991 views

Reverse the X-axis of a G-code file

I've got some sliced models that represent the right-side arms and legs of a robot. I'm really happy with how they printed, so now I'd like to print the left-side arms and legs. I was thinking it ...
Ron Jensen's user avatar
4 votes
1 answer
177 views

Why is this central area of the STL being filled in?

We've been doing some work automatically generating STL files using Python. We've made a ring of cubes like so: Importing it into Cura still makes it look valid, with a hole in the center: However, ...
Alexander Craggs's user avatar
1 vote
0 answers
199 views

Receive M114 command while printing using Printrun

I'm working on a project for which I use the Printrun package to serial communicate my G-code to my 3D printer (Creality Ender 3, Marlin firmware). The idea is that I have an external button connected ...
Madie's user avatar
  • 11
1 vote
1 answer
2k views

How do you send G-code from a USB port with Python?

I'm working on a project for my masters where I'm trying to detect print errors using object detection and I want to be able to pause the printer when a potential fault is detected. However I can't ...
Nick's user avatar
  • 13
0 votes
1 answer
101 views

Can't create image to G-code software for CNC to process

For the last 3 months I have been working on a CNC drawing machine but to this day I can't get the algorithm for line detection so I came here. I can't understand only one part and it is CAM the (...
Irakli's user avatar
  • 1
0 votes
0 answers
72 views

PyCNC - Z steppers screaming

I'm transforming my Anet A8 printer to Raspberry Pi driven using PyCNC. Things seem to look promising so far apart from the Z motor doing nothing but making screaming-like sound when supposed to be ...
haxpanel's user avatar
  • 111
4 votes
3 answers
7k views

Convert a 3D NumPy array of voxels to an STL file

Given a 3D boolean array representing voxels, how can it be converted to a 3D-printer-ready file? The end-goal I would like to achieve is to print the 3D shape that the numpy array represents (...
Stephane Bersier's user avatar
3 votes
2 answers
636 views

Sending G-code commands to Hyrel System 30M using python

I am using python 3.6 with pySerial library to connect to the Hyrel System 30M 3D Printer. I am able to read the data from the device but unable to write any commands to it Here is the code: ...
Varun Kumthekar's user avatar
3 votes
1 answer
9k views

Is it possible to convert a Las /Laz file into an STL or OBJ file?

I would like to know if there is any tool/library (preferably python based) that could be used in parsing a Laz file to extract info that is normally found in 3d object files such as vertices. Which ...
Durodola Opemipo's user avatar
1 vote
2 answers
2k views

How to build Cura on Windows?

I am interested in doing development on Cura. Initially I want to start with the UI rather than the Engine. I have found the repository and have cloned it to my PC. I have also looked over the Wiki ...
markshancock's user avatar
  • 2,452
2 votes
1 answer
505 views

How to build my own Cura GUI? [closed]

I am trying to create my own Cura GUI. I am constantly getting the error: UM module not found. Do I need to see a UI file? I think I am wrong. I've installed ...
term's user avatar
  • 21
3 votes
1 answer
1k views

How to display images on DLP using HDMI for 3D printing?

I am working on a DLP based 3D printer. I already sliced my STL file to multiple layers. Each layer is saved as a SVG file. Because its an SVG file, I can always convert each layer to PNG/JPG file if ...
Zythyr's user avatar
  • 131
2 votes
0 answers
1k views

Stepper Motor Linear Acceleration Python (raspberry pi) [closed]

I am working on a Python code (below) that accelerates a stepper motor until it reaches a specific amount of steps. ...
LuukS's user avatar
  • 21