XtronicbyMechaflare
Runs in your browser — nothing to install

Build the whole machine.Buy none of the parts.

Xtronic runs your real Arduino code and solves the circuit it is wired into — voltages, currents, and anything those currents move. Read a sensor, drive a display, spin a gear train. It behaves the way the built thing would, and nothing you do to it costs a part.

Start building free →See it run

Whatever you can wire, you can run. Free to start, no downloads.

One board, one solve

Copper carries current, not colour. Every trace you draw is in the same solve as the code that drives it.

The real code, really running

Compiled by the genuine Arduino toolchain and executed instruction by instruction. Not a lookalike written to be “close enough.”

What you draw is what runs

The canvas is the machine, not a picture of it. Gears mesh when their teeth touch. Parts you sketch have real mass.

Honest about its limits

Every simulator is a model. Ours tells you where the model ends, in plain language, before you rely on it.

Why this exists

Hardware makes you pay for every mistake.

01

A mistake on screen costs nothing. The same mistake on a bench costs a burnt driver chip and two weeks waiting for replacements. The people most eager to experiment are the ones who can least afford to be wrong.

02

And every tool only covers half the project. Circuit simulators have never heard of your code. Code simulators fake the sensors, so they always tell you what you expected to hear. 3D tools animate motion no real current is driving. The moment your project does something physical — which is usually the moment it gets interesting — you are back to buying parts and guessing.

03

But a machine is one connected chain. Split it across three apps and every part looks fine while the real problem stays invisible: why the motor hums instead of turning, why the board resets when the gearbox binds, why code that worked on the bench stalls under load.

Your codesets a PWM valueCurrent flowsin the windingTorqueat the shaftGears turnratio from the teethThe load pushes backand the current changesyour code reads it back →

So Xtronic simulates the whole thing — and tells you how far it goes.

Who it is for

Four kinds of people, one problem.

Students and self-learners

Find out what a circuit really does without destroying a part to learn it. Wire it wrong, read the warning, wire it again.

Makers and robotics hobbyists

Work out the electronics and the firmware together, before ordering anything. Find out the design is wrong while it still costs nothing.

Teachers and course builders

Give a whole class working hardware with no kits, no breakage and no shipping. Everyone starts from the same wiring.

Hardware teams

Validate a board and its firmware before the prototype run, with the failure modes visible up front.

How it works

Three steps. One screen.

1

Draw your circuit.

Drag in a board, a sensor, an indicator, whatever the design needs. Wire pin to pin. If it has moving parts, drop a gear on a shaft and slide it until the teeth touch.

2

Write your code.

The same sketch you would upload to a real board. analogRead, Serial, the Servo library — all of it.

3

Press run.

Watch real physics. Voltages, currents, rpm and the serial monitor update as the machine actually behaves.

Parts library

Anything you can wire, you can run.

Most of what people build here never moves: a sensor read, an indicator, a timing loop, a circuit you want to understand before you solder it. Things that move are simply where other simulators stop and this one keeps going.

Electronics
Arduino Unoemulated
ESP32 DevKitbehavioral
9 V batterysupply
Resistorany value
Capacitorreal charge curves
Red LEDforward drop modeled
Pushbuttonmomentary
10 kΩ potentiometerdraggable knob
Buzzertone measured, no audio
DRV8833 motor driverswitches + body diodes
Mechanical
DC motorback-EMF coupled
SG90 servoclosed position loop
Stepper motor1.8° per step
Spur gears8, 16 and 32 teeth
Friction brakeadjustable load
Crank–slider linkagerotation to travel
Your own 3D partssketch, extrude, revolve

Everything in this list is wired on the same canvas and solved together — there is no separate mechanical mode to switch into.

Features

What you actually get.

Real code execution

Your sketch behaves the way it will on the bench.

Sketches are compiled by the genuine Arduino toolchain and executed instruction by instruction, so timing is timing. delay(), millis(), Serial, PWM and the Servo library work because it is the same compiled code. Serial monitor included.

Read a potentiometer and the number comes from the wiring you drew — not from a stand-in that always tells you what you expected.

D9 — 490 HzI(motor) — freewheel decay
pitch circles touching = meshedbacklash dead zone · per-stage loss · tooth skip
Moving parts

Build the mechanism by building the mechanism.

Drop a gear onto a motor and it shares the shaft. Slide two gears until their teeth touch and they mesh, with the ratio taken from the tooth counts — not from a settings field. Backlash, friction losses and tooth-skip under excess torque are all modeled.

The motor's own back-EMF feeds into the same solve that lights your LEDs, so loading the drivetrain changes what the circuit does.

Your own 3D parts

Sketch a part, and the machine has to move it.

Draw a 2D outline, extrude or revolve it into a solid with real mass. It collides with everything else in the scene, and the collision genuinely loads the motor turning it. A mesh editor — grab, rotate, scale, extrude, bevel — is built in.

A live 3D view shows the assembly moving, animated by the same physics running the simulation.

profile → extrude → rigid bodyexact mass computed from the geometry
Saved projects

Close the tab. Come back to the same machine.

Circuits, code, 2D sketches and 3D bodies are stored to your account and reopen exactly as you left them — wires, gear positions, sketch text and all.

CIRCUITparts + wires
CODEone sketch per board
MECHANICSgear placement
3Dsketches + bodies
Failure modes

Stall it. Jam it. Overload it.

The interesting part of hardware is what happens when it goes wrong — and every kind of wrong is available here. On a bench that costs money and a week of waiting. Here it costs a click.

Stall the motor

Current spikes just like on a bench — with an overload warning instead of smoke.

Overload the servo

It fails to hold its position, the way a servo asked for too much torque actually does.

Overload the stepper

It skips steps and loses position — the failure that is hardest to spot on real hardware.

Jam a mechanism

The whole drivetrain stalls, and you can watch the current climb as it happens.

The limits

How far does the simulation go?

Every simulator is a model. Ours tells you where the model ends — before you rely on it, not after.

Exact
Arduino Uno. Emulated instruction by instruction — timing, PWM and the serial port behave like the real chip.
Your code. Compiled by the genuine Arduino toolchain, not reinterpreted.
Saved projects. Round-trip exactly as you left them.
Modeled
The circuit. Solved continuously from your wiring — real voltages and currents, capacitors charging on real curves.
Moving parts. Physics, not animation: torque, back-EMF, backlash, friction loss, tooth skip.
ESP32. Behavioral — real compiled C++ against modeled peripherals. Not the same fidelity as the Uno.
Not there yet
Thermal behavior. Nothing heats up. A part that would cook on a bench keeps running here.
Buzzer audio. Tone output is simulated, but you will not hear it.
ESP32 networking. WiFi, MQTT and HTTP are simulated stand-ins, not real connections.
Under the hood

For the part of you that wants to know it is real.

You do not need any of this to use Xtronic. It is here because the difference between a simulator and an animation is exactly this list.

The solver

SPICE-class maths, not a lookup table

Your circuit is solved by Modified Nodal Analysis, with backward-Euler transient analysis running while your code does — the same class of maths professional circuit simulators use. Capacitors charge on real curves, and motor winding inductance turns a PWM signal into genuinely chopped current with freewheeling through the driver’s body diodes.

Locked-step co-simulation

The chip and the circuit advance together

Every time a pin changes, the circuit is re-solved and the result is fed straight back into the chip. digitalRead and analog readings come from your wiring, not from stubs. Servo pulse widths and buzzer tones are measured from the real signal edges.

The driver stage

A DRV8833 built out of hardware, not rules

The driver is modeled as switches and body diodes, so forward, reverse, coast and brake all emerge from the circuit itself — including regenerative braking that circulates current with zero battery draw.

Mechanical physics

480 substeps a second, meshing as a constraint

Gear meshing is solved as a physical constraint: backlash dead zones, per-stage efficiency loss, and tooth skip once the tooth-force limit is passed. Motor back-EMF is fed back into the electrical solve, so mechanical load changes what the circuit does.

Closed-loop actuators

A servo that can actually fail to hold

The servo runs a real position-control loop inside its published torque-speed envelope: it slews at the real spec speed, holds position, and fails to hold if you overload it. The stepper runs against a detent torque and misses steps under load.

Mass properties

Exact, not estimated

Parts you sketch get exact mass, centre of mass and inertia computed from their geometry. Concave shapes are decomposed into up to 24 collision hulls, so a curved cradle actually cradles.

Verified, not eyeballed.

The physics is checked against values worked out by hand — because a simulator that produces plausible-but-wrong numbers is worse than none at all.

Hand-checked against theory:
stall current · RC charge curves
gear ratios · servo slew rate

Pricing

Start free. Grow if you need to.

Free
₹0
free forever — for students and first projects
·Full simulator — code, circuit, mechanics
·3 saved projects
·Arduino Uno board
·Community support
Start free
Pro
₹50 /month
billed monthly, cancel any time
·Everything in Free
·Unlimited saved projects
·ESP32 board (behavioral)
·3D design and mesh editor
·Priority support
Start with Pro
Education
₹30 /seat /month
for schools, classes and courses
·Everything in Pro
·Class rosters and shared starting circuits
·Up to 60 students per class
·Onboarding for instructors
Contact us
FAQ

Questions worth asking first.

No. Xtronic runs in the browser. There is nothing to download, no toolchain to set up on your machine, and nothing to keep updated.

Break it here, where breaking it is free.

Start building free →