Wokwi - amazing Arduino simulator

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

So I was just watching... 

 

https://youtu.be/sFGsYZ0Hszk

 

(which is already pretty amazing - love the idea of display bound to a pot!) 

 

But do you see what he's doing in this video? He's using a website called

 

https://wokwi.com/projects/new/a...

 

This is an online, interactive Arduino simulator but the truly amazing thing is that they are not only simulating Arduino but they have full simulation of some of the most advanced peripherals you might attach to an Arduino. 

 

To try it out I went for something simple. First I started an Uno project. Then I added an LED and a pot. For each if you touch one of the contacts/pads it highlights the pads you might want to attach it to. Touch that and it adds a wire. So I put one of the LED pins on a digital IO. I connected the other leg of the LED and Vcc/Gnd of the pot to power rails. Then the pot slider to an analog IO. 

 

Then I wrote some Arduino code in its editor to set the LED pin to output. Then in loop I had it read the pot so it should return 0 to 1023 and put the LED on above 512.

 

All that took 2-3 minutes. Result is.. 

 

https://youtube.com/shorts/rRlo_...

 

 

EDIT: So based on feedback I modified the thing a bit:

 

https://wokwi.com/projects/33117...

 

 

So in a desktop browser you can see code and simulation side by side. I added a 330ohm resistor to the LED and I used the fact that when adding wires you can click extra "turn points" to make the routing of the wires clearer.

 

If you "save" (and I also downloaded the .zip) then the project gets assigned a fixed URL so you can get back to it easily.

 

Last Edited: Mon. May 9, 2022 - 10:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

It allows no resistor in the LED.

Seen this too many times in our local Makers hub.

For realism maybe LED should have a magic smoke emission.

Do you know what the thread is about and are Comprehending what has been said ?

Last Edited: Sat. May 7, 2022 - 07:50 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kerlin wrote:
It allows no resistor in the LED.
Even in the real world OK for just tested.(a.k.a not products)

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh I knew all about the lack of resistor but I can live with that. Think I'll try an SSD1306 display next (and yeah I bet it'll work without SDA/SCL pull ups too) 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Think I'll try an SSD1306 display next (and yeah I bet it'll work without SDA/SCL pull ups too) 
yes As long as not for product.

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

Last Edited: Sun. May 8, 2022 - 03:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cliff,

 

it might be interesting to pin this post to the top of the forum. might be interesting for a lot of people coming here......

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meslomp wrote:
pin this post to the top of the forum.
Done.

 

BTW the attention to detail on this thing is amazing. I love the fact that even https://wokwi.com/projects/29195... works !

Last Edited: Mon. May 9, 2022 - 10:49 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
BTW the attention to detail on this thing is amazing. I love the fact that even https://wokwi.com/projects/29195... works !

 

That is something for the King to play with........ ;)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meslomp wrote:
it might be interesting to pin this post to the top of the forum. might be interesting for a lot of people coming here......
The Proteus either.

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Perhaps I didn't emphasise the point strongly enough but one of the key things here is that this simulator (and code editor that does auto completion unlike the real Arduino IDE so is arguably a better place to author your Arduino code!) that are so slick and professional looking are totally and entirely free.

 

(I'm tempted to find out what's involved in becoming a contributor and writing some more simulation modules to add even more value to the thing) 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you ever encounter someone who complains about why modern internet browsers are large heavyweight programs ? Just show them this brilliant simulator.

 

Q: When does a web browser become an operating system ?

Ans: I think it already has.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

and code editor that does auto completion unlike the real Arduino IDE

 

+100! What's up with that developers? surprise

Wayne

East London
South Africa

 

  • No, I am not an Electronics Engineer, just a 54 year old hobbyist/enthusiast
  • Yes, I am using Proteus to learn more about circuit design and electronics
  • No, I do not own a licensed copy of Proteus, I am evaluating it legitimately
  • No, I do not believe in software or intellectual property piracy or theft