Skip to the content
2 layers86 × 67 mmAR488 ESP32, the printed circuit board in 3D

The idea is to have AI help me build electronics. AI needs eyes, the eyes are the oscilloscope which is used through an MCP interface.

Size
86 × 67 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
78
Pads
170
Tracks, vias
409, 39
Pours
10
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Mar 2026
Updated
30 Sep 2026

Overview

AR488 ESP32 is an open-source printed circuit board by joseluu, from the joseluu/MCP-AR-488-ESP32 repository on GitHub. It is a 2-layer board of 86 × 67 mm with 22 parts on 78 nets, routed with 409 tracks and 39 vias.

It is built around the SN75160BDW, SN75161BN and AMS1117-5.0, with the MCP23017-E/SS, AO3401A and MM3Z8V2 among its other parts. Its parts include 7 capacitors, 5 ICs, 3 resistors, 3 transistors and 3 connectors. It belongs with the ESP32 boards of this library.

Main components

7

README

README.md

MCP-AR-488-ESP32

Intro and goal

The idea is to have AI help me build electronics. AI needs eyes, the eyes are the oscilloscope which is used through an MCP interface.

The IEEE-488 controler is meant to expose an HTTP API which in turn is used by the MCP server.

Build

GPIB/IEEE-488 interface board for the Tektronix TDS784A oscilloscope, based on an ESP32 (Heltec WiFi Kit 32) with GPIB bus transceivers. The board plugs directly onto the instrument's Centronics 24-pin GPIB connector.

This project is inspired by the AR-488 Arduino GPIB adapter, redesigned around the ESP32 for WiFi capability and higher throughput. There are ESP32 projects, such as: https://github.com/douardda/AR488-ESP32 I discovered them after having finished this one. Other projects are using the prologic serial protocol, their hardware most likely may be reflashed with the firmware here.

In use on a 784

There are a few quirks, however the PCB works, requiring some modifications (soldering):

  • to supply 3.3V instead of 5.0 V to the MCP chip (because I used a V1 ESP32 board and I thought I had V2)
  • add the I2C pullups
  • remove 3mm from the left side to fit directly behind the TDS784 If you consider making it check the photos in the docs subdirectory. The gerber files I have used are in AR488_ESP32/Elecrow_manufacturing_v1.1.zip

The ESP32 USB can power the whole board, if you use it this way, no need to populate the barrel jack connector and power supply conditioning part (it has not been tested)

See file IMPROVEMENTS_V2.md for further improvements (which I may never implement myself)

Design workflow and caveats

The PCB has been designed using AI as well, where claude is driving circuit-synth which in turn generates the kicad schematic. Routing has been handled manually.

Circuit-synth required a modification to work under Windows and git-bash (see my circuit-synth repo). Another circuit-synth anoyance is that circuit-synth used hierachical connectors on the same sheet, this was giving warnings in the kicad rules checker.

When refreshing the circuit with circuitsynth, it uses a set of new internal identifiers, so when updating the PCB from the electrical schematic (F8) you must check the option "Re-link footprint ... from reference designators"

See file AI_Assisted_design_workflow.md

Electrical architecture and implementation

See file Electrical_Architecture.md

The ESP32 board used is the Heltec Wifi Kit 32 (version 1), the V2 has the same pinout and can be used directly, however the V3 has different I2C pins and most likely will require adjustments to schematic and firmware.

The exposed plated area around is meant for to solder a shield to limit radiated EMI in the lab. Not tested. Shielding completely will also shield the Wifi, so at this point this is a half baked idea.

Firmware and Software

Hardware test

In directory hardware_test, a test firmware is available, it sends a 1ms pulse to each of the GPIB connector pins.

Firmware

The firmware for the ESP32 implements an HTTP API json style server made available on Wifi, not the usual serial protocol.

Host software

In firmware/test the send_gpib.py allows to exercise many features and get back entire curve data, notably in .csv format, example commands:

text
# getting curve data
uv run --with websockets python firmware/test/send_gpib.py --waveform --points 5000 --out csv --name wave --source CH2 192.168.xx.yy
# getting a screen copy in .tif format
uv run --with websockets python firmware/test/send_gpib.py 192.168.11.175 --hardcopy
downloaded CSV scope curve example

CSV being used in LibreOfficeCalc

Screen copy through GPIB and host software send_gpib.py

Screen copy through GPIB

Actual screen for comparison

Actual Screen

Host software help (-h)
text
send_gpib.py -h
usage: send_gpib.py [-h] [--addr ADDR] [--timeout TIMEOUT] [--binary] [--waveform] [--hardcopy]
                    [--hardcopy-format {TIFF,BMP,BMPCOLOR,PCX,PCXCOLOR,RLE}] [--hardcopy-layout {PORTRAIT,LANDSCAPE}]
                    [--hardcopy-palette {COLOR,MONOCHROME,INKSAVER,HARDCOPY}] [--points POINTS] [--start-index START_INDEX]
                    [--end-index END_INDEX] [--chunk-bytes CHUNK_BYTES] [--source SOURCE] [--width {1,2}] [--name NAME] [--out OUT]
                    host [command]

Send GPIB SCPI commands to a Tek scope via the AR-488-ESP32 gateway.

The ESP32 hosts a JSON-over-WebSocket bridge at ws://<host>/ws. This
script handles the protocol so an operator (or AI agent) can issue
SCPI commands and capture waveforms directly from the shell.

