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.
How to start
- Open TinkerPieCircuit and log in with your free TinkerPie account (or create one). Choose Arduino Uno or Arduino Nano under Board in the toolbar.
- Pick an example from Examples → Arduino Uno and Nano, or add parts from the list and click two pins to draw a wire.
- Write your sketch in the Code tab, the same way as in the Arduino IDE, and press Start.
- 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.
- Blink
The built-in L LED on pin 13 and an LED on pin 9 blink together.
- Button and LED
Hold a push button on pin 2 to light an LED, using INPUT_PULLUP.
- Fade an LED
Dim an LED up and down with analogWrite() on a PWM pin.
- Knob dimmer
Read a potentiometer on A0 (0 to 1023) and set the LED brightness.
- Traffic light
Red, green and yellow on pins 12, 11 and 10 with #define.
- Servo with a knob
The Servo library: turn the knob and the servo follows.
- Distance alarm
An HC-SR04 ultrasonic sensor with pulseIn() and a buzzer.
- Thermometer
A temperature sensor on A0, degrees on the Serial monitor.
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
| Feature | Arduino Uno | Arduino Nano | TinkerPie V1 |
|---|---|---|---|
| Chip | ATmega328P | ATmega328P | ESP32-S3 |
| Pin voltage | 5 V | 5 V | 3.3 V |
| Digital pins | 0 to 13 | 0 to 13 | S1 to S4, P10 to P13, P43, P44 |
| Analog inputs | A0 to A5 | A0 to A7 (A6, A7 input only) | Any pin |
| analogRead() range | 0 to 1023 | 0 to 1023 | 0 to 4095 |
| PWM (analogWrite) | 3, 5, 6, 9, 10, 11 | 3, 5, 6, 9, 10, 11 | Any pin |
| Built-in extras | L LED on pin 13 | L LED on pin 13 | RGB 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.