## FlexiPicker: Advancing to a New Level

Send article as PDF

#### Delta kinematics Robot:

by M. Zavatsky

##### When one talks about industrial robots, most of people imagine robotic arms, or articulated robots, which are doing painting, welding, moving something, etc. But there is another type of robots: so-called parallel delta robot, which was invented in the early 80’s in Switzerland by professor Reymond Clavel. Below the original technical drawing from U.S. Patent 4,976,582 is shown, and two real industrial delta robots, one from ABB, and one from Fanuc.

The delta robot consists of two platforms: the upper one (1) with three motors (3) mounted on it, and smaller one (8) with an end effector (9). The platforms are connected through three arms with parallelograms, the parallelograms restrain the orientation of the lower platform to be parallel to the working surface (table, conveyor belt and so on). The motors (3) set the position of the arms (4) and, thereby, the XYZ-position of the end effector, while the fourth motor (11) is used for rotation of the end effector. You can find more detailed description of delta robot design in the corresponding Wikipedia article.

The core advantage of delta robots is speed. When typical robot arm has to move not only payload, but also all servos in each joint, the only moving part of delta robot is its frame, which is usually made of lightweight composite materials. To get an evidence of delta robots outstanding abilities, take a look at the two videos below.

##### Problem Definition

If we want to build our own delta robot, we need to solve two problems. First, if we know the desired position of the end effector (for example, we want to catch pancake in the point with coordinates X,Y,Z), we need to determine the corresponding angles of each of three arms (joint angles) to set motors (and, thereby, the end effector) in proper position for picking. The process of such determining is known as inverse kinematics.

And, in the second place, if we know joint angles (for example, we’ve read the values of motor encoders), we need to determine the position of the end effector (e.g. to make some corrections of its current position). This is forward kinematics problem.

To be more formal, let’s look at the kinematic scheme of delta robot. The platforms are two equilateral triangles: the fixed one with motors is green, and the moving one with the end effector is pink. Joint angles are theta1, theta2 and theta3, and point E0 is the end effector position with coordinates (x0, y0, z0). To solve inverse kinematics problem we have to create function with E0 coordinates (x0, y0, z0) as parameters which returns (theta1, theta2, theta3). Forward kinematics functions gets (theta1, theta2, theta3) and returns (x0, y0, z0).

In the following two paragraphs will come the theoretical part of delta robots kinematics. Those who don’t like mathematics and trigonometry may jump right to the practical part: sample programs written in C language. So, let’s start from

##### Inverse Kinematics

First, let’s determine some key parameters of our robot’s geometry. Let’s designate the side of the fixed triangle as f, the side of the end effector triangle as e, the length of the upper joint as rf, and the length of the parallelogram joint as re. These are physical parameters which are determined by design of your robot. The reference frame will be choosen with the origin at the center of symmetry of the fixed triangle, as shown below, so z-coordinate of the end effector will always be negative.

Because of robot’s design joint F1J1 (see fig. below) can only rotate in YZ plane, forming circle with center in point F1 and radius rf. As opposed to F1, J1 and E1 are so-called universal joints, which means that E1J1 can rotate freely relatively to E1, forming sphere with center in point E1 and radius re.

Intersection of this sphere and YZ plane is a circle with center in point E’1 and radius E’1J1, where E’1 is the projection of the point E1 on YZ plane. The point J1 can be found now as intersection of to circles of known radius with centers in E’1 and F1 (we should choose only one intersection point with smaller Y-coordinate). And if we know J1, we can calculate theta1 angle.

Below you can find corresponding equations and the YZ plane view:

$[E(x_0,y_0,z_0)]$

$[EE_1 = frac{e}{2}tan30 = frac{e}{sqrt[2]{3}}]$

E’_1(0,y_0-frac{e}{sqrt[2]{3}},z_0)]’ />

