What the course teaches
Build a robot arm is six lessons on the Uno, in three chapters:
- Set it up, drive it: a home pose sent before any other pulse, software limits where the linkage jams, slewed moves at a set speed and the PCA9685's pulse counts; a joystick in rate mode with a deadband, a pair swap and an expo curve.
- Moves that mean something: inverse kinematics on the real arm's linkage and limits, and teach and playback with every joint arriving together and the points kept in EEPROM.
- Put it to work: a force-sensing resistor on the jaw turned into grams, a force-limited grip that knows an empty jaw, shoulder torque at reach, and the project, a pick-and-place cell with checked grips, faults and a cycle time.
The IK math is in Robot kinematics; this course uses it. Each chapter ends in a short quiz. Open it from /learn.
The circuits
The IK lesson opens the gallery's Robot arm inverse kinematics build. The
others run sketches written for the course (armjoint, armstick,
armteach, armgrip, armpick) on one circuit, the robot arm cell:
- the desktop arm on a PCA9685 (SDA A4, SCL A5), base, shoulder, elbow and claw on channels 0 to 3, the arm on its own 5 V supply
- a joystick, X on A0, Y on A1, its button on pin 2
- a force-sensing resistor on the jaw: 5 V, the FSR, A2, and 10 k to ground
The sketches take commands typed into the Serial Monitor. The checks read the claw's angle and what the sketch prints. You play the part: set the FSR's force when the claw reaches it.
Troubleshooting
- The claw closes all the way and says no part. Set the FSR to a force above 250 g while it is still closing.
- The cell says dropped the part. Keep the FSR's force up from GRIP until RELEASE, then set it to 0.
- A joint stops short. It is at its software limit; type limits in the joints lesson to see them.
- The stick does nothing. It is in the deadband: push it further than 40 counts from the middle.
Related
Servos, solenoids and actuators for the servo pulse itself, and the robotics capstone for building your own machine.