Giter VIP home page Giter VIP logo

Comments (5)

terjeio avatar terjeio commented on July 21, 2024

You have to get planner.c and stepper.c working by adding/substituting the needed code from (many) other files. Call plan_buffer_line() to queue motion. It will be a lot of work...

If you do not mind dragging in everything you can write a plugin for grblHAL that takes over control and calls mc_line() in motion_control.c to enqueue motion.

accelstepper is a Arduino library? If so the grblHAL codebase is not best suited as is optimized for 32 bit processors. If 8 bit support is required then IMO Grbl is a better choice. Or there might be other libraries available that is made for controlling multiple motors?

from core.

joonasstenvall avatar joonasstenvall commented on July 21, 2024

Accelsteppers coordinated stepper movements don't have acceleration. I'm under the impression that grblHAL uses interrupts? Where is that setuped?I'm using a teensy so I found some other files for it that setups some stuff.
Maybe I should look into the plugin line but I'm not too sure about that either...

from core.

terjeio avatar terjeio commented on July 21, 2024

I'm under the impression that grblHAL uses interrupts?

Yes.

Where is that setuped?

In the processor specific driver.c code.

from core.

joonasstenvall avatar joonasstenvall commented on July 21, 2024

Would you have a starting point on taking over the controlls from grbl with a plugin? Maybe I could have a while(true) in the plugin code or would that be a bad idea?

from core.

terjeio avatar terjeio commented on July 21, 2024

Would you have a starting point on taking over the controlls from grbl with a plugin?

Not really - depends on what you want to do. There are some templates available and a number of plugins that may give you some ideas.

Maybe I could have a while(true) in the plugin code or would that be a bad idea?

I think it should work as long as you are calling mc_line() to execute motions. It will block when the planner buffer is full. If you need input from the serial port for generation motion then it will be a tad more complicated.

from core.

Related Issues (20)

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.