Web 🌐Based Arduino Simulator From Wokwi-2020💛

by sharepksn in Circuits > Arduino

2225 Views, 5 Favorites, 0 Comments

Web 🌐Based Arduino Simulator From Wokwi-2020💛

wokwi Arduino Simulator web based (5).png

Wokwi Arduino Simulator runs on AVR8js platform. It is a web based Arduino Simulator. Arduino Simulator runs on web browser. hence, this is earning more attention and honestly, this has many positive points compared to other simulators available out there.

The best part is that it is updated all the time where as many of the other simulators have stopped giving update, unfortunately.

Simulating FastLEDs Using Arduino Simulator in a Browser

2020-09-23_14h57_59.png

The FastLEDs are individually addressable LEDs that can be controlled using Arduino. To simulate the FastLEDs on Arduino, we will use any browser.

  1. Open any web browser
  2. Go to the FastLED simulation library link
  3. Choose one of the built-in examples
  4. For this example, we choose the DemoReel project.
  5. Once you open the link, you will see the simulation window shown in the image
  6. Click on the START button to run the project
  7. Once the sketch compiles and starts running on the Arduino Simulator page, it will display the time.
  8. The time corresponds to the execution time of the code and will be slower than the real-time.
  9. The performance meter in the top left page of the wokwi Arduino simulator indicated how much is the efficiency of the simulator compared to real-time execution.
  10. Feel free to STOP the code execution, edit the code, change the number of LEDs, the color type, or other features.
  11. Since the Arduino simulator runs on the web browser directly the result can be observed on the same page.
  12. The modified code can also be shared with others using the share option!

How to Run Servo Motor Simulation on Wokwi Arduino Simulator

2020-09-23_15h23_41.png

Servo motor is the basic element in robotics as well as automation and there are quite a number of projects available on GitHub. To simulate the Servo motor on the wokwi Arduino Simulator page, follow the below instructions

  1. Go to Servo motor library page
  2. Select any of the available examples
  3. Let us choose the sweep example for Arduino simulation
  4. The wokwi Arduino Simulation will open and will look similar to the image shown
  5. Click on the start button in the simulation window
  6. The Servo motor will start running in the simulation
  7. Tinker with the code on the left to change the speed of rotation or change the limits on the angle the motor can rotate
  8. New features are being added every week
  9. Feel free to share the code of use it in your projects as well :)

How to Simulate the Arduino SSD1306 on Wokwi Arduino Simulator

2020-09-23_15h44_56.png

SSD1306 OLEDs are a very attractive and easy way of bringing HMI features into the system. Arduino Simulator from Wokwi supports OLED displays as well. here are a few steps on how to visualize your sketch on the Arduino Simulator.

  • Visit Wokwi Arduino Simulator page
  • Choose any of the examples
  • Let us see one of the examples from the Adafruit library
  • The simulation window will open and looks as shown in the image (Wokwi Arduino simluator gets updates frequently, hence there is a chance that the look and feel might be different)
  • You can comment on any of the functions in the sketch and hit the start button again. The simulation will then run for he modified sketch almost instatntly
  • If you have your own sketch, you can also run and tinker with it
  • There are also built in examples in the libraries for SSD1306 displays which you can play with

A Collection of Simulated Elements From Wokwi Arduino Simulator

wokwi Arduino Simulator web based (19).png
wokwi Arduino Simulator web based (20).png
wokwi Arduino Simulator web based (23).png
wokwi Arduino Simulator web based (22).png
wokwi Arduino Simulator web based (27).png
wokwi Arduino Simulator web based (24).png
wokwi Arduino Simulator web based (26).png
wokwi Arduino Simulator web based (28).png

Feedback for Improvement

wokwi Arduino Simulator web based (54).png
wokwi Arduino Simulator web based (67).png
wokwi Arduino Simulator web based (46).png
wokwi Arduino Simulator web based (7).png
wokwi Arduino Simulator web based (15).png
wokwi Arduino Simulator web based (10).png
wokwi Arduino Simulator web based (25).png
wokwi Arduino Simulator web based (59).png
wokwi Arduino Simulator web based (36).png
wokwi Arduino Simulator web based (12).png
wokwi Arduino Simulator web based (11).png
wokwi Arduino Simulator web based (45).png
wokwi Arduino Simulator web based (37).png
wokwi Arduino Simulator web based (9).png
wokwi Arduino Simulator web based (51).png
wokwi Arduino Simulator web based (56).png
wokwi Arduino Simulator web based (62).png
wokwi Arduino Simulator web based (63).png
wokwi Arduino Simulator web based (61).png
wokwi Arduino Simulator web based (58).png
wokwi Arduino Simulator web based (21).png
wokwi Arduino Simulator web based (14).png
wokwi Arduino Simulator web based (33).png
wokwi Arduino Simulator web based (55).png
wokwi Arduino Simulator web based (31).png
wokwi Arduino Simulator web based (13).png
wokwi Arduino Simulator web based (48).png
wokwi Arduino Simulator web based (30).png
wokwi Arduino Simulator web based (16).png
wokwi Arduino Simulator web based (43).png
wokwi Arduino Simulator web based (38).png
wokwi Arduino Simulator web based (44).png
wokwi Arduino Simulator web based (64).png
wokwi Arduino Simulator web based (40).png
wokwi Arduino Simulator web based (42).png
wokwi Arduino Simulator web based (47).png
wokwi Arduino Simulator web based (53).png
wokwi Arduino Simulator web based (49).png
wokwi Arduino Simulator web based (50).png
wokwi Arduino Simulator web based (6).png
wokwi Arduino Simulator web based (8).png
wokwi Arduino Simulator web based (2).png
wokwi Arduino Simulator web based (1).png
wokwi Arduino Simulator web based (4).png
wokwi Arduino Simulator web based (32).png
wokwi Arduino Simulator web based (3).png
wokwi Arduino Simulator web based (57).png
wokwi Arduino Simulator web based (60).png
wokwi Arduino Simulator web based (52).png
wokwi Arduino Simulator web based (17).png
wokwi Arduino Simulator web based (18).png
wokwi Arduino Simulator web based (34).png
wokwi Arduino Simulator web based (35).png
wokwi Arduino Simulator web based (39).png
wokwi Arduino Simulator web based (65).png
wokwi Arduino Simulator web based (66).png
wokwi Arduino Simulator web based (41).png
wokwi Arduino Simulator web based (29).png

Arduino community feedback from multiple sources has helped a lot to make the tool more user friendly.

I appreciate if you can take a minute to share your experience and feedback to make this tool better 😀

Other links you might be interested in 😀

https://www.instructables.com/Best-Free-Online-Wok...

https://www.instructables.com/Web-Based-Arduino-Si...

https://www.instructables.com/Online-Arduino-Simul...

https://www.instructables.com/How-to-Simulate-Ardu...

https://www.instructables.com/Famous-Simon-Says-Ga...

https://www.instructables.com/How-to-Runtest-Your-...