Wokwi logo

Prototyping in a rush? No time for physical prototype? Simulate it!

Wokwi logo

Learn more about simulating a physical prototype. Wokwi is a great simulator that you can use to build your electronics projects online, without the need to get components, wire them on a breadboard and then test. If you combine it with Chat GPT to do the coding, you can have your prototype up-and-running in literally minutes.

Browse examples

From the Wokwi homepage, you can browse featured projects, or start from a template setup. Eg. click ‘Pi Pico’ for a Raspberry PI Pico project, or from the guides choose either “MicroPython” or “CircuitPython” to get started with those. For an Arduino-based project click ‘Arduino’, then pick your model from there:

Or get started with an example that already looks promising, and go from that (import it to your own projects via ‘Save a copy’).

Browse some of my projects:

Start with a breadboard

Start with a new project, pick a micro controller, like the Arduino Nano. Then add a breadboard. First click the ‘+’:

Then type breadboard and pick the full size:

Place the Arduino (drag it on the right spot on the board) and add more components. Here we add an LED and a 220 Ohm resistor:

While the resistor is selected, rotate it Rotate icon and set the proper value of 220 Ohm. The LED must be flipped also, using the flip icon Flip icon

Add wires (draw lines by clicking). To change the color of a wire, select it, and choose the color:

As you can see we connected the anode of the LED (left leg in picture) to the 3.3V pin of the Arduino, and the other to Ground, via the resistor. This should make the LED turn on if we run the simulation (press the Play-icon ):

Stop the simulation (stop icon).

Now, remove the green wire by selecting it and then press the Delete key on your keyboard (or use the trash icon). Draw a new wire to connect the LED to pin D2:

Now we will insert code from the Blink example into the code pane (sketch.ino):

Note that at line 25, the #define is added to reflect the pin we use. And at lines 30, 35, 37 the LED_BUILTIN is replaced by that LED_PIN.

If all went well, you should now see a blinking LED if you click the Run icon.

See my version of this project here.

Need a video demo of this? Check out this video tutorial.

More help on using the diagram editor is available here.