Virtual Online Raspberry Pi Pico Simulator - Blink an LED
by sharepksn in Circuits > Raspberry Pi
71 Views, 1 Favorites, 0 Comments
Virtual Online Raspberry Pi Pico Simulator - Blink an LED

Welcome to my tutorial. In this tutorial, we will see how to blink an LED using the Raspberry Pi Pico online Simulator. Let us begin!
A - Editor window where you write code
B - Simulator window
C - RUN simulation button
D - Add Item Button
E - LED
F- Wires
G - Rspberry Pi Pico Simulator
Supplies
online free simulator: www.wokwi.com
Add an LED

- To add the LED, click on the purple Plus icon in the simulator window.
- You will get many options.. Choose the LED.
- By default color of the LED is Red. you can change the color of the LED in the diagram.json file if you want!
Add the Raspberry Pi Pico Element

- The Arduino and Pico boards are not in the "ADD" icon list. to add the boards, you need to go to the diagram.json file.
- you can follow the image. visit https://docs.wokwi.com for the complete list
Connect the LED and the Raspberry Pi Pico Using Wires

- Click and drag is supported
- you can drag the elements to the right position
- Click on the pin of the LED using your mouse. Then complete the routing by clicking on the destination pin
- Repeat the same for the other pin of the LED
- image shows how it will look
The Software

The software is simple
We use the same style as Arduino programming in this example
- The LED is connected to pin number 2 (GPIO 1) of the Raspberry Pi Pico
- The SETUP() function and LOOP() function works the same as in the Arduino environment
The code is shared below as well
#define RED 1 void setup() { pinMode(RED, OUTPUT); } void loop() { digitalWrite(RED, HIGH); delay(2000); digitalWrite(RED, LOW); delay(2000); }
Raspberry Pi Pico Simulator in Action - Execution

Click on the RUN simulation button to see the Raspberry Pi Pico simulator in action! The LED will turn off and turn on every 2 seconds.
Support - Feedback - Suggestions

- Discord channel
- The link to the project online -
- Documentation of wokwi Simulator
Please visit my other articles as well