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.
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
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:
-
We find the most relevant JSON definitions
-
Send them along with your prompt to OpenAI
-
The AI maps your request to the correct function
-
The command is executed immediately on the real device
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:
-
Talk to your hardware with a microphone -
AI-generated DUELink scripts (conditions, automation, etc.)
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?
