Import

Open a shared Arduino Cloud sketch in a simulator, no board needed

Paste the link to a shared Arduino Cloud sketch and Mokxi opens it in a simulator in your browser.

The box

Drop it here, or paste it

The .ino, its headers and its sketch.json, fetched from Arduino’s own sketch API without a sign-in, on the board the sketch.json names. An Arduino IoT Cloud sketch runs too, with its cloud variables held at their starting values, since a simulated board has no connection to the cloud.

Drop a Arduino Cloud file above, or paste its text, and it opens in the editor.

Paste from ChatGPT or ClaudeCopy a prompt, say what to build, paste the answer.
  1. 1Copy the promptIt teaches your AI how to write a Mokxi project.
  2. 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".
  3. 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.
  1. 1Export the circuitIn Tinkercad, open the circuit, press Export and download the .brd file. It has every part and wire.
  2. 2Download the codeOpen Code, switch to Text and press the download button for the .ino.
  3. 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.
Files and links

What Mokxi reads from Arduino Cloud

app.arduino.cc/sketches/<uuid>, the address of a sketch in the Arduino Cloud editor, with or without ?view-mode=preview after it.

create.arduino.cc/editor/<user>/<uuid>/preview, the older Share Sketch link, embed and snippet variants included; the UUID is found wherever it sits in the path.

The zip from Download Sketch, dropped into the box, for a sketch that is not shared publicly.

Either link with mokxi.com/ written in front of it in the address bar.

Converted

What comes across

The sketch and its tabs, from Arduino’s API

A sketch shared as public is handed out by Arduino’s sketch API without any sign-in, so Mokxi asks it for the sketch’s description, then the list of files in its folder, then each file that ends in .ino, .pde, .h, .hh, .hpp, .c, .cc, .cpp, .json or .txt. They open together in a folder named for the .ino, as the Arduino IDE would keep them.

The board, from sketch.json

Arduino Cloud writes the board into sketch.json (cpu.fqbn, such as arduino:avr:uno), and that is what the sketch opens on, with a note that the file builds for it. The board list it is matched against runs from the Uno, Nano, Mega and Leonardo through the Uno R4, ESP32 and ESP8266 variants, the Pico and Pico W, the XIAO and the STM32 boards.

An IoT sketch, with thingProperties.h kept

The thingProperties.h that Arduino Cloud generates for a Thing stays as a tab, and the sketch compiles with it. The report adds: "This is an Arduino Cloud sketch. Its thingProperties.h connects to Arduino IoT Cloud, which a simulated board cannot reach, so the cloud variables stay at their starting values; the rest of the sketch runs".

The parts the code uses

Nothing in a Cloud sketch describes a circuit, so Mokxi looks through the code for one: library objects such as a Servo or a DHT with their pins, and the plain pinMode, digitalWrite and analogRead calls. Those parts are placed and wired beside the board, and the rest is yours to add.

Left out

What does not, and what happens instead

A sketch that is not shared

When the API answers that the sketch is private or does not exist, the import ends with: "That Arduino Cloud sketch is not shared publicly, or it does not exist. Its owner can share it (Share Sketch, then Public), or download it there (Download Sketch) and drop the zip here." Mokxi never signs in on your behalf.

Live cloud variables and the dashboard

Values pushed from an Arduino Cloud dashboard, a phone app or another Thing never arrive at the simulated board, and nothing the sketch writes to a cloud variable is seen anywhere but in the simulation. Treat the dashboard side as absent and drive the sketch from the canvas instead.

Pictures and read-me files in the folder

A breadboard image, a ReadMe.adoc or any file outside the code extensions is skipped; so is a file that does not arrive as valid base64, or one that would push the sketch past eight files or 8 MB in all.

Boards Mokxi does not have

If sketch.json names a board outside the list, say a MKR or a Nano 33 BLE, the report quotes the FQBN and leaves the choice of the closest board to you. Code that uses that board’s own radio or peripherals may then not compile until you adjust it.

Step by step

From Arduino Cloud to Mokxi

  1. Step 1

    In Arduino Cloud, open the sketch and choose Share Sketch; set it to Public, anyone with the link can view the sketch, and copy the link. For a sketch you would rather keep private, choose Download Sketch instead and keep the zip.

  2. Step 2

    Paste the link into the box above, or drop the zip. The hint says "Looks like a shared Arduino Cloud sketch" and the files are fetched from Arduino’s API.

  3. Step 3

    The sketch opens on the board named in sketch.json, with its tabs and thingProperties.h as files, and whatever the code wires beside the board.

  4. Step 4

    Press Run. Cloud variables start at their declared values and change only when the code changes them; use the serial monitor or a part on the canvas to drive the sketch.

FAQ

Questions about importing from Arduino Cloud

Can I open an Arduino Cloud sketch without signing in to Arduino?

Yes, for a sketch its owner shared as public: Arduino’s sketch API gives its files out to anyone with the link, and Mokxi asks that API with no account of yours. A private sketch needs its owner to share it, or to use Download Sketch and drop the zip here.

Will an Arduino IoT Cloud sketch run offline, without a board?

It compiles and runs on the simulated board, with thingProperties.h included. The simulator has no link to Arduino IoT Cloud, so the cloud variables keep the values they were declared with, and the sketch’s own logic runs around them.

Which board does the sketch open on?

The one its sketch.json names, matched by FQBN: arduino:avr:uno is the Uno, esp32:esp32:esp32 the ESP32 DevKit, and so on. When the FQBN is for a board Mokxi does not have, the report says which it was and you choose the closest board yourself.

The link I have is create.arduino.cc/editor/... Is that the same thing?

Yes. That is the preview link the older Share Sketch dialog produced; Mokxi finds the sketch UUID in it and reads the same sketch as an app.arduino.cc/sketches link would. The embed and snippet variants work too.

What does the Download Sketch zip give me that the link does not?

The same files, but for a sketch you do not want to make public. The zip holds the .ino, any tabs and sketch.json, so the board is still picked for you; drop it into the box and it opens as a dropped sketch folder would.

Keep going

Where to next

Simulate your circuit in minutes. Build it for real with Pro.

Start free