LinuxCNC at RPI4 with using IO Pins only ?

More
5 years 7 months ago #202458 by herbk
Hi,
Is it possible to use LinuxCNC at an RPI4 without a mesa card?
In other words: Can i use the IO Pins to connect the RPI4 to a BOB ( like it is possible at a PC using the parallel port ) ?

Sorry for the post at the wrong forum...

Please Log in to join the conversation.

More
5 years 7 months ago #202484 by PCW
Yes you can, there is a LinuxCNC GPIO driver for the RPI

Note that RPI GPIO pins are 3.3V only so any BOB used
must output only 3.3V max to the RPI , not 5V

Please Log in to join the conversation.

More
5 years 7 months ago #202693 by andypugh
I can understand why you might ask the question, as the hal_pi_gpio component does not appear to be mentioned in the docs.

There is a sample config which seems to be the nearest thing to documentation for it:

github.com/LinuxCNC/linuxcnc/blob/2.8/sr...hal_pi_gpio_demo.hal

Please Log in to join the conversation.

More
5 years 7 months ago #202985 by herbk
Thank you.

One more question: Is there still the problem with the 8GB Rpi4 ? - I have a 8GB and want to use it if possible...

Please Log in to join the conversation.

More
5 years 7 months ago #203014 by andypugh

herbk wrote: One more question: Is there still the problem with the 8GB Rpi4 ? - I have a 8GB and want to use it if possible...


I have no idea. I have reports of issues with every single Pi, and reports of success with them all too. So without buying myself an example of every possible Pi to test with I have little feel for what the true situation is.

Please Log in to join the conversation.

More
5 years 7 months ago #203365 by elovalvo

herbk wrote: Hi,
Is it possible to use LinuxCNC at an RPI4 without a mesa card?
In other words: Can i use the IO Pins to connect the RPI4 to a BOB ( like it is possible at a PC using the parallel port ) ?

Sorry for the post at the wrong forum...


One of my students modified a CNC3018 with the following scheme.

Attachment not found


A CNCShield has been used to support stepper drivers and to facilitate connections.

Attachment not found



He also used a joypad as a teach-pendant.

The related hal file is attached.

Attachment not found



The board was a Raspberry Pi 4 with 4 Gb

Please Log in to join the conversation.

More
5 years 7 months ago #203900 by Mike_Eitel
Thx elovalo
I was always thinking if this wouldn't be working... Eventually with tmc2209.
Have bought those part some while ago but never found time to play with it.
I think this could be a cheepo solution for some first diy small "machines".

Would be nice if there would be a solution to preset the tmc parameters via serial.
I guess this could even be done "offline" before starting lcnc.
When I hear how silent my marlin controls the steppers with the tmc's.. This solution might have its charm.
Mike

Please Log in to join the conversation.

More
5 years 7 months ago #203905 by andypugh
Years ago I made some PCBs to connect a Pi to a DB25 port, with level conversion:

photos.app.goo.gl/auwbTXH2wa81cAqy7

I actually found the unused PCBs whilst moving some junk earlier today.
Pretty much worthless now, they are for the original Pi Model B, with the shorter GPIO connector.

Please Log in to join the conversation.

More
5 years 7 months ago #203915 by PCW

Mike_Eitel wrote: Thx elovalo
I was always thinking if this wouldn't be working... Eventually with tmc2209.
Have bought those part some while ago but never found time to play with it.
I think this could be a cheepo solution for some first diy small "machines".

Would be nice if there would be a solution to preset the tmc parameters via serial.
I guess this could even be done "offline" before starting lcnc.
When I hear how silent my marlin controls the steppers with the tmc's.. This solution might have its charm.
Mike


Ideally the RPI would interface to the Trinamic chips over SPI so

1. No base thread would be needed (so the step rate is not limited by latency)
2. All chip setup could be done with hal parameters

Please Log in to join the conversation.

More
5 years 7 months ago #203924 by Mike_Eitel
I agree Peter, but on the other side I see the parameters as a one time shot. I see no need for recurrent cpu time in precious rt. Or maybe a comp that only runs once at startup.
Can't judge the spi part, just regarded a bit around Marlin and skr-pro bord the parameter settting hw side; read and write via one pin and I believe relatively slow serial.
m5c
Mike

Please Log in to join the conversation.

Time to create page: 3.190 seconds
Powered by Kunena Forum