I have a Raspberry Pi 5 running with your hat driving my mill and my router. It works great and your support information was very helpful. Linux and LinuxCNC can be very confusing but your input supports those who just want to "make chips".
I’m running into an issue. Followed all steps and Linuxcnc is running. However. The steppers won’t move (holding torque is there) I have checked and rechecked the wiring a million times. I’m using nema 23 steppers with the stepperonline dm542t and cl57t stepper drivers. What am I missing?
Sometimes the default limit switch settings might cause this if you don't have any limit switches installed. Try commenting out those settings in the HAL file.
Thanks for the quick response! I have commented the limit switches out. That solved the issue of the limit switch error when nothing was connected. Now I can move the machine in Linuxcnc. However, still the same issue with the motor. Holding torque is there. I can also measure that dir goes from 5v to 0v when switching directions. On pulse I can’t measure 5v. I only measure anywhere between 0,9-5.1mv. Assuming this might be the issue? I don’t have an oscilloscope to see if there is a pulse
The breakout board can sink more current than it can source. The stepper drivers that I use have optocouplers on their inputs. I needed to rewire my own machine to pull the driver opto inputs high and allow the breakout board to control the low side of the opto LED. Also, make sure you don't wire the opto LED backwards as that won't work either. I think you are getting close to getting it to work!
I’ve checked the data sheet of the dm542t drive and it’s the same as with your machine from what I can tell. I have wired all + terminals to the pc5v and wired all - wires to the pins. Pul- to p2, Dir- to p3 and Ena- to p14 as on the schematic on your website. To make things even more confusing for me, when I wire it up to a tmc2130 I had laying around and a nema 17 the motor holds it’s torque when I toggle machine power on. But then sometimes it loses torque or sometimes the motor jitters and doesn’t go any particular direction.
A handwheel is a trick. I ordered a few from AliExpress and the only way I can think of to get one to work on a Pi is to use one that has a USB interface. Those are typically made for Mach 3. The handwheel should show up in the OS as a serial port. The trouble is, a plugin needs to be written for LinuxCNC to query the handwheel like Mach 3 does. I have not gotten that to work. If you find anything on the internet that describes how to get that interface to work, please let me know! Most handwheels are a discrete interface with multiple wires. Those are typically easier to use with a USB or Ethernet based breakout board (not the parallel hat/5 axis breakout board). I would like one myself, so I am still looking for a simple USB solution for this, and I think whatever that solution is could work just about anywhere, not just the Pi.
@Byte2Bot Hi.I came across a project on Arduino Mega where the author has implemented 54 output inputs for LinuxCNS. and gave detailed explanations and instructions with examples such as MPG, matrix keyboard, galette switches, backlit buttons.All this on only one USB port. ruclips.net/channel/UCCTefZCkTUUp00Vs1iFE-Ngvideos
Wow, that is a powerful software tool! Thank you for pointing it out! I am looking into making a prototype of a rotary encoder now. Alex did a great job of documenting and explaining his work.
Perfect timing for me as I have 2 weeks off and time to work on my cnc project. Thanks for all the great work! Not all heroes wear capes!
I have a Raspberry Pi 5 running with your hat driving my mill and my router. It works great and your support information was very helpful. Linux and LinuxCNC can be very confusing but your input supports those who just want to "make chips".
I have Linuxcnc working on a RPI 4 as a test setup. Thanks for sharing.
Thanks, your blog will be helpful for my next build.
I’m running into an issue. Followed all steps and Linuxcnc is running. However. The steppers won’t move (holding torque is there) I have checked and rechecked the wiring a million times. I’m using nema 23 steppers with the stepperonline dm542t and cl57t stepper drivers. What am I missing?
Sometimes the default limit switch settings might cause this if you don't have any limit switches installed. Try commenting out those settings in the HAL file.
Thanks for the quick response! I have commented the limit switches out. That solved the issue of the limit switch error when nothing was connected. Now I can move the machine in Linuxcnc. However, still the same issue with the motor. Holding torque is there. I can also measure that dir goes from 5v to 0v when switching directions. On pulse I can’t measure 5v. I only measure anywhere between 0,9-5.1mv. Assuming this might be the issue? I don’t have an oscilloscope to see if there is a pulse
The breakout board can sink more current than it can source. The stepper drivers that I use have optocouplers on their inputs. I needed to rewire my own machine to pull the driver opto inputs high and allow the breakout board to control the low side of the opto LED. Also, make sure you don't wire the opto LED backwards as that won't work either. I think you are getting close to getting it to work!
I’ve checked the data sheet of the dm542t drive and it’s the same as with your machine from what I can tell. I have wired all + terminals to the pc5v and wired all - wires to the pins. Pul- to p2, Dir- to p3 and Ena- to p14 as on the schematic on your website. To make things even more confusing for me, when I wire it up to a tmc2130 I had laying around and a nema 17 the motor holds it’s torque when I toggle machine power on. But then sometimes it loses torque or sometimes the motor jitters and doesn’t go any particular direction.
Good video and well explained, but how do i wire up and implement a handwheel ?
A handwheel is a trick. I ordered a few from AliExpress and the only way I can think of to get one to work on a Pi is to use one that has a USB interface. Those are typically made for Mach 3. The handwheel should show up in the OS as a serial port. The trouble is, a plugin needs to be written for LinuxCNC to query the handwheel like Mach 3 does. I have not gotten that to work. If you find anything on the internet that describes how to get that interface to work, please let me know!
Most handwheels are a discrete interface with multiple wires. Those are typically easier to use with a USB or Ethernet based breakout board (not the parallel hat/5 axis breakout board).
I would like one myself, so I am still looking for a simple USB solution for this, and I think whatever that solution is could work just about anywhere, not just the Pi.
@@Byte2Bot i found this and i think it shooud also work with the pi5, but the video is in german ruclips.net/video/e2DjkzCq7R4/видео.html
@@Byte2Bot or the "analog" homemade version of the same guy ruclips.net/video/hkbkN2GcQ-0/видео.html
@Byte2Bot Hi.I came across a project on Arduino Mega where the author has implemented 54 output inputs for LinuxCNS.
and gave detailed explanations and instructions with examples such as MPG, matrix keyboard, galette switches, backlit buttons.All this on only one USB port. ruclips.net/channel/UCCTefZCkTUUp00Vs1iFE-Ngvideos
Wow, that is a powerful software tool! Thank you for pointing it out! I am looking into making a prototype of a rotary encoder now. Alex did a great job of documenting and explaining his work.
What img Debian bookwork????
@@filippiorkowski4445 Yes, Debian Bookworm v2.9.2 is the latest. Make sure you download the correct version for your Pi.