Safety and scope
Do not power multiple servos from the Arduino 5 V pin. Use a suitable external supply and keep the arm clear of hands during motion.
Plan, predict and test
Suggested virtual study time: about 20 minutes. This is a planning estimate, not a validated construction time.
Preparation: Foundation electricity and basic programming logic. Adult supervision for children. Review a foundation lesson ↗
Use paper, a spreadsheet or a simulator. This is not a verified physical assembly guide.
- Scenario: Map virtual joystick values 0–1023 to an assumed command range 30–150°.
- Expected result: At 512 expect approximately 90°. Physical limits must be measured separately.
- Checkpoint: Write your prediction, test it in the virtual model and explain any difference.
A correct answer does not certify the physical system.
Record your validation
Use only virtual inputs and indicators until the actual components, pinouts and electrical limits have been verified.
| Case | What to record |
|---|---|
| Normal input | ADC 0 → 30°; 512 → 90.06°; 1023 → 150° |
| Boundary | At endpoints verify mapping stays in the assumed range |
| Missing or invalid input | No servo control, torque validation or calibration implemented; serial values only. |
| Repeat test | Repeat the virtual test, record the actual output and compare with the expected result. |
These are test-planning requirements, not recorded hardware results.
Before building: understand the listed components and the relevant low-voltage safety rules. This is a concept brief, not a tested assembly manual.
What it does
Introduce mechanical articulation, multi-servo control and the need for a suitable actuator power supply.
Engineering principle
Servo motors move to commanded angular positions using PWM. A PCA9685 driver communicates over I²C and can generate independent PWM signals for multiple servos. The controller maps joystick or potentiometer readings to joint angles, with limits to avoid mechanical collisions.
Hardware and components
- Arduino Uno or NanoReads controls and sends angle commands.
- PCA9685 16-channel PWM driverGenerates servo PWM signals over I²C.
- 3 servos: SG90/MG90S; higher-torque servo if neededDrive the base, shoulder and gripper.
- Joystick module or potentiometersProvide manual joint position commands.
- 3D-printed/acrylic structure and external 5 V supplyProvide the arm mechanism and separate servo power.
Suggested build sequence
- Assemble the base, shoulder and gripper mechanism without forcing any joint.
- Centre each servo before attaching the horn.
- Connect the PCA9685 over I²C and power the servos from an adequate external supply.
- Map joystick or potentiometer values to safe angle ranges.
- Test each degree of freedom individually before combined movements.
Learning outcomes
- Servo positioning
- I²C peripheral control
- Kinematic thinking
- Power budgeting and mechanical limits
Possible upgrades
Add a fourth axis, teach-and-repeat positions, object detection or a simple pick-and-place sequence.
Practice the core principle
Use a virtual Arduino Uno circuit with the following substitute inputs and indicators. The exercise deliberately does not drive motors, powered mechanisms or real industrial equipment. Physical experimentation requires adult supervision for children, a suitable current-limited supply and checked wiring.
Reference components
- Arduino Uno (5 V)
- 10 kΩ potentiometer
- USB serial monitor
Connection plan
- Potentiometer outer pins → 5 V and GND
- Potentiometer wiper → A0
Reference sketch
void setup(){Serial.begin(9600);}
void loop(){
int raw=analogRead(A0);
float degrees=30.0+120.0*raw/1023.0;
Serial.print("Simulated target angle: ");
Serial.println(degrees); delay(200);
}How the code works
A raw reading is converted to a hypothetical limited command range of 30–150°. It is printed, not sent to a servo. Actual angular limits require measurement.
Practice sequence
- Set up the virtual components with power disconnected in the simulator.
- Verify pin numbers and LED polarity before running the sketch.
- Run and record the expected inputs and outputs.
- Test the boundary cases described below.
Expected result and testing
Test raw values 0, 512 and 1023. Expect 30°, about 90.06° and 150°. This is not a mechanical or torque validation.
Troubleshooting
Check the specified pin assignments, supply and common ground, indicator polarity and serial monitor baud rate where applicable. If an input seems fixed, isolate that input and observe its value before changing the control logic.
Independent challenge
Change one model threshold or timing value, predict the resulting behaviour, and repeat the test. Explain the difference without adding physical actuators.