GithubHelp home page GithubHelp logo

nc-sim's Introduction

nc-sim

This is a very simple G-Code intepreter and CNC driver.

The package is divided in 2 parts:

  • GUI G-Code inprepreter running on PC. It can understand G00, G01, G02, G03 and G17 commands.
  • A microcontroller firmware for driving stepper motors. It has versions for AVR8 (tested on Atmega8) and STM32. It can drive 3x L298 H-bridges in half-steps.

Communication is sone with UART and a very basic, single byte, protocol:

PC->uC
0b00xxxxxx - steps
0b00xxxxx1 X+
0b00xxxx1x Y+
0b00xxx1xx Z+
0b00xx1xxx X-
0b00x1xxxx Y-
0b001xxxxx Z-

0b1xxxxxxx - commands
0b101000xx - power setup, 0b10100001 - steppers up, 0b10100000 - steppers and DC motor up

0b11000000 - velocity setup, timer value in next byte

uC->PC
0b01111111 - echo from PC
0b1xxxxxxx - additional data

nc-sim's People

Contributors

kwahoo2 avatar

Stargazers

Kurt Kremitzki avatar

Watchers

 avatar

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.