- Posts: 5
- Thank you received: 0
LinuxCNC on Raspberry Pi 4
- RB211
- Offline
- New Member
-
Less
More
4 years 7 months ago #238566
by RB211
Replied by RB211 on topic LinuxCNC on Raspberry Pi 4
Hello, I am looking to run LinuxCNC on a pi4 with 4gb, and use software step gen with a USB to DB25 cable to a cheap BOB. It's for a very simple Taig lathe. I'll control the spindle through RS485 to the VFD through yet another USB cable. Am I asking for trouble?
Please Log in or Create an account to join the conversation.
- Elco
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 3
4 years 7 months ago #238574
by Elco
Replied by Elco on topic LinuxCNC on Raspberry Pi 4
Using a USB to parallel port adapter will not work, like it does not work for I86 based linuxcnc. The usb protocol does not provide a real-time connection to the individual DB25 I/O pins. It works for printers because you write a complete 7-bit character in one go, and printers buffer the input before they process it, making it much less dependent on timing.
With the RPi, you take the signals from the 40 pin connector on the board, provide optical isolation and adapt the I/O signals to what you need to drive steppers / servos and read home and limit signals. The electronics is not complicated, but requires some design and soldering work if you make it a DIY project. You could this way wire up the parallel port of a BOB, but you need in any case 3.3 to 5V signal adaption.
Linuxcnc on the RPi4 is very experimental, I have a test setup that does not work yet. This forum publishes some information on how to configure the RPi, but I have not yet seen a complete example (ie with both the required .ini and .hal files) published here to copy as a test.
Elco
With the RPi, you take the signals from the 40 pin connector on the board, provide optical isolation and adapt the I/O signals to what you need to drive steppers / servos and read home and limit signals. The electronics is not complicated, but requires some design and soldering work if you make it a DIY project. You could this way wire up the parallel port of a BOB, but you need in any case 3.3 to 5V signal adaption.
Linuxcnc on the RPi4 is very experimental, I have a test setup that does not work yet. This forum publishes some information on how to configure the RPi, but I have not yet seen a complete example (ie with both the required .ini and .hal files) published here to copy as a test.
Elco
Please Log in or Create an account to join the conversation.
- Aaroncnc
- Offline
- Elite Member
-
Less
More
- Posts: 204
- Thank you received: 45
4 years 7 months ago #238620
by Aaroncnc
Replied by Aaroncnc on topic LinuxCNC on Raspberry Pi 4
So there are a few options to use a RPI for cnc
First is the use the gpio header, there is a lack of documentation around this but its doable.
Second is to use a mesa ethernet card. This has the best documentation but come at a price of around 90$
store.mesanet.com/index.php?route=produc...rt=p.price&order=ASC
Third is a relatively new project. Remora.
This uses the spi output from the pi to drive a supported 3d printer main board in Realtime via SPI.
You can read about it here.
remora-docs.readthedocs.io/en/latest/
If you re just trying things out i would try and use the GPIO and some cheap level shifters.
www.amazon.com/SongHe-Channels-Converter...07YZTW2SM/ref=sr_1_4
First is the use the gpio header, there is a lack of documentation around this but its doable.
Second is to use a mesa ethernet card. This has the best documentation but come at a price of around 90$
store.mesanet.com/index.php?route=produc...rt=p.price&order=ASC
Third is a relatively new project. Remora.
This uses the spi output from the pi to drive a supported 3d printer main board in Realtime via SPI.
You can read about it here.
remora-docs.readthedocs.io/en/latest/
If you re just trying things out i would try and use the GPIO and some cheap level shifters.
www.amazon.com/SongHe-Channels-Converter...07YZTW2SM/ref=sr_1_4
Please Log in or Create an account to join the conversation.
- RB211
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
4 years 7 months ago #238985
by RB211
Replied by RB211 on topic LinuxCNC on Raspberry Pi 4
Thanks all, I ordered a Mesa 7i96 for use with my pi. If all else fails I suppose I can use a spare desktop that needs a video card. Still waiting for parts before a test can be done.
Please Log in or Create an account to join the conversation.
- TriCnC2022
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 1
4 years 5 months ago #243308
by TriCnC2022
Replied by TriCnC2022 on topic LinuxCNC on Raspberry Pi 4
I am having the same result. Have you gotten it to work yet?
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
4 years 5 months ago #243309
by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 4
Its a bit of a work in progress but there is a 64 bit Raspberry Pi image builder that has decent latency here:
forum.linuxcnc.org/9-installing-linuxcnc...nuxcnc-ethercat-xfce
The image built in this process is good so far.
I got VTK built last night for QTPYVCP
forum.linuxcnc.org/9-installing-linuxcnc...nuxcnc-ethercat-xfce
The image built in this process is good so far.
I got VTK built last night for QTPYVCP
Please Log in or Create an account to join the conversation.
Time to create page: 0.130 seconds