Giter Site home page Giter Site logo

stonetronics / stonegcodesender Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 14 KB

A very basic gcode editing and sending tool, written in python3, using tkinter for a gui

Python 100.00%
python3 tkinter gcode serial cnc gcode-sender tkinter-python tkinter-gui

stonegcodesender's Introduction

stoneGcodeSender

A very basic gcode editing and sending tool, written in python3, using tkinter for a gui

tested on ubuntu 18, but 'should' run on all os

This is a gcode sender utility. As i suprisingly couldn't find a tool that just sends gcode files line by line over a serial port, i wrote this python script that helps with the process.

The script basically just takes a gcode file and sends it, but with fancy gui and gcode editing capabilities.

make sure to install the tkinter library for using this tool

A serial port for usage can be selected and opened. The gcode file that is to be sent can be opened, viewed and edited before sending A "ready" character can be specified. this is the character or string the machine sends when it is ready to accept input By pushing the send button, the gcode in the edit window will be sent to the machine and the output will be displayed in an output field.

There is also a gcode viewer script that displays the gcode in the specified file. (needs matplotlib to work).

feel free to edit

stonegcodesender's People

Contributors

stonetronics avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

yazici

stonegcodesender's Issues

Cannot connect to Arduino over serial

In my testing, the serial ports in the GUI are listed as a single list and there is no way to select one individually. If I select this one option I get the error in the terminal window:

(base) craigcoburn@Craigs-MacBook-Pro stoneGcodeSender % python gcodesender.py
['/dev/tty.Titanium', '/dev/tty.Bluetooth-Incoming-Port', '/dev/tty.usbmodem2101']
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/craigcoburn/opt/anaconda3/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: "/dev/tty.Titanium', '/dev/tty.Bluetooth-Incoming-Port', '/dev/tty.usbmodem210"

Here, I have uncommented the print statement that lists out the available COM ports.

Any recommended fixes for this?

Cheers, Craig

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.