E’_1J_1 = sqrt{E_1J_1^2 – E_1E’_1^2} = sqrt{r_e^2 – x_0^2}]’ style=’vertical-align:1%’ class=’tex’ alt='[E_1E’_1 = x_0 => E’_1J_1 = sqrt{E_1J_1^2 – E_1E’_1^2} = sqrt{r_e^2 – x_0^2}]’ />

$[f_1(0,-frac{f}{2sqrt{3}},0)]$

$[left{frac{(y_n-y_F_1)^2 + (z_j_1 - z_F_1)^2= r_f^2} {(y_j_1-y_E_1)^2 + (z_n - z_F_1)^2=$

$[left{frac{(y_n + frac{f}{2sqrt3})^2 + Z_J_1^2 =$

$J_1(0,y_J_1,z_n)]$

$[theta_1 = arctanleft(frac{z_J_1}{y_F_1 - Y_n}right)]$

Such algebraic simplicity follows from good choice of reference frame: joint F1J1 moving in YZ plane only, so we cat completely omit X coordinate. To take this advantage for the remaining angles theta2 and theta3, we should use the symmetry of delta robot. First, let’s rotate coordinate system in XY plane around Z-axis through angle of 120 degrees counter-clockwise, as it is shown below.

We’ve got a new reference frame X’Y’Z’, and it this frame we can find angle theta2 using the same algorithm that we used to find theta1. The only change is that we need to determine new coordinates x’0 and y’0 for the point E0, which can be easily done using corresponding rotation matrix. To find angle theta3 we have to rotate reference frame clockwise. This idea is used in the coded example below: I have one function which calculates angle theta for YZ plane only, and call this function three times for each angle and each reference frame.

##### Forward Kinematics

Now the three joint angles theta1, theta2 and theta3 are given, and we need to find the coordinates (x0, y0, z0) of end effector point E0.

As we know angles theta, we can easily find coordinates of points J1, J2 and J3 (see fig. below). Joints J1E1, J2E2 and J3E3 can freely rotate around points J1, J2 and J3 respectively, forming three spheres with radius re.

Now let’s do the following: move the centers of the spheres from points J1, J2 and J3 to the points J’1, J’2 and J’3 using transition vectors E1E0, E2E0 and E3E0 respectively. After this transition all three spheres will intersect in one point: E0, as it is shown in fig. below:

So, to find coordinates (x0, y0, z0) of point E0, we need to solve set of three equations like (x-xj)^2+(y-yj)^2+(z-zj)^2 = re^2, where coordinates of sphere centers (xj, yj, zj) and radius re are known.

First, let’s find coordinates of points J’1, J’2, J’3:

In the following equations I’ll designate coordinates of points J1, J2, J3 as (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3). Please note that x0=0. Here are equations of three spheres:

Finally, we need to solve this quadric equation and find z0 (we should choose the smallest negative equation root), and then calculate x0 and y0 from eq. (7) and (8).

##### Sample Programs

The following code is written in C, all variable names correspond to designations I’ve used above. Angles theta1, theta2 and theta3 are in degrees. You can freely use this code in your applications.

##### Acknowledgements

All core ideas about delta robot kinematics are taken from the article of Prof. Paul Zsombor-Murray Descriptive Geometric Kinematic Analysis of Clavel’s “Delta” Robot. It’s a great publication, but it requires a very strong mathematical background for understanding.

##### Sample Build

I’ve used the programs listed above in my model of delta robot made of standard Lego parts. It uses Lego Mindstorms NXT as “brain”, and a program written in RobotC. Below the robot is shown in action, so you can be sure that this programs realy work

Previous Post

#### Christmas really has arrived early this year. ...

Christmas really has arrived early this year. Today I had a visit from the Postman with a parcel from Rotacaster Pty. Ltd in hand. Inside the parcel was a new ... Read more

Next Post

#### Should I stay (safe) or should I go?

Instinctively knowing how to avert danger and stay safe—or not—may depend on a brain area known as the Amygdala in both humans and animals. Researchers used the LEGO Mindstorms Robogator ... Read more

Short URL: http://tinyurl.com/je5d7mb

This site uses Akismet to reduce spam. Learn how your comment data is processed.