Teensy based CNC board
forum.pjrc.com/threads/61622-Teensy-4-1-Based-CNC-Controller
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
www.pjrc.com/store/teensy41.html
It uses a i.MX RT1060 ARM SOC.
www.pjrc.com/teensy/IMXRT1060CEC_rev0_1.pdf
It is an IO board for the Teensy 4.1
Since it has no GPU you could use it along with a PC, Rpi, Opi etc to generate steps or with closed loop to handle the IO but NOT the the GUI.
See forum.linuxcnc.org/18-computer/42276-rem...rocontroller-via-spi
or
forum.linuxcnc.org/18-computer/42414-lin...ethernet-using-esp32
Please Log in or Create an account to join the conversation.
and I see scope shots of 181Khz step rates.
NB: steppers won't do 181000 steps per second
I am trying to finish a 3axis mill with opi+2e and tmc2130 drivers.
I think ESP32 stepgen will be next to look at but this teensy may take off.
I am afraid that opi wont be available long term,
and even the teensy 4.1 just didnrt get popular,
so the esp32 seems to have the longevity medal
if the port of the stepgen works well.
BTW cooling is very critical on drivers and cpus.
Also the texas instrument 3-5v coverters are not as good as the simple 4 channel fet level shifters.
btw2: seb's teensy work and the 4.1 gets you a LOT of LCNC i/o.
There's a load of i/o that are just solder pads on the teensy4.1 ,
That may not be a benefit to me as it took 1/2 hr for me to bridge the SPI pads on a new BTT tmc2130 this am.
my 2c tomp
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
always power up the tnc2130s first, before lcnc
always power down the tmc2130s last, after lcnc
that makes for some complications but its an easy litany to remember
and no, I have not read all the lcnc docs,
i'm always finding out new stuff,
and always going to them for a clue.
Not only have i not read them all,
I do not understand them all.
Like I was just wondering
_why_ the skip slash button is not available during a program run
and my google foo and forum searches did not get me an answer.
or
if i add a (debug,#1) to a _running_ loop program,
why do i see it go into effect in the running program?
Like, I see "10.0000 (exclamation point icon) (kill msg X icon)"
Before _I_ load the new program.
Docs are a good thing
Forums and email lists are good too.
But as slow as I am,
I'd never get anything done if all my wonderings were typed up and followed.
thanks to all the devs and doc-ers tho,
thank you, thank you, thank you (E.P,)
tomp
Please Log in or Create an account to join the conversation.
forum.linuxcnc.org/24-hal-components/39813-teensy-4-1-linuxcnc
I wrote realtime HAL component for communication with Teensy from LinuxCNC. Run from LinuxCNC, I am able to achieve 60us roundtrips with 40byte payload. I have written a simple HAL example for a simple servo loop, and have tested the servo loop on a single axis kinematic stage, equipped with high-precision encoder and a DC motor run by a small H-bridge driver.
I did some serious testing at 1ms servo-threads over several hours with no problems whatsoever.
I was also able to run servo-thread with 150us (6600Hz) without any problems, but I haven't spent much time testing it and don't know how stable it really is at this speeds.
Please Log in or Create an account to join the conversation.
That Thread is dead and the guy never shared anything. I've been looking into grblHAL and personally I think it would be well worth it for one of the LinuxCNC programming gurus to port it into a Mesa hm2 style implementation. From what I understand, the gcode interpreter is already broken off the hardware drivers, which is what separates it from grbl. That was done so that supporting different MCUs is easy. There's alot more than just the NXP from a Teensy supported in there.More on the Teensy4.1 just no git repo
forum.linuxcnc.org/24-hal-components/39813-teensy-4-1-linuxcncI wrote realtime HAL component for communication with Teensy from LinuxCNC. Run from LinuxCNC, I am able to achieve 60us roundtrips with 40byte payload. I have written a simple HAL example for a simple servo loop, and have tested the servo loop on a single axis kinematic stage, equipped with high-precision encoder and a DC motor run by a small H-bridge driver.
I did some serious testing at 1ms servo-threads over several hours with no problems whatsoever.
I was also able to run servo-thread with 150us (6600Hz) without any problems, but I haven't spent much time testing it and don't know how stable it really is at this speeds.
I started a discussion about this on the grblHAL github page. Aparrently there's mainly only one guy doing the programming so he doesn't have time for it but he's pretty accessible. I'd love to do a Teensy 4.1 IO board with an ethernet interface, but I also just pondered the idea of using a RPI CM4 with a Teensy 4.1 over SPI on the same PCB, that'd be a pretty awesome little all in one controller. Unfortunately I don't do any sort of programming
How do we beg the LinuxCNC programming wizards to take this on?
Please Log in or Create an account to join the conversation.
www.forum.linuxcnc.org/18-computer/39037...-orange-pi-allwincnc
www.forum.linuxcnc.org/18-computer/42276...rocontroller-via-spi
www.forum.linuxcnc.org/18-computer/42414...ethernet-using-esp32
www.forum.linuxcnc.org/27-driver-boards/44422-colorcnc
Someone will probably get around to the Teensy 4.1 sooner or later.
Please Log in or Create an account to join the conversation.
Personally I'm only interested in the Teensy 4.x so maybe I'll hijack that remora thread and see what he says there. The standalone projects always die and fall off so I'm not holding my breath on that.
Please Log in or Create an account to join the conversation.