# AR4 robot arm gets AI vision control with multiple LLMs and offline trained models

- Link: https://opensourcecad.nl/nieuwe-cad-apps/en-ar4-robot-arm-ai-vision-control/
- Published: 2026-11-30T16:48:15+01:00
- Author: Marijn van den Heuvel

_Dutch version: [AR4 robotarm krijgt AI-visionbesturing met meerdere LLMs en offline getrainde modellen](https://opensourcecad.nl/nieuwe-cad-apps/ar4-robotarm-krijgt-ai-visionbesturing-met-meerdere-llms-en-offline-getrainde-modellen/)._

Chris Annin of Annin Robotics has released the latest update for the AR4 6-DOF robot
arm. The major addition: an AI control tab that lets you run the arm with Gemini,
ChatGPT, Grok, Anthropic, or your own model, combined with a robot-mounted camera
and voice commands. Everything is open source and you can train your own grip models—
so no mandatory paid APIs.

## What is the AR4 robot arm?

The AR4 is an open-source 6-degree-of-freedom robot arm that has been used for years
in STEM education, industrial tasks, startups, film production, and by hobbyists.
All 3D print files, software, manuals, and source code are free to download from
[anninrobotics.com/downloads](https://www.anninrobotics.com/downloads). The arm 
is driven by stepper motors on an Arduino-based controller, with a Python interface
for control.

The factory-direct motor package is available from Stepperonline (approximately 
$500-600 for the complete electrical kit).

## AI vision control: multiple LLMs, one interface

The new software version (AR4 MK4.5) includes an **AI tab** where you choose from:

 * Google Gemini
 * OpenAI ChatGPT
 * xAI Grok
 * Anthropic Claude
 * Custom model (local or via API)

The AI works with an **8-megapixel Arducam** (around $50) mounted directly on the
J6 housing. Chris provided a new 3D print file for the camera mount in the downloads.

## How it works in practice: speech and vision

The wake word is **“Hey robot”**. In the video Chris shows the arm on command:

 * Pick a 15 mm and 12 mm wrench from a rack and place them on the table (at coordinates
   x=450, y=0)
 * Place red LEGO bricks in a red bin
 * Place a green ball in a white bucket
 * Place blue LEGO in the red bin (the AI recognizes color and shape)

The camera image doesn’t need to be perfectly vertical: the software automatically
rotates the image so the rack is upright before the AI analyzes it.

## Practice mode: virtual robot for classrooms and home

For those without a physical arm (or a classroom where not everyone has an arm) 
there’s a **Practice tab**. Here a virtual robot runs with a virtual camera and 
a table full of objects. You can:

 * Shuffle or add parts (pen, bolt, ball, block, custom STL)
 * Drag items with Ctrl+click
 * Test AI commands as if it were the real robot

The virtual robot behaves identically to the real one: fresh image, AI recognition,
pick and place.

## Reinforcement learning: train your own grip models — offline

At the bottom of the Practice tab is a **reinforcement learning training section**.
Here you teach a model the optimal grip for a specific part (e.g., a red pen). You
configure:

 * Part shape (pen, wrench, block, ball, or custom STL)
 * Camera finding
 * Search method: _Random_, _Hill climber_, or _Evolution_
 * Number of attempts (e.g., 5,000)
 * Grip rules (finger-square-to-part, balance point, depth, contact height) with
   weights
 * Rewards: good grip = 1, slipped = 0.2, grabbed nothing = 0, crashed = -1

In the video _Hill climber_ scores best after 5,000 runs. The trained model is saved(
e.g., “red pen”) and can be loaded later.

**This is the key**: you train your own models locally. No API costs, no cloud provider
dependency, no vendor lock-in. The trained models run fully offline on the robot.

## Running offline: trained models without internet

When you select **Trained model** in the AI tab (at the bottom of the list), the
robot runs fully offline:

 * No external LLM, no API key
 * Speech recognition via **VOSK** (Python library, also used for the wake word)
 * All responses are pre-canned text

In the demo the arm picks up the red LEGO brick (as stand-in for the trained red
pen) and sets it down. On the command “pick up the green pen” the system replies:_“
I was only trained on the red pen. I don’t know how to grip anything else.”_

## Grippers and camera practical tips

The software supports multiple grippers:

 * Servo gripper (open/close adjustable)
 * Pneumatic grippers via digital output (Arduino Nano/Mega)
 * Modbus coil or register for PLC-driven grippers

Two practical points for camera mounting:

 1. **USB cable**: Chris strips back the jacket and shielding of the USB cable so the
    cable doesn’t tension when J5 moves fully forward. The cable must be long enough
    to run over the motor without pulling the connector out.
 2. **J5 angle limit**: The camera mount would break if J5 rotated to the default 105
    ° backward. Chris added a press-fit block that triggers the limit switch at 50°
    and acts as a hard stop. In software, the J5 negative limit must also be changed
    from 105° to 50°.

## My verdict

**My verdict:** The AR4 remains one of the most complete open-source robot arms 
for the CAD user who wants to build and experiment. The AI vision layer is no gimmick:
the combination of multiple LLMs, virtual practice environment, **offline reinforcement
learning for your own grip models**, and voice control makes it a serious platform
for education and prototyping. That everything runs locally (VOSK, trained models)
fits the preference for self-hosted, cloud-independent tools — you’re **not locked
into paid models**.

Keep an eye on this site for updates and testing — I’ll keep following the AR4 software
releases and try the practice mode and training pipeline myself.
