DUELink + AI: Control Hardware with Natural Language

:rocket: DUELink + AI

DUELink already makes hardware control simple using text commands — but we’re taking it one step further.

We’re now integrating AI (OpenAI) to let you control hardware using natural human language.

Instead of writing commands, just say what you want:

blink stat led once a second, 10 times

DUELink AI understands your intent and translates it into:

SEND: statled(1000,1000,10)

The correct standard library function is automatically selected and executed on the device — instantly.

:high_voltage: Even Imperfect Input Works

AI is flexible and forgiving. Even with typos, it still understands:

read teh voltage level on pin 2
SEND: vread(2)
RETURN: 0.041558

:brain: How It Works

We built a system of JSON knowledge files based on the DUELink standard library:
https://www.duelink.com/docs/engine/stdlib

When you send a prompt:

  1. We find the most relevant JSON definitions

  2. Send them along with your prompt to OpenAI

  3. The AI maps your request to the correct function

  4. The command is executed immediately on the real device

:electric_plug: Beyond the Standard Library

This isn’t limited to built-in functions.

We can extend the system with module-specific drivers, allowing AI to:

  • Understand connected hardware

  • Automatically use the correct APIs

  • Control complex peripherals with simple language

Next step:

  • :microphone: Talk to your hardware with a microphone

  • :robot: AI-generated DUELink scripts (conditions, automation, etc.)

:package: Source Code

If you can describe it, you can run it.

Check out the project (Python, C#) here:
duelink-projects/source/duelink-ai-stdlib at main · ghi-electronics/duelink-projects

Try it and share your ideas—what would make DUELink AI smarter?