Configuring 6 axis robot arm with lcnc

More
1 year 7 months ago #324355 by Wagon56
Hey, i have a question about configuring a 6axis robot arm with lcnc, ive built myself a robot arm and im trying to control it via a puma560 simulation config, ive seen a youtube short of someone doing exactly that but he has no documentation on how he did it, im new to lcnc so i dont really know where to start with configuring physical pins, for context im using a rpi5 and want to use gpio pins for step/dir, ive got some tmc 5160t drivers to work and i get motion from them i just dont know how i would assign physical gpio pins to the already existing config Below ive linked the short where a robot arm is controlled by the puma560 config, if you stop at the right time you can see the tab name:  youtube.com/shorts/js6OaVhUN2U?si=68d75rJqwbvCr9V0

Please Log in to join the conversation.

More
1 year 7 months ago #324555 by ContinenteCNC
You have a steep learning curve ahead.

Do you have the robot arm to test with?

If not, you should start with a 3 axis pen ploter to get things going. Then you move to genserkins kinematics.

linuxcnc.org/docs/html/man/man9/kins.9.h...trivial%20kinematics

Linux CNC has excellent documentation. I suggest you to get things started and comeback with a more specific problem.

Try a tutorial like this one: 


After learning about stepconf wizard, it will come handy to learn how to use hal, if you need to customize something down the road.

linuxcnc.org/docs/html/hal/basic-hal.html

Please Log in to join the conversation.

More
1 year 6 months ago #325412 by Wagon56
Hey, yeah its been an insane learning curve but im happy to say i figured it out, i have the robot arm pretty much working at the moment, got 6 tmc 5160 drivers connected to the PI5 and am using an arduino for SPI to configure the drivers (i wouldnt have enough pins for toolheads if i used the Pi's SPI interface). Right now all i need to figure out is the DH parameters of the arm itself and some scaling stuff but that shouldnt be too difficult, i had another question though, is it a good idea atall to run 6 stepper motors with step/dir controls using the pi5? im not sure if its powerful enough to do it consistently, i get movement on all the motors with no problem i just dont know how reliable thats gonna be in the long run, maybe running the tmc5160's in SPI mode would be easier if i were to let them do their own stepgen, that would be a whole other learning process too although it might be better

Please Log in to join the conversation.

More
1 year 6 months ago #325439 by ContinenteCNC
Congratulations on your results so far.

I have never tryied LinuxCNC in Raspberry Pi. But, based on my experience in PC based LCNC, I don't think you will ever have any reliability issues running it in step/dir. LinuxCNC is a hell of a reliable motion controller.

 

Please Log in to join the conversation.

More
1 year 6 months ago #326773 by 3404gerber
Hi,

I'm currently playing with TMC5160 on Linuxcnc in full SPI mode and am happy with the result. Just received a pcb to stack 6 of them on a Pi Hat: (well, on a Radxa zero 3E on the picture)

 

Attachment not found



You only use 5 pins from the PI, so plenty left for other stuff. I also added the possibility to connect two 24V end switches directly on the TMC's. And a clock signal generator is on the pcb, so the TMC's share a 16MHz clock, which means better sync and faster SPI communication.

Please Log in to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum