orx icon indicating copy to clipboard operation
orx copied to clipboard

[orx-g-code] Add g-code tools for pen plotting

Open adriandieter opened this issue 2 years ago • 7 comments

An extension to generate g-code from compositions, best used in a live coding environment. The intended use is for a pen plotter, but code to drive a laser cutter or other CNC machines could be generated as well. I have used the foundation of this for a while now and tried to wrap everything in an more general and easy to use interface. See the README and demo files on how to use.

Feedback is appreciated ✨

adriandieter avatar Dec 30 '22 17:12 adriandieter

Oh nice!! :-) I will take a look in the next days. I do have an Axidraw. Do you know if it's compatible? With what kind of devices have you tried your orx?

hamoid avatar Dec 30 '22 18:12 hamoid

From a quick search it looks like the Axidraw does not speak g-code at all natively 🤷‍♂️ I am using a GkDraw only tested with that. It uses grbl firmware. So I guess any similar Axidraw knockoff plotter would be compatible.

However the implementation should allow for customization to any g-code dialect or device. So a 3d printer fitted with a pen holder would work as well 🤔

adriandieter avatar Dec 30 '22 20:12 adriandieter

Thanks @Vechro for the suggestions on the build files! That's where I was a bit lost and didn't know what to follow/what is best practice. Also updated the test files.

I'd like to keep this as a draft for a bit and continue using it with that interface before merging. Just to prevent any bigger changes once merged. Do you think the design of the Plot extension matches other extensions or see anything that could be improved? I am not too happy with how the configuration/setup works.

adriandieter avatar Jan 27 '23 14:01 adriandieter

Maybe @edwinRNDR can answer that. I can mostly offer advice on the build scripts.

Vechro avatar Jan 27 '23 15:01 Vechro

I did continue using it a bit since I opened the PR and didn't see any issues with the API so far. Think this is ready to be merged 🤔

adriandieter avatar Nov 12 '23 21:11 adriandieter

Sorry for the long latency! I'm writing a post in the guide about pen plotters and it motivated me to look into this. It would be good to offer both SVG and g-code.

hamoid avatar Jan 23 '24 17:01 hamoid

Do you think the design of the Plot extension matches other extensions or see anything that could be improved? I am not too happy with how the configuration/setup works.

Maybe @edwinRNDR has now more time to say something about this?

hamoid avatar Jan 23 '24 17:01 hamoid