| Phase | What to settle | Planning use |
|---|---|---|
| Planning | Four servos: base, two arm joints and gripper | Start with these four channels and add joints only after they move cleanly. |
| Power | MG996R operating range 4.8–6.6 V; stall current listed at 1400 mA | Feed the servos from a separate external 5V supply, sized for stall rather than idle. |
| Control and motion | Potentiometers first, inverse kinematics second | Prove each joint by hand before asking software to compute angles. |
Figures come from the Lifehacker meArm build and an MG996R product listing.
An Arduino robotic arm works best with four servos, a separate external 5V supply for them, and potentiometer control first. Add inverse kinematics once every joint moves cleanly on its own.
This build sits alongside the other arduino robotics projects on the site, but it differs from a single-servo demo. It has a servo power budget and a two-link inverse kinematics routine, and it works through them in the order you would build them.
Planning: joints and servo count
A four-servo arm is the sensible starting point. Lifehacker’s meArm-based kit uses one servo in the base, two on either side of the arm, and one in the gripper. That layout answers the question of how many servos you need: one per joint you want to move, and the gripper counts as a joint. The VXB 4-DOF claw kit follows the same count with four SG90 servos.
Choosing servo sizes
Joints that lift the rest of the arm carry the most load, so the shoulder is where a stronger servo such as the MG996R pays off. Lighter joints and the gripper do not need the same torque. The SG90 kit above shows that a light, small arm can be built entirely from small servos. Decide this before buying, because the larger servos drive the size of your power supply in the next phase.

The controller
An Arduino Uno is enough for four servos. If you use a kit-style sketch, set the board in the Arduino IDE to Arduino UNO R3, the ATMEGA328P-based board that kit documentation names.
Power: building the servo budget
No, an Arduino Uno should not power MG996R servos directly in a multi-joint arm. The MG996R listing gives a stall current of 1400 mA for a single servo, without stating the test voltage, and builders on the Arduino forum point out that kits make it simple to have a separate power supply for the servos. Treat the external 5V supply as part of the arm, not an optional upgrade.

What the MG996R listing says
| Parameter | Listed value | Planning use |
|---|---|---|
| Operating voltage | 4.8–6.6 V | A 5V supply sits inside the range; check the voltage at the servo, not at the supply. |
| Stall torque | 9.4 kg/cm at 4.8 V; 11 kg/cm at 6.0 V | Torque rises with voltage, but stall is a limit, not a working load. |
| Speed | 0.19 s/60° at 4.8 V; 0.15 s/60° at 6.0 V | Higher voltage gives faster moves; plan slower, smoother motion for a heavy arm. |
| Current | 10 mA idle; 170 mA no-load; 1400 mA stall (test voltage not stated) | Size the supply for stall peaks, since a blocked joint draws far more than an idle one. |
These are the figures on an MG996R listing and are product-range statements, so they do not establish the voltage at the servo connector during the required motion.
Turning the figures into a supply choice
The practical lesson is the gap between idle and stall. A servo resting at 10 mA looks harmless, yet the same servo pushing against a stop is listed at 1400 mA. A small adapter that suits an SG90 arm, such as the 5V/2A unit bundled with the VXB kit, is not evidence that MG996R joints will run from the same supply. Choose a supply with real headroom for the heavy joints, and keep it separate from the Arduino’s own power.

