NeoQuarZ:~Archetype
EN ⇄ ES
← Back to projects

Robotic arm: servo control

A two-joint model for testing positions.

ArduinoC++JavaScript
WEB PROTOTYPE

Move two joint angles and inspect the calculated position. This is a geometric simulation with no physical Arduino connection.

servo.armGEOMETRY / SIMULATION

Two sample segments: 80 and 65 mm. The simulation does not check collisions.

View concept code
export function arm(base, elbow) {
  if (![base, elbow].every((n) => Number.isFinite(n) && n >= 15 && n <= 165))
    throw Error('Invalid angle');
  const a = ((base - 90) * Math.PI) / 180,
    b = a + ((elbow - 90) * Math.PI) / 180;
  const joint = { x: 80 * Math.sin(a), y: 80 * Math.cos(a) };
  return { joint, tip: { x: joint.x + 65 * Math.sin(b), y: joint.y + 65 * Math.cos(b) } };
}

To turn this into a production application

Calibrate servos, add physical limits and a safe stop, and test power and motion without a load.

Talk about this project ↗
NEOQUARZ / ARCHETYPE~/projects/robotics0%