CNC with grbl8 g-code-parser

Status
Not open for further replies.
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 :)
 
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.
 
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
 
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:
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?topic=469343.msg3213804#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.
 
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-motion-control-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.
 
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-motion-control-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.
 
Status
Not open for further replies.
Back
Top