Learn

An Arduino AI assistant that can see your circuit: Mokxi AI

Beginner

Or see every lesson.

  • 505parts on the bench
  • 45boards running now
  • 1.00xreal time, on every board
Arduino Uno: a button and an LED, to ask Mokxi AI aboutlive0.000 s 0.00x
Hold the button
Open it in the editor and ask Mokxi AI to explain the sketch or check the wiring.

Mokxi AI is the helper built into the Mokxi editor. Ask it about your sketch or your circuit in plain words and it answers with your project in front of it: the code in every tab, the board, the parts on the canvas and how they are wired, and the last build’s errors. You do not paste anything or describe your wiring. It is there on every board Mokxi runs, from an Uno to an ESP32 or a Raspberry Pi Pico.

The circuit above is a button and an LED on an Uno, the kind of first project most questions start from. Open it in the editor, press the Mokxi AI button, and ask "Explain my code" or "Is my wiring right?".

Below is what Mokxi AI does, what it sends and to whom, how many questions a day each account gets, and what it will not do.

What you can ask

Anything about the project open in front of you. "Explain my code" walks through the sketch step by step. "Is my wiring right?" checks the circuit on the canvas and says what is wrong or missing. "What does this do?" with a line or a part selected explains just that. "Why isn’t my LED blinking?" works while the circuit runs. On an empty file with parts on the canvas, Mokxi AI can write a first sketch for the circuit, and "What can I build with this?" suggests a small project from the parts you have.

Mokxi AI offers the likeliest questions as buttons, picked from what the editor shows at that moment: a failed build brings up "Why won’t this compile?" and "Fix it". Typing your own question works as well. Every code block in an answer has buttons to copy it or put it into the editor.

Build errors, explained and fixed

When a Run stops with a compiler error, Mokxi AI reads the error with the code it points at and explains it in plain words: which line, what the compiler expected and why it did not get it. Mokxi’s build tab already explains the common errors on its own; Mokxi AI is for the ones it does not, and for the question "but why?".

Fix it goes further. Mokxi AI proposes the change as exact edits, Mokxi applies them to a copy of your file and compiles that copy in your browser with the same compiler Run uses. Only when it builds does the card say "Compiles" and offer Accept. Accept is one ordinary edit, so Ctrl+Z takes it back, and Not now leaves your code as it was. A fix that does not compile goes back to Mokxi AI once with the compiler’s error for a second try, which does not cost another question. The fix an AI could not get to build is never offered to you.

Help articles and a person, in the same place

The same panel searches Mokxi’s help articles, which open beside your work, and has a conversation with Dane, the person who makes Mokxi, for anything an AI should not be answering: a bug, a billing question, a school’s paperwork. If an answer from Mokxi AI was wrong, "Tell us" sends a report straight to the support inbox, with the chat only if you check the box.

What it sends, and to whom

With each question Mokxi AI sends your project as text, the help articles that best match the question and the last six messages of the chat. Nothing about you: no name, no email, no account details. "What is sent" in the panel shows the last question’s project text exactly as it went. Mokxi keeps none of the conversation: your browser keeps your last ten chats for a week, and Clear empties them. The privacy notice names the service that answers.

How many questions

Questions come back every day, like lives in a game. Mokxi AI answers signed-in accounts. A free account gets 5, the Pro trial 50, and the paid plans 100. The panel always shows how many are left. A question that fails before any answer arrives is handed back, and Fix it’s second try is free.

In a class, Mokxi AI is off unless the teacher turns it on for that class.

What it will not do

Mokxi AI never changes your project by itself. Every edit is a card you accept or not, and a fix is only offered once it compiles. Compiling is not the same as working, though: a sketch can build and still light the wrong LED, so press Run and watch the circuit, which is the point of having a simulator under the assistant.

Mokxi AI answers questions about electronics, code and Mokxi. It can be wrong, like any AI, which is why its fixes are compiled before you see them and why the simulator is one click away to check the rest.

Open this circuit in the editor. Arduino Uno: a button and an LED, to ask Mokxi AI about, wired as it runs at the top of this page. Change a part or a value and run it again.

Open the circuit

Questions

Is there an AI assistant for Arduino code?

Yes. Mokxi’s editor has Mokxi AI built in: it reads your sketch and circuit, explains build errors and proposes fixes that are compiled before you can accept them.

Is Mokxi AI free?

Every signed-in account gets questions every day: 5 on a free account, 50 on the Pro trial, 100 on Pro and the other paid plans, and 25 on Lifetime Pro.

Does Mokxi AI work with ESP32 and Raspberry Pi Pico sketches?

Yes. It knows which board the project is on and answers for that board, from an Uno to an ESP32, an ESP8266, a Pico or an STM32.

Can Mokxi AI change my code without asking?

No. It proposes a change as a card. Accept is yours, and only appears once the changed code compiles; Ctrl+Z undoes it.

What does Mokxi AI send with a question?

Your project text, the matching help articles and the last six messages of the chat, never your name or account. "What is sent" shows exactly what went.

Sources

Where the facts on this page come from

Build this for real

Open the editor, change a value and watch the number move with it. Nothing to install, and no account needed.