Invocation
----------
    send_gpib.py <ip> <scpi-command>           # auto: query if '?' else write
    send_gpib.py <ip> --binary "<scpi>"        # force binary response
    send_gpib.py <ip> --waveform [options]     # capture waveform(s)
    send_gpib.py <ip> --hardcopy [options]     # capture screen (TIFF default)
    send_gpib.py --help                         # full per-flag help

Output files
------------
Named  <ISO_8601>_<name>[_<chN>].<ext>  where:

Claude Code integration (MCP server + skill)

This repo hosts the tek-tds784a MCP server (host_software/mcp_server/, exposes the scope over SCPI/GPIB) and the scope Claude Code skill that documents it (scope/SKILL.md).

Setup on a new machine:

bash
git clone https://github.com/joseluu/MCP-AR-488-ESP32.git ~/hobby_w/MCP-AR-488-ESP32
cd ~/hobby_w/MCP-AR-488-ESP32
uv sync

Link the skill into Claude Code's skills directory:

Linux/macOS:

bash
ln -s ~/hobby_w/MCP-AR-488-ESP32/scope ~/.claude/skills/scope

Windows (cmd, no admin required):

cmd
mklink /J "%USERPROFILE%\.claude\skills\scope" "%USERPROFILE%\hobby_w\MCP-AR-488-ESP32\scope"

Then register the MCP server in that machine's .mcp.json (paths are machine-specific, adjust accordingly):

json
{
  "mcpServers": {
    "tek-tds784a": {
      "command": "uv",
      "args": ["run", "--project", "/path/to/MCP-AR-488-ESP32", "python", "-m", "mcp_server"],
      "cwd": "/path/to/MCP-AR-488-ESP32/host_software",
      "env": {
        "AR488_HOST": "<gateway ip>",
        "AR488_ADDR": "1",
        "AR488_TIMEOUT_MS": "2000",
        "PYTHONPATH": "/path/to/MCP-AR-488-ESP32/host_software"
      }
    }
  }
}

License

MIT

Parts

22
QtyValueFootprintReferences
4100nCapacitor_SMD:C_0603_1608MetricC2, C3, C4, C5
2100kResistor_SMD:R_0603_1608MetricR1, R2
2AO3401APackage_TO_SOT_SMD:SOT-23Q1, Q2
110kResistor_SMD:R_0603_1608MetricR3
110uCapacitor_SMD:C_0603_1608MetricC1
11uCapacitor_SMD:C_0603_1608MetricC6
122uCapacitor_SMD:C_0603_1608MetricC7
1AMS1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1DC_7-12VConnector_BarrelJack:BarrelJack_HorizontalJ2
1GPIB_24AR488_custom:Centronics_24_GPIB_solderJ1
1Heltec_WiFi_Kit_32_V2AR488_custom:Heltec_WiFi_Kit_32_V2U1
1MCP23017Package_SO:SOIC-28W_7.5x17.9mm_P1.27mmU4
1MM3Z8V2Diode_SMD:D_SOD-323D1
1MMBT5551LPackage_TO_SOT_SMD:SOT-23Q3
1SHIELDTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ3
1SN75160BDWPackage_SO:SOIC-20W_7.5x12.8mm_P1.27mmU2
1SN75161BNPackage_DIP:DIP-20_W7.62mmU3

Similar boards

  • 4 layers62 × 67 mmAdapter, the printed circuit board in 3D

    Adapter

    tridentsx/tmc-gateway

    TinyGo firmware for an RP2350-based USB/PoE-LAN instrument gateway: bridges USBTMC/USB488 and HiSLIP to GPIB

    92 parts
  • 2 layers85 × 56 mmGrasPiB v1, the printed circuit board in 3D

    GrasPiB v1

    an-ven/graspib

    GPIB interface board for Raspberry Pi

    45 parts14
  • 4 layers85 × 56 mmIce4pi, the printed circuit board in 3D

    Ice4pi

    lightside-instruments/gpib4pi

    The gpib4pi project is open hardware design of a Raspbery Pi extension board with GPIB interface using only GPIOs.

    50 parts14
  • 2 layers56.6 × 57.7 mmGpib adapter, the printed circuit board in 3D

    Gpib adapter

    asanza/gpib2usb

    simple gpib2usb adapter

    29 parts13
  • 2 layers86 × 70 mmAVR488, the printed circuit board in 3D

    AVR488

    VE7PMC/AVR488

    USB to IEEE-488 interface based on the ATmega168/328 microcontroller

    28 parts10GPL-3.0
  • 2 layers63.5 × 55.6 mmAR488-common, the printed circuit board in 3D

    AR488-common

    douardda/ESP32-GPIB-pcb

    GitHub mirror of the PCB design for an ESP32/Arduino based GPIB interface

    11 parts9
  • 2 layers65 × 45 mmRpi gpib pico, the printed circuit board in 3D

    Rpi gpib pico

    Elemecca/rpi-gpib

    GPIB interface for Raspberry Pi

    73 parts1

Questions

How big is the AR488 ESP32 PCB?

It measures 86 × 67 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AR488 ESP32 use?

22 parts, built around the SN75160BDW, SN75161BN, AMS1117-5.0 and MCP23017-E/SS. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the AR488 ESP32 KiCad files?

From the joseluu/MCP-AR-488-ESP32 repository on GitHub, at the commit this page was made from: the board is hardware/AR488_ESP32.kicad_pcb and its schematic hardware/AR488_ESP32.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AR488 ESP32 design in my own project?

Its repository states no licence, so its author keeps all rights: ask joseluu before reusing the design.