Pybot Python 3D Printed Robotic Arm
Pybot Python 3D Printed Robotic Arm
by jjrobots
This 3D printed Pybot SCARA Robotic arm has been created using common and a ordable elements from the 3D
printed World (NEMA 17 motors, Linear bearings, timing belts...)
The idea was to create a reliable, fast, modi able and accurate Robotic Arm for everyone who wants to have a very
cool desktop robot and/or anyone willing to learn robotics and mechanics. The control APP has been created with
Python
This pyBot (SCARA type) Robotic Arm has been designed with seven conditioning factors in mind:
1. Making it "printable" with any 3D printer in the market no matter its capabilities or limitations
2. Use common elements of the MAKER / 3D printer World
3. Easy to set-up, OPEN and well documented.
Pybot: Python + 3D Printed Robotic Arm: Page 1
4. Python code controlled
5. USB+Wi controllable
6. Fun, versatile and easy to modify
The pyBot SCARA type robotic arm sweeps and angle of approx 315°quickly reaching any point inside that extent. This
is an advantage over other robotic arms with vertical elbow con guration (Delta and Polar types) as just one or two
simple motor action/s is required to move the arm. Once retracted, the robot is compact and its volume minimal
SCARA arms are good for vertical assembly operations, such as inserting pins in holes without binding or pick and place
objects to a certain location when you need speed and accuracy once reached the target. The joints are load points
that need robust bearings and high-torque motors or reductions to handle the loads when the arm extends.
They are suitable for complex movements that simulate a human arm with its elbow — reaching under something to
grab a part and place it on a conveyor, for example.
Arm´s covered angle. Due to the mechanical relationships between arm and forearm, a proper control of the forearm is
a must during the arm movement. The forearm can cover up to 280 °. While moving the forearm, the arm´s motor has to
be steady (holding itself in position) A regular servo (SG90, MG90 or SG92R) will work as wrist and will be mechanically
limited to a (approx) 160° angle. The control software has the capability to keep it straight during the movements (to a
certain point, limited by the physical construction of the servo)
The main frame: Created using 3 x8 mm stainless steel round bars that will work are rails. A perfect alignment of the 3
bars is mandatory. To help the base´s bars channels to keep the rails straight, a support triangle placed 2 cm over the
base with hold the rails rmly. That piece and the top triangle (light grey) will prevent the frame to vibrate when the Z-
platform is moving fast up and down.
Moving UP and DOWN
There is a stepper motor embedded in the robot´s base. That motor, rotating, will lift or low the Z-platform. The arm is
tted to this platform so if we lift the platform, we are lifting the arm too.
The motor´s shaft in connected to a threaded rod (2mm/rev) mounting a coupler. This element will do the job of
continuing the physical connection between motor and rod and reducing vibrations during any vertical movement.
But, how the threaded rod push or pull the Z-platform?There is a threaded nut tted tight in the platform, so every
TOP VIEW of the Z-platform. The motor1 making use of a pulley reduction (16 to 72)
The ARM element will be moved by a NEMA17 motor (motor1) transferring the shaft´s rotation to the component using a
gear reduction of 16 to 72. The motor´s shaft has a 16 teeth pulley, which transmits the movement to a 72 teeth gear
located on the Robot´s arm. Doing this, we are reducing the rotational speed 4,5 times + increasing the power delivered
4,5 times: We have to rotate the motor1 10° to get a 45° arm rotation
Simpli ed representation of the motor1 (green) -driving element- and the arm (red) -driven element-. This gear-belt
reduction allows to increase the arm´s power and, at the same time, the accuracy of the arm TOP VIEW; Transferring the
movement to the forearm from the motor2 using a 16 to 62 teeth and a 33 to 62 teeth reductions.
To drive the forearm, the robotic arm uses the same mechanism : reduction, in this case two reductions chained. 16 to
62 (x3,875) and 33 to 62 (x1,879), that means we are applying a reduction of speed of approx 7.28 times (3,875x 1,879)
and increasing the power the same amount. Keep in mind that reducing the rotational speed increases the accuracy of
the forearm reaching any target point.
A SCARA type robot, beside its advantages has an inherent problem: how to properly control the motors so you can
get good speed and precision drawing simple geometric gures achieving good repeatability. It is not a simple thing to
draw on a paper a straight like with a SCARA. A Cartesian robot (like a regular 3D printer or the iboardbot) is way easier
to control as you only need to spin its controlling motors shafts certain number of steps (you can add a reduction but
that will not change the way the robot moves). But a SCARA pivots around two points, the "shoulder" and the "elbow".
We have created a powerful yet simple algorithm of control. You can take a look at it already implement in Python here,
in the "HOW TO CONTROL THE SCARA Robotic Arm. CODE "
With a good motor control algorithm, even with the arm completely extended, the SCARA Robotic arm can achieve a 0.2
mm repeatability accuracy.
BEFORE STARTING: Most of this Robot elements have been "3D printed". The "o cial" KIT comes with PLA Ingeo 870
printed parts, much more durable and with higher resistance to impact than the regular PLA. Of course, you can
print the parts by yourself in ABS or PLA but keeping this in mind: You can break it if you apply too much force or tight
a screw more that you should. We will let you know, during this assembly guide, when you can tighten the screws as
much as you can or where you should just x a part to another not forcing it at all.
If you choose to print the parts by yourself: every lament (PLA, PLA+, ABS, PETG...) has its own set of "perfect printing"
parameters in order to achieve the awless 3D-printed parts, if you overheat the lament, the layer thickness will be
increased and the di erent part´s tolerances may be compromised. This should not be a problem but using a knife to
clean the parts a little bit may be mandatory.
During the design process, we have tested many 3D printers and a bunch of lament brands and if you print the parts
carefully, you will not nd problems at all.
We have uploaded a 3D model of the SCARA Robot Arm to Skecthfab as a visual reference. If you get lost or just want to
get a good idea of where everything goes, just check it out
Now, push the long linear bearing inside the ball bearing as shown above. You might need to use the
mallet in order to make the LM8LUU going through the circular bearing. The LM8LUU have to stick aprox
18mm out of the circular bearing.
Is the long linear bearing loose? Fix it wrapping adhesive tape around it
Use adhesive tape to increase the linear bearing diameter and insert it into the 6002. Just one layer will
do the trick
Place 2 timing belts as above and "close" the arm with ARM BOTTOM piece so the belts will get caught
inside. If you forget to do this now, you will have to "open" the arm again later.
This is how the arm looks by now.
screw a 15mm bolt and capture a 623zz ball bearing with a self-blocking nut on top.Check the ball
bearing can move freely after tightening the bolt.
Carefully insert the HUB through the 608zz ball bearing. Check for any burr on the top of the protruding
knob. It could make it hard to insert the hub. But FIRST, take a look to the photo below: you MUST pass
the timing belt around the HUB´s teeth before tting it.
Like this.
Use a 15mm bolt and screw it through the CAP to help the HUB´s knob get into the 608 ball bearing. The
bolt will pull up the HUB into place. Do it gently until the 3x 623 ball bearings are touching the top side of
the HUB. Watch this video, it shows how smooth everything should move.
You are almost there. Insert the upper top of the long LM8LUU bearing into the hole of the Z-BASE
platform. Again, be gentle but introduce completely the bearing to the very end.
This is where we are now. Two belts are correctly set (1 more remaining)
Now, pass the third timing belt around the arm so it will rest on the teeth of the ARM TOP gear as the
photo shows
Push the threaded rod´s nut into the central platform´s hole. It will hold rmly inside by itself.
Insert the stainless steel bars into the BASEPLATE sockets. Push them to the very end.
Now, run the MOTOR TRIANGLE structure along the steel bars (push the 3 corners at the same time, That
will make it easier). Push the motor into its socket in the BASEPLATE
Pybot: Python + 3D Printed Robotic Arm: Page 12
This is how it looks. The three steel bars are going up straight and the orange triangle support is holding
them rmly
Aluminium coupler: Use the 2mm Allen Key to capture the motor shaft inside.
TAKE YOUR TIME !: the linear bearings have tiny steel balls inside 4 inner channels. Those balls will keep
the bearings moving up and down smoothly. If you lose too many of the mentioned balls, the Z-BASE
will crank while moving vertically. Now it is time to insert the 3 vertical steel bars into the 3 linear
bearings, everything at the same time. So, carefully align the steel bars + threaded rod and gently
(gently!) push the Z-BASE down while you slowly turn the central threaded rod. Doing this, you will
control the process just rotating the central rod. If you nd resistance, stop, re-align and start over.
Watch this video for visual help
Almost there!: Set the motors as above and x them using 3x 6mm bolts for each one. DO NOT tighten
them completely, you will need to adjust their position soon.
Place the 16 teeth pulleys on the motors shafts. Notice the orientation of the pulleys. Do not completely
tighten the bolts. The motor on top will be the motor 2 in the Z-BASE platform, the other one, the motor 1
(see photo below)
You will need to re-adjust the pulleys high on their shafts later.
Pass the GT2 timing belts around the pulleys and push the motors back until the belts are tighten, then
x the motors with the bolts.
If everything went nicely, the belts will not touch the threaded rod.
Place the TOP TRIANGLE as above. This part will keep the threaded rod straight,
Another view of the TOP TRIANGLE fully inserted. Is your robot behaving like this?
Now, introduce the 2x nuts inside the ARM BOTTOM sockets and x this part with 2x 15mm bolts
inserted from the top face of the arm
Lets do the same with the FOREARM, Insert 2 nuts into the socket and use 2x 40mm bolts to capture it.
The 2x 40mm bolts already inserted in the HUB piece
This is how the SCARA looks so far.
Assembly guide: A complete step-by-step guide to create your own Robotic Arm
Arduino code: The code in charge of controlling the pyBot Robotic Arm. To be uploaded to the DEVIA
control board
CONTROL APP Python code
Control APP: User guide, links to Python code
pyBot 3D parts models(.iges le format)
pyBot Robotic Arm: Mechanical guide
pyBot Robotics Arm: Electronics guide
Robotic Arm Gripper
DEVIA Control Board
---------------------------------------------------------------------------
Follow us for project updates: Instructables/ Facebookor Twitter