GithubHelp home page GithubHelp logo

huohuoya / grbl-sim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grbl/grbl-sim

0.0 1.0 0.0 66 KB

Compiles Grbl into an executable for your computer.

License: GNU General Public License v3.0

nesC 14.31% Makefile 3.65% C 78.99% C++ 1.52% Gnuplot 1.08% Shell 0.34% Batchfile 0.11%

grbl-sim's Introduction

GRBL SIM

: by Jens Geisler, Adam Shelly

This repository contains an experimental Grbl simulator that compiles the main Grbl source code into a wrapped executable for use on a computer. No Arduino required. When the executable is run, the user should be able to interact with the Grbl simulator as if connected to an Arduino with Grbl.

WARNING: Grbl Sim is under heavy development. So many things may not work, or respond in ways unexpected. At the moment, this code is a proof-of-concept.

What can you do with Grbl Sim?

  • Simply check out how Grbl works without needing an Arduino.

  • Visualize a g-code program by having the simulator parse and execute to a GUI. Fluctuations in feed rates by the acceleration planner can be viewed as well.

  • A powerful debugging tool for development.

  • Each of the AVR functions are replaced with dummy functions, like the stepper ISR. These could be written to do whatever you need. For example, output simulated step pulses over time and examine its performance.

  • On Linux, hook it to a fake serial port (/dev/ttyFAKE) and use it to test your Grbl interface software:

  • > socat PTY,raw,link=/dev/ttyFAKE,echo=0 "EXEC:'./grbl_sim.exe -n -s step.out -b block.out',pty,raw,echo=0"

Realtime modifications:

Now simulates Atmel hardware in separate thread. Runs in aproximate realtime. Emphasis on * Approximate *. Work is underway to speed it up.

How do you compile Grbl Sim?

  • Clone this repository into the directory containing the Grbl source code. (should be <repo>/grbl).

  • Edit the Grbl-Sim Makefile to select the correct PLATFORM = line. LINUX and WINDOWS are currently supported.

  • (You may need to make other modifications to the Makefile and some environment variables for your particular machine. Please share any modifications you find)

  • Run > make new to compile Grbl Sim!

Validator

NEW

Run gvalidate.exe GCODE_FILE to validate that grbl will parse your GCODE with no errors.

grbl-sim's People

Contributors

alpharesearch avatar chamnit avatar tmpvar avatar fsantini avatar

Watchers

James Cloos 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.