Skip to content
HardwareLab

iPhone-teleoperated robot arm

Imitation learning with iPhone-based teleoperation of a low-cost robot arm.

Hardware:
low-cost arm, iPhone
Difficulty:
Advanced
Creator:
trzy

Teach a cheap arm by moving your iPhone.

iPhone-teleoperated robot arm
No photo in the source; GitHub repository card, served from HardwareLab.

By trzy

What it does

Imitation learning with iPhone-based teleoperation of a low-cost robot arm.

What you need

Difficulty
Advanced
License
No license stated

Parts

  • low-cost arm, iPhone
AI model or service
imitation learning policy

Full build guide

Steps

Difficulty
Advanced
  1. To discover the serial port on which the robot is connected, run python -m server --list-serial-ports.
  2. To run the robot server, specify the serial port the robot is connected to: python -m server --serial-port=*usb*.
  3. To record episodes to the cube directory using camera 1: python -m server --serial-port=*usb* --camera=1 --record-to=cube.
  4. To train a model on episodes stored in cube: python -m act --train --dataset-dir=cube --checkpoint-dir=cube/checkpoints.
  5. First, launch the inference server: python -m act --infer --checkpoint-file=cube/checkpoints/policy_best.ckpt.
  6. Next, run the robot server in inference mode: python -m server --serial-port=COM4 --infer.

Full instructions: View original

How it works

The phone's pose drives the arm while you collect demos that train a policy.

Limits and caveats

  • Once a few dozen episodes have been collected, a policy can be trained.
  • Make sure to specify the same cameras; if the data was collected using two cameras, --camera=0,1.
  • The default camera is camera 0; you will need to experiment to figure out which is which on your system.

Like this build? Get the weekly builds

Every Thursday: the 5 best gadget hacks you can copy. Free.

Built something? Submit a build

Hardware

  • low-cost arm
  • iPhone

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

Featured? Add this badge

Built this? Paste the badge into your README. It links back to this page.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](https://hardwarelab.dev/projects/iphone-teleop-arm/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)

HTML

<a href="https://hardwarelab.dev/projects/iphone-teleop-arm/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>