Skip to content

A Python script to stream g-code to the uArm Swift Pro

License

Notifications You must be signed in to change notification settings

raster/uArm-GCode-Streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

uArm GCode Streamer

This script sends a g-code file to the uArm Swift Pro.

You can use it instead of uArm Studio, though so far it's onyl been tested for the "Draw" function.

You'll need to prepare the g-code file by using uArm Studio's Draw function, which will generate the g-code file you need.

What this script allows you to do is modify the feedrate of the g-code file generated by uArm Studio so you can make drawings faster.

On macOS I typically copy the file that uArm Studio generates at:

/Users/{username}/uarm/Temp/files/gcode/tmp_pen.gcode

to the directory where I have uarm.py sitting, then modify it by increasing the feedrate (the parts of the g-code file with 'F' and a number after them). For instance, if it has F2.5 I might change it to F10.0 using a text editor.

I then run the following command in the terminal:

python3 uarm.py tmp.gcode /dev/tty.usbmodem1421

The /dev/tty.usbmodem1421 specifies the USB port. This will be different on different machines, and even more different on Windows or Linux.

Note that this script will attempt to kill the uArm Studio application, since it cannot use the serial port when uArm Studio is using it. (uArm Studio sometimes hangs onto that serial port even after you quit the application.)

I borrowed heavily from these two scripts found in the GRBL repository:

https://github.com/grbl/grbl/blob/master/doc/script/stream.py

https://github.com/grbl/grbl/blob/master/doc/script/simple_stream.py

You can read more about this here:

http://rasterweb.net/raster/2019/02/03/uarm-swift-pro-plotting/

Pete Prodoehl [email protected]

About

A Python script to stream g-code to the uArm Swift Pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages