TINKER PiEDESIGN IN INDIA

Free online Arduino simulator: Arduino Uno and Nano in your browser

TinkerPieCircuit lets students build circuits around an Arduino Uno or Arduino Nano, write Arduino C++ and watch it run, all in the browser. Nothing to install, and nothing burns out for real.

Open the Arduino simulator

How to start

  1. Open TinkerPieCircuit and log in with your free TinkerPie account (or create one). Choose Arduino Uno or Arduino Nano under Board in the toolbar.
  2. Pick an example from Examples → Arduino Uno and Nano, or add parts from the list and click two pins to draw a wire.
  3. Write your sketch in the Code tab, the same way as in the Arduino IDE, and press Start.
  4. Change a wire or a line of code and try again. The Serial monitor shows what Serial.println() prints.

Arduino examples to try

Each link opens the circuit, already wired, with its code. They work on both the Uno and the Nano.

Arduino C++ that runs as written

Students can paste classroom sketches from the Arduino IDE. This one reads a knob on A0 and dims an LED on pin 9:

// Paste this into the simulator: it runs as written.
const int ledPin = 9;

void setup() {
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  int knob = analogRead(A0);          // 0 to 1023
  analogWrite(ledPin, knob / 4);      // 0 to 255
  Serial.println(knob);
  delay(100);
}

Supported: void setup() and void loop(), int, float, long, #define, arrays, pinMode, digitalWrite, digitalRead, analogRead, analogWrite, tone, noTone, millis, delayMicroseconds, pulseIn, map, constrain, Serial.print and the Servo library. Programs can also be written in JavaScript.

What works like a real Arduino

FeatureArduino UnoArduino NanoTinkerPie V1
ChipATmega328PATmega328PESP32-S3
Pin voltage5 V5 V3.3 V
Digital pins0 to 130 to 13S1 to S4, P10 to P13, P43, P44
Analog inputsA0 to A5A0 to A7 (A6, A7 input only)Any pin
analogRead() range0 to 10230 to 10230 to 4095
PWM (analogWrite)3, 5, 6, 9, 10, 113, 5, 6, 9, 10, 11Any pin
Built-in extrasL LED on pin 13L LED on pin 13RGB matrix, A/B buttons, buzzer

The simulator also teaches safe wiring: an LED without a resistor burns out, a pin giving more than 40 mA shows a warning, and a short circuit is flagged straight away.

Sensors and parts to wire

More than 100 parts, including the HC-SR04 ultrasonic sensor, potentiometer, light sensor (LDR), LM35 temperature sensor, PIR motion sensor, relay module, LCD, OLED display, traffic light module and joystick. See all 47 accessories with wiring guides.

From the simulator to a real Arduino

When the circuit works on screen, build it for real. Hardware Programming compiles your sketch and uploads it to an Arduino Uno, Nano or ESP32 over USB from Chrome or Edge, with no Arduino IDE (step by step: upload Arduino code from the browser). New to the language? Read From blocks to Arduino C++.

Questions

Is the Arduino simulator free?

Yes. TinkerPieCircuit is free and runs in the browser. You log in with a free TinkerPie account (the same one for all the TinkerPie tools), which also saves your circuits in My Projects.

Do I need to install the Arduino IDE?

No. The simulator runs in a modern web browser on a laptop or tablet. When you want to put the program on a real Arduino, Hardware Programming compiles and uploads it from the browser too (Chrome or Edge).

Can I paste my Arduino IDE sketch?

Yes, for classroom sketches: void setup() and void loop(), int and float variables, #define, arrays, digitalWrite, digitalRead, analogRead, analogWrite, tone, millis, pulseIn, Serial.print and the Servo library all work. Other libraries are not simulated, and delay() works inside setup() and loop() but not inside your own functions.

Does it behave like a real Arduino Uno?

Closely: pins are 5 V, analogRead() gives 0 to 1023, analogWrite() dims only on the PWM pins 3, 5, 6, 9, 10 and 11, whole-number maths and map() round like Arduino, and the L LED on pin 13 lights up. LEDs without a resistor burn out, and the simulator warns when a pin gives too much current.

What is the difference between the Uno and the Nano in the simulator?

Both use the ATmega328P with the same pins 0 to 13 and A0 to A5. The Nano also has A6 and A7, which are analog inputs only, and it is smaller. Every Arduino example works on both.

Which parts can I use?

More than 100 parts: LEDs, RGB LEDs, resistors, buttons, potentiometers, light and temperature sensors, ultrasonic and IR sensors, buzzers, servos, motors, relays, displays and meters.