Mitsubishi RV-6SDL Robot

More
08 Jan 2020 09:15 #154294 by dm17ry
your encoders will work fine with 2-wire connection
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
16 Dec 2020 07:03 - 16 Dec 2020 07:04 #192105 by Aciera
So after weighing my options I finally moved forward with this robot and it's broken controller. Since dm17ry is an expert on mitsubishi drives and motors and has some pretty awesome insights in the technology used I was able to get the servos running with some used mitsubishi J4 drives.

The original controller:



Had some PCBs made up to interface the drives with the original connectors:



And in action:

Attachments:
Last edit: 16 Dec 2020 07:04 by Aciera.
The following user(s) said Thank You: thefabricator03

Please Log in or Create an account to join the conversation.

More
16 Dec 2020 07:24 - 16 Dec 2020 08:26 #192106 by Aciera
The whole affair now looks like this:



After dm17ry kindly merged his branch with the switchkins branch I was able to bring in my config with the vismach simulation and the genserkins setup for my robot arm (forum.linuxcnc.org/10-advanced-configura...nfig-with-simulation).



The driver passes the joints position from the absolute encoders (17bit, 131072 pulses per motor revolution) through to LinuxCNC and automatically sets the axis as homed if the encoder position is valid. This solves the issue of having to rehome the arm every time the system is started, which would have been a major headache.

Attachments:
Last edit: 16 Dec 2020 08:26 by Aciera. Reason: change pic
The following user(s) said Thank You: chimeno, tommylight, Clive S, dm17ry, thefabricator03

Please Log in or Create an account to join the conversation.

More
21 Dec 2020 07:48 - 21 Dec 2020 07:49 #192611 by Aciera
Attachments:
Last edit: 21 Dec 2020 07:49 by Aciera.
The following user(s) said Thank You: chimeno, tommylight, thefabricator03

Please Log in or Create an account to join the conversation.

More
22 Dec 2020 10:47 #192801 by Clive S
Are you aware of this and is it useful

The following user(s) said Thank You: thefabricator03, Aciera

Please Log in or Create an account to join the conversation.

More
22 Dec 2020 14:25 - 22 Dec 2020 14:51 #192817 by Aciera
Replied by Aciera on topic Mitsubishi RV-6SDL Robot
@Clive
Thanks for the video.
I was aware that Machinekit is capable to interface with ROS and I have worked a bit with the ROS framework as well but I haven't seen the tormach GUI and the conversational programming they use. The programming is a lot more like the commercial controls with the waypoints as a list and the move commands being pointed to the waypoint numbers. From what I have seen it's not vastly more capable than what I have here using traditional Linuxcnc and mostly I'd like to know if it can do moves in Tool coordinates. Maybe they can but it only shows Joint and World moves.
What is of course much more capable is the visualization in ROS and also collision control in simulation as it actually uses STL's to check for interferences. So you can simulate it running with a model of the actual gripper and a model of the surroundings ie. machine housings and the parts and so on. Being able to drag the robot in the screen looks cool but I don't find that to be terribly useful I think that would be done by jogging the actual robot in the real environment.
Also it would not be using the kinematics like "genserkins" that's built into linuxcnc but use the ROS kinematic library.
Mine works well with linear moves in Tool coordinates but rotations don't work.
Last edit: 22 Dec 2020 14:51 by Aciera.
The following user(s) said Thank You: thefabricator03

Please Log in or Create an account to join the conversation.

More
22 Dec 2020 15:40 - 22 Dec 2020 16:00 #192821 by Aciera
Replied by Aciera on topic Mitsubishi RV-6SDL Robot
Made a new video to show World - vs Tool-coordinates:

user-images.githubusercontent.com/460672...e1a-eaa703d26b18.mp4




[edit]

This is the GCODE that is running in the video:


Warning: Spoiler!


[edit2]
And here is the python remap for the "G91.2" command used in the program. I'm a clumsy programmer so it's probably a mess to somebody who actually know what he's doing and also likely why the rotations don't work properly

File Attachment:

File Name: remap-1.py
File Size:9 KB


[edit3]
Note: I don't claim to have come up with the python script all by myself. I usually shamelessly copy/paste and modify what I can find on the net. So if anybody recognizes parts of it please leave a comment. IIRC I heavily leaned on work by Rudy du Preez.
Attachments:
Last edit: 22 Dec 2020 16:00 by Aciera.
The following user(s) said Thank You: chimeno, tommylight, thefabricator03

Please Log in or Create an account to join the conversation.

More
26 Dec 2020 10:49 - 26 Dec 2020 10:49 #193216 by Aciera
Replied by Aciera on topic Mitsubishi RV-6SDL Robot
A little update:

I found a solution for mounting the DELL Optiplex and Dmitrys PCI board connected to the miniPCIe through an adapter. I had some trouble getting the PCI adapter recognized but it was all resolved after a BIOS reset.
The idea is to be able to fit everything into a 600x400x300mm metal enclosure.



I had a bit of a setback as I crashed the 4th joint into it's limits while trying out a new version of my python script. It still works but it clearly has taken a hit as it now needs a lot more torque to jog and it sounds a bit rough when moving it at higher velocities. So this led me to reconsider my approach and while the arm didn't cost me that much I don't want to wreck it by doing something that could be prevented.
While the soft limits were working fairly reliably before the motion planner clearly missed to prevent the crash that came after the A angle value switched from positive to negative value which led to the forearm twist at maximum speed.
I decided that before running code on the real arm I need to run it in a simulation.
Attachments:
Last edit: 26 Dec 2020 10:49 by Aciera.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
27 Dec 2020 08:31 #193276 by dm17ry
Replied by dm17ry on topic Mitsubishi RV-6SDL Robot
ouch! but why didn't the joint limit prevented the crash? too close to the mechanical stop and didn't have time to decelerate or..?

Please Log in or Create an account to join the conversation.

More
27 Dec 2020 09:52 #193278 by Aciera
Replied by Aciera on topic Mitsubishi RV-6SDL Robot
Not really sure as to why the joint limit didn't prevent it. But the motion was fairly instantaneous so I think there was just no time. The motion planner certainly didn't prevent the execution of the command.
One thing that I find quite tricky is to set the maximum accellerations and velocities correctly for cartesian world mode. Sometimes linear moves are quite slow but when only angular moves ABC are involved everything happens _really_ fast. May also have something to do with the fact that for LCNC XYZ are linear and ABC are angular no matter what you declare in the INI.
In any case I clearly had my settings too high.
I'm trying to merge the nyx-s_kins-branch with the dryrun-branch to be able to simulate before running code but I haven't succeeded yet.
github.com/LinuxCNC/linuxcnc/tree/dgarr/dryrun

Please Log in or Create an account to join the conversation.

Time to create page: 0.259 seconds
Powered by Kunena Forum