Build: assembly and wiring
Assemble the mechanics first and wire the electronics second, so you can move each joint by hand before power is applied.
- Fit the horns. Attach each servo horn with its screws while the servo is at mid-travel, so the joint has room to move both ways.
- Mount the base and shoulder. Fix the heaviest servo low in the arm, since the shoulder carries everything above it.
- Attach the elbow and gripper. Keep cable runs loose enough that no joint pulls on its wire at the end of its travel.
- Wire power separately. Connect the servo power leads to the external 5V supply, and the signal leads to Arduino pins.
- Join the grounds. Connect the supply ground to the Arduino ground so the signal has a common reference.
The gripper
The gripper is the joint most likely to stall, because it keeps pushing against whatever it holds. Limit its closed angle in code so it stops just as it grips an object, rather than driving the servo against a hard stop. That protects both the servo and your supply headroom.
Control: moving the arm with potentiometers
To control the arm with potentiometers, give each joint its own knob, read each knob on an analog input, convert the reading to an angle range and write it to the matching servo. Adeept’s kit does exactly this, with the arm controlled by rotating the potentiometer knobs on the driver board.
- Wire the knobs. Connect the outer pins of each potentiometer to the Arduino supply and ground, and the middle pin to an analog input.
- Read and scale. Use the Arduino mapping function to turn the analog reading into the joint’s angle range.
- Write to the servo. Send the result with the Servo library, one servo object per joint.
- Test one joint at a time. Confirm direction and limits before connecting the next.
Manual control is also the best diagnostic you have. If a joint behaves badly with a knob, the cause is mechanical or electrical, not your inverse kinematics maths. Once the arm is dependable, other inputs can replace the knobs, for example an arduino pir motion sensor as a trigger or an arduino ir remote control for hands-free driving.
Motion: two-link inverse kinematics
Inverse kinematics works backwards from where you want the gripper to be to the joint angles that put it there. For a two-link arm in a vertical plane, the shoulder and elbow angles follow from the target’s horizontal reach and height. Robotics kinematics textbooks use this as the standard introductory case, and projects such as Chris Annin’s AR2 arm show it scaling up, with software that incorporates inverse kinematics.

The worked sequence
- Fix the geometry. Measure the upper link and the forearm link from joint centre to joint centre, and keep those lengths in the sketch.
- Take the target. Choose the horizontal distance and height you want the wrist to reach, measured from the shoulder joint.
- Find the straight-line distance. Combine the two target values into the distance from shoulder to target. If it exceeds the combined link lengths, the target is out of reach and the sketch should refuse it.
- Solve the elbow. The two links and that straight-line distance form a triangle. The law of cosines gives the elbow’s interior angle from the three side lengths.
- Solve the shoulder. Take the angle of the target direction above horizontal, then add or subtract the angle the upper link makes inside the triangle. Adding or subtracting selects the elbow-up or elbow-down posture, so pick one and keep it.
- Convert to servo commands. Change the computed angles from radians to degrees and offset them to match how each servo horn was mounted.
Compute with floating-point values and write to the servos only after checking the target is reachable. The base servo simply swings the whole plane around, so it can be set separately from this calculation.
Tuning and troubleshooting
Stopping jitter
Jitter usually points to power first. Move the servos to a separate external supply and watch the voltage at the servo connector while the arm moves under load, because the nominal operating range does not guarantee the voltage during a move. If you still see twitching on several channels, a PCA9685 I2C board generates the pulses itself, which removes servo timing from the Arduino’s workload.
Joints that drift or hit stops
Calibrate each joint by finding its safe minimum and maximum, then constrain the code to those values. Do this for the gripper first, then for the shoulder, since the shoulder has the most load. Reduce the step size per loop for smoother motion; the listing’s speed figures show the servo is quicker at higher voltage, so a stronger supply can also make faster moves feel more abrupt.
Arm sags or stalls
If a joint stalls or slumps, check the supply before the code. A supply sized for idle draw cannot hold the stall peaks of the heavier servos. Shorten the arm or lighten the payload if the supply is already generous.
Frequently asked questions
Which board should I select in the Arduino IDE?
Kit documentation for an ATMEGA328P-based controller says to select Arduino UNO R3 in the Arduino IDE.
Can I add more than four joints?
Yes. A PCA9685 I2C board can control up to 16 servos, so a larger arm does not need more Arduino pins.
Should I buy a kit or build from parts?
A kit suits you if you want matched brackets and servos, such as the four-servo VXB claw arm. Building from parts lets you choose stronger servos for the shoulder, but then the power supply is your responsibility.
Is the angle I write in code the real joint angle?
Not necessarily. An Arduino library angle argument is a software request, so check each joint with a protractor or a known stop and correct for the horn’s mounting position.



