Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: CNC with grbl8 g-code-parser

  1. #1

    CNC with grbl8 g-code-parser

    Hi folks,

    Anyone tried to us the grbl8 g-code-parser on a Teensy 3.1? I have a bought a small laser engraver on E-bay that's currently controlled by an Arduino Nano board and I'd like to see if it could use a Teensy instead. Might require some slight hardware mods but should be doable.

    The software is available on GitHub; https://github.com/grbl/grbl

    I'm assuming I'll have to tweak one of the included "cpu_map" files: "cpu_map_atmega328p" or "cpu_map_atmega2560" and then compile the grblUpload sketch in the Arduino IDE.

    Any thoughts?

    Cheers

  2. #2
    Junior Member
    Join Date
    Apr 2015
    Posts
    10
    Did you ever get any feedback on this? I know GRBL itself is very Arduino focused but it has been ported to other chips. You would need to address any hardware specific code.

  3. #3
    Quote Originally Posted by wizard69 View Post
    Did you ever get any feedback on this? I know GRBL itself is very Arduino focused but it has been ported to other chips. You would need to address any hardware specific code.
    Hi,

    No feedback received so I'm guessing that it's not a project that others have tried to solve before me.

    Cheers

  4. #4
    Senior Member
    Join Date
    Nov 2015
    Location
    Wales
    Posts
    579
    P̶o̶r̶t̶i̶n̶g̶ ̶G̶R̶B̶L̶ ̶w̶o̶u̶l̶d̶ ̶b̶e̶ ̶n̶o̶ ̶e̶a̶s̶y̶ ̶t̶a̶s̶k̶.̶ ̶I̶t̶ ̶u̶s̶e̶s̶ ̶a̶ ̶l̶o̶t̶ ̶o̶f̶ ̶d̶i̶r̶e̶c̶t̶ ̶r̶e̶g̶i̶s̶t̶e̶r̶ ̶a̶c̶c̶e̶s̶s̶ ̶o̶f̶ ̶A̶t̶m̶e̶l̶'̶s̶ ̶A̶t̶M̶e̶g̶a̶s̶ ̶a̶n̶d̶ ̶i̶s̶ ̶v̶e̶r̶y̶ ̶c̶a̶r̶e̶f̶u̶l̶l̶y̶ ̶t̶a̶i̶l̶o̶r̶e̶d̶ ̶t̶o̶ ̶p̶r̶o̶v̶i̶d̶e̶ ̶p̶r̶e̶c̶i̶s̶e̶ ̶t̶i̶m̶i̶n̶g̶

    Looking at this it looks like they use the built in timers. Not 'NOP' delays like I thought they did. This could be replaced with intervalTimer reasonably easily
    Last edited by Xenoamor; 06-15-2016 at 12:09 PM.

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,519
    There's a lot of AVR specific code in GRBL.

  6. #6
    Junior Member
    Join Date
    Apr 2017
    Posts
    5
    Yes, it appears that they have used every trick to make GRBL to run fast. I find the code a little inscrutable as well.

    I wrote a single axis stepper utility for the Arduino, that I suspect would run with little of any modification on the Teensy, if the Arduino language is implimented fairly closely.
    http://forum.arduino.cc/index.php?to...804#msg3213804

    I am trying to learn how to implement Bresenham’s Line Generation algorithms, but it's going to take a while.

    is there anything in the Teensy 3.5 that would make it unsuitable for a CNC interpreter?
    I am likely to get a Teensy 3.5.

  7. #7
    Junior Member
    Join Date
    Apr 2020
    Posts
    1
    I admit that I have never tried to the grbl8 g-code-parser on a Teensy 3.1. So I am reading this topic with great interest. When it comes to the CNC motion control software, I recommend https://en.cs-lab.eu/shop-cat/cnc-mo...trol-software/ . The best CNC control software means precision, quickness, convenience, optimisation and effectiveness of your daily work as well as extended lifespan of used machines.

  8. #8
    Senior Member
    Join Date
    Mar 2016
    Posts
    202
    Quote Originally Posted by oquno View Post
    I admit that I have never tried to the grbl8 g-code-parser on a Teensy 3.1. So I am reading this topic with great interest. When it comes to the CNC motion control software, I recommend https://en.cs-lab.eu/shop-cat/cnc-mo...trol-software/ . The best CNC control software means precision, quickness, convenience, optimisation and effectiveness of your daily work as well as extended lifespan of used machines.
    Resurrecting an old thread. Seems silly to run the old 8-bit GRBL with all it's limitations on a 32 bit ARM. Suggest you look at - grblHAL. It's a 32 bit version of GRBL and is available on a number of processors including the iMXRT1062 - aka Teensy 4.x. It's solid and free. Some discussion here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •