yy502 / inkscape-laserpecker Goto Github PK
View Code? Open in Web Editor NEWAn Inkscape Gcode generator extension for LaserPecker.
An Inkscape Gcode generator extension for LaserPecker.
It took me a bit figure out where to install the Inkscape extension since I am using Flatpak and not the PPA. I'll submit a PR with the minor changes to the README files in hopes it will help others using Flatpak.
In the latest app for iOS and Android the folder Matarialgcode is missing.
Creating the folder manually does not work.
Hi, I downloaded and installed your plugin for Inkscape. I have created an SVG with the text I want to engrave in wood, but when I create the G-CODE and visualize it in NC, just engrave the outline.
I'm enclosing the SVG and the G-CODE if you can help me, thank you.
Tested on iOS 16 (also iPad OS 16).
Save gcode file on any cloud based volume accessible to the Files app. This can be on iCloud by default, although Files can be used to access other cloud storage services such as DropBox. From the Files app, copy the gcode file by long pressing the file, and selecting Copy. Navigate back to the root level of the Files app, and select the On My iPhone location. Paste the gcode file in LaserPecker/Matarialgcode folder in the On My iPhone location. The gcode file will now be available in G-code section of the Examples section in the LaserPecker app.
iv tried downloading all versions of inkscape to be used for the laserpecker 2 and tried adding the laserpecker files in the extension folder. but its not adding the extension for me. been trying different ways and follow step by step on the procedures listed on here but no success. if anyone can please help me out with what im doing wrong.
Hi,
I received my LP2 two weeks ago and wanted to try cutting 2mm wood.
I now found your great plugin and could already create a gcode, thank you. However, Im unable to cut the wood and I actually think that the app overwrites the cuttingparameters of the gcode, could that be?
I tried your cutting parameter test gcode, but everyline looks exactly the same.
I tried to just cut a square, and selected 200mm/min. In the app I choose 100%power and 20%depth, but even after 10repetitions, the wood isnt cut through. Probably ~1mm deep.
Do you have an idea what I'm doing wrong. Probably it has nothing to do with your plugin, but how I use the laser... but couldnt find any other related tipps/posts... sorry!
The extension is not installed for version 1.3, how to install for version > 1.3?
Can you please help.
File "laserpecker_l1_oversize.py", line 54
def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
^
SyntaxError: invalid syntax
Do you have a Good gcode file I can try.
Regards Ronnie
Hi there,
Every time I start the gcode the laser start and end immediately.
I've tried with power 50 with the same result.
Even in preview mode they don't show square, just point.
All sample gcore from laserpecker are working fine.
Samples attached.
engraving_test_p160-255,s500-800.txt
test50.txt
Hello, the speed setting in G-Code file will be ignored by Laserpecker. Pecker always travels with 3000mm/min and Laser Power stays at 1%. If for example travel speed 200mm/min is selected your code produces G1 F200, that will be ignored by my Laserpecker.
If i append ".000000" (G1 F200.000000) it works great.
Laser Pecker App is 3.45
Firmware of Laserpeckerpecker ist 1.02
Hi there, I traced a little picture and opened in inkscape. When trying to generate the g-code i get the following error message:
Traceback (most recent call last):
File "laserpecker.py", line 1470, in <module>
e.run()
File "C:\Users\croeer\Downloads\inkscape\share\inkscape\extensions\inkex\base.py", line 140, in run
self.save_raw(self.effect())
File "laserpecker.py", line 1451, in effect
self.orientation(self.layers[min(0, len(self.layers) - 1)])
File "laserpecker.py", line 1386, in orientation
doc_height = self.svg.unittouu(self.document.getroot().xpath('@height', namespaces=inkex.NSS)[0])
IndexError: list index out of range
Example file: toad.zip
I was able to fix it using a deprecated function call in laserpecker.py,
so i could generate the g-code, but maybe you can look into it:
doc_height = self.svg.unittouu(self.getDocumentHeight())
I'm also new to inkscape, so maybe I am doing something else wrong.
Hi!
Great extension - I'm using it for cutting out IR filters to the right shape. Using the slowest 70, and brightest 255 settings, I only need 6 passes just using the low power L1! (rather than around 15 with the app)
I've noticed something... my circular filters are a little wonky... about a1.5mm wiggle around the origin. Nothing bad for my filters, but may cause issues for others?
Windows 10. Reproducing the issue:
1 : I drew a 23mm x 23mm circle in Inkscape 1.2
2: Drop down menu: "Path" / "Object to Path".
3: Extensions: LaserPecker.
4: Enter 80 for speed, and 255 for power, and click "Apply".
The resulting cut out shape has a slight flat side around the perimeter of the circle, which caused me to try looking on the NCViewer page. It MIGHT be that my LaserPecker stepper motors are a bit loose, and the following observation is unrelated, but in case it is I've posted the results below:
This is what the shape looks like in the G-Code viewer. The circle looks a little faceted, but also includes what looks to be a steady increasing radius!
This Isn't how the IR filter looks! It's MUCH more subtle in the real cut out! Hence why I think my stepper motors may be dodgy.
Any feedback is welcome!
M05 S0
G90
;all units in mm
G21
;move fast
G1 F3000.0
;width:23.1 mm
;height:23.1 mm
G1 X11.56840 Y0.00000
;laser on
M03 S255
G4 P0
G1 F80.0
G2 X10.68780 Y-4.42710 I-11.5684 J-0.
G2 X8.18010 Y-8.18010 I-10.6878 J4.427
G2 X4.42700 Y-10.68780 I-8.1801 J8.1801
G2 X0.00000 Y-11.56840 I-4.427 J10.6878
G2 X-4.42710 Y-10.68780 I-0. J11.5684
G2 X-8.18010 Y-8.18010 I4.427 J10.6878
G2 X-10.68780 Y-4.42710 I8.1801 J8.1801
G2 X-11.56840 Y0.00000 I10.6878 J4.427
G2 X-10.68780 Y4.42700 I11.5684 J-0.
G2 X-8.18010 Y8.18010 I10.6878 J-4.427
G2 X-4.42710 Y10.68780 I8.1801 J-8.1801
G2 X0.00000 Y11.56840 I4.427 J-10.6878
G2 X4.42700 Y10.68780 I-0. J-11.5684
G2 X8.18010 Y8.18010 I-4.427 J-10.6878
G2 X10.68780 Y4.42700 I-8.1801 J-8.1801
G2 X11.56840 Y0.00000 I-10.6878 J-4.427
G1 X11.56840 Y0.00000
G4 P0
;laser off
M05 S0
;move fast
G1 F3000.0
;return to origin
G1 X0.0 Y0.0
every time I start the gcode the laser start and end immediately.
Thanks for the detailed documentation!
I just purchased a Laserpecker Pro, and would like to use this device to engrave serial numbers on a batch of items, and other stats specific to each item.
For this, I definitely think I can use your code or modify it slightly to automatically generate the gcode files from the SVGs / images that I generate.
However, I'm curious if its possible to get the generated gcode over to the device without using the Laserpecker Windows or OSX software?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.