Run an Arduino Project Hub project, from its page link
Paste the address of an Arduino Project Hub project and Mokxi takes the Arduino Project Hub code off the page for you.
Drop it here, or paste it
The sketch in its Code section, the files attached to it, and the GitHub repository it points to when the code lives there. The sketch then opens in the simulator on a board wired from what the code names, with the hardware list from the page kept as a note.
A page whose code reads a character from Serial and switches the LED on pin 13 with it, written for an HC-05 Bluetooth module. Mokxi opens the sketch on an Uno with an LED and its resistor wired to 13, and the report lists the LED, jumper wires, Uno and HC-05 the page names. Type 1 or 0 in the serial monitor to switch the LED.
Paste from ChatGPT or ClaudeCopy a prompt, say what to build, paste the answer.
- 1Copy the promptIt teaches your AI how to write a Mokxi project.
- 2Say what to buildPaste the prompt into ChatGPT, Claude, Gemini or Cursor and add what you want, like "a night light with a light sensor".
- 3Paste its answer hereThe whole reply is fine. It opens wired and ready to run.
Only have a photo or a screenshot of the circuit? Give your AI the picture with this prompt instead.
Your AI app supports MCP? Add the Mokxi server and it builds the link for you. How
From Tinkercad? Three stepsBring a circuit across wired, with its code.
- 1Export the circuitIn Tinkercad, open the circuit, press Export and download the .brd file. It has every part and wire.
- 2Download the codeOpen Code, switch to Text and press the download button for the .ino.
- 3Drop both hereChoose or drop the .brd and the .ino together: it opens wired, with the code on the board. No .brd? Paste the Component List with the code under it.
What Mokxi reads from Arduino Project Hub
A project page address of the form projecthub.arduino.cc/<user>/<project>, with or without a ?query or a #code anchor on the end.
The same address typed after mokxi.com/ in the browser’s address bar, which lands in the editor with the project already read.
Not an author page, a search or a listing: only an address with exactly those two segments is a project.
What comes across
The code widgets, as sketch files
A Project Hub page carries its data in one JSON block, and each code widget in it has the code as the author pasted it. The first block with a setup() becomes <project>.ino, named for the page’s slug so it matches the folder it opens in. Other blocks become its tabs: one titled pins.h keeps that name, an untitled block with function bodies is a .cpp and one without is a .h, and a block that is a second full sketch (pages often show two versions) is saved as a .txt tab, since two setup() functions would not build. The same code shown twice is taken once.
The sketch files attached to the page
Attachments and widgets that point at .ino, .pde, .zip, .fzz, .h, .cpp or .txt files on projects.arduinocontent.cc, Project Hub’s file host, are fetched too: a .zip or .fzz as is (a Fritzing file then opens through the Fritzing importer, with the breadboard wired), text files as they are, and a .txt only when it reads as code. At most eight files and 8 MB per page.
The GitHub project the page links to
Up to six GitHub or gist addresses are collected from the page: a repository widget first, then links written inside the code. When the page itself has no code and no sketch attached, Mokxi opens the first of them, and the report starts with "The page has no code of its own, so Mokxi opened the GitHub project it links to".
The hardware list, as a note
The parts of type hardware in the page’s component list, up to thirty of them, become one line in the import report: "The page lists: Arduino Uno Rev3, HC-05 Bluetooth Module, LED (generic)." The code is also read for the parts it uses, so an LED on pin 13 or a servo on 9 is placed and wired without you doing anything.
What does not, and what happens instead
Pictures of the schematic, 3D files and video
A schematic or breadboard image, an .stl or other print file, a cover image and an embedded video are not sketch files, so they are left where they are. Only the extensions above come down, and only from Project Hub’s own file host; a widget pointing at another site is ignored.
Blocks that are not code
A code block holding a shell command, a parts table or a few lines of notes has no setup() and no #include, so it is left out, and the sketch still opens from the blocks that are code. Copy such a block by hand if you want it as a tab.
The listed hardware, as parts
The component list is kept as text, not turned into parts, because a page does not say how its parts were wired. Place the ones the code did not already wire from the parts panel, using the breadboard picture on the page as your guide.
A page with no code anywhere
When the page has no code block, no sketch attachment and no GitHub link, the import stops with: "There is no code in that Arduino Project Hub page that Mokxi can read. Copy the code from its Code section and paste it here." Pasted code is wired and run the same way.
From Arduino Project Hub to Mokxi
Step 1
Open the project on Arduino Project Hub and copy its address from the browser bar; the Code section does not need to be open.
Step 2
Drop the address in the box; under it, "Looks like an Arduino Project Hub page: Mokxi reads the code and files on it" appears and the import begins.
Step 3
The editor opens with the sketch on the board its code suggests (an Uno when nothing says otherwise), whatever its code names placed and wired next to it, and the page’s hardware list in the report.
Step 4
Press Run, then place anything from the hardware list the code could not wire, and save the project to keep it.
Questions about importing from Arduino Project Hub
Can I run a Project Hub project without the hardware?
Yes, as far as the code goes. Mokxi reads the sketch off the page, compiles it right in the tab and sets it running on a board, with parts, drawn from the code. Parts the code does not mention, such as a Bluetooth module that only talks over Serial, you add or stand in for yourself.
The project keeps its code on GitHub. Does the link still work?
Yes. When the page has no code of its own, Mokxi follows the first GitHub repository or gist it links to and opens that, and the report says so. If the page has both, the code on the page wins and the GitHub link is not followed.
What happens to the .fzz attached to the page?
It is fetched from Project Hub’s file host and read by the Fritzing importer, so the breadboard view comes across with its parts and wires, and the page’s code goes on the board. If the page has both a sketch block and an .fzz, both come down, within the eight-file and 8 MB limit.
Why does the report say "The page lists:" instead of placing the parts?
Because the component list names parts without saying how they are connected. Mokxi writes the names into the report and wires only what the code itself makes clear, such as an LED on an output pin or a servo on its attach pin.
Does Mokxi sign in to Arduino or send anything to Project Hub?
No. The page is fetched as any visitor would see it, from projecthub.arduino.cc and projects.arduinocontent.cc only, with no cookie or token, and a redirect to any other host is refused. Nothing from the page is run while it is read.
