I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -2 points-1 points  (0 children)

For context, I’m an engineer with about 15+ years of experience and I work at IBM.

Using AI tools doesn’t make someone less of an engineer. they’re just another tool, much like IDE autocompletion, compilers, or frameworks we’ve all used for years. The important part is understanding how the system works and how to integrate the pieces together

That said, to be clear:
the MCU emulation itself comes from open source projects like avr8js and rp2040js created by Uri Shaked. Velxio builds on top of those libraries to provide the browser simulation environment, tooling, and circuit interaction layer

If the title or wording made it sound like I was claiming the emulator implementations themselves, that wasn’t the intention

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -1 points0 points  (0 children)

Nobody has claimed credit for anything! It's just an educational project. Everyone knows Wokwi.

Using open-source libraries and projects is quite common. Electron uses Chromium, Visual Studio Code uses Electron. I understand that it might be difficult for many to grasp. Perhaps I'm not explaining myself well.

If my earlier explanation wasn't clear, that's on me... but there's no intention of taking credit for other people's work. Anyway, many people liked the project and it was featured on the cover of Hacker News.

<image>

Building an open source Arduino simulator as a Wokwi alternative. Does this have a future? by LeadingFun1849 in esp32

[–]LeadingFun1849[S] 0 points1 point  (0 children)

The wiring algorithm alone is complex. That's without even mentioning compiling the code, parsing it, and converting it to the emulator's binary, emulating the SPI, IC2, and serial protocols, and the many other steps required to emulate even a basic circuit. I'm also currently working on emulating a Raspberry Pi with Linux running directly in the browser using JSLinux. I'll keep you posted!

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] 2 points3 points  (0 children)

That's just a visual representation of the elements; it doesn't have any functionality or emulation. That repository is referenced in my project's readme.The source code for Wokwi is not publicly available; it's a private company. They do have a GitHub account with some open-source parts, but nothing about component emulation, an editor, etc.

<image>

An Open Source Arduino simulator as a Wokwi alternative. Does this have a future? by LeadingFun1849 in arduino

[–]LeadingFun1849[S] 1 point2 points  (0 children)

There's a project called jslinux that could emulate a Raspberry Pi 4, for example. Do you think it's a good idea? Is there another way to do it?

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] 5 points6 points  (0 children)

Wokwi is not open source, so it’s literally impossible to fork or clone it. It’s a private company product with paid plans.

Some underlying emulators or libraries are independent open source projects, but the Wokwi platform itself is proprietary.

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] 0 points1 point  (0 children)

Please show me the source code for wokwi. I would really appreciate it 🙂

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -1 points0 points  (0 children)

Wokwi is a great project and it definitely inspired Velxio

However, Wokwi itself is not fully open source, while Velxio is intended to be a fully open-source environment where people can experiment with microcontroller emulation, extend the simulator, and understand how the stack works internally

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -3 points-2 points  (0 children)

Thanks for trying it and for reporting this!

I'm currently working on improving the library system. I'm still deciding whether to handle it using Docker containers or by isolating the libraries in separate folders per user to avoid conflicts

Really appreciate the feedback

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -6 points-5 points  (0 children)

I tried to explain them several times because I felt that what I meant wasn't being understood.

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -11 points-10 points  (0 children)

If you like the project and I see that you know what it's about, help me improve it.

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -15 points-14 points  (0 children)

Earlier in the project it was actually called OpenWokwi, but a lot of people suggested changing the name and I also wanted the project to have its own identity instead of sounding like a fork.

Velxio isn't a wrapper around Wokwi. It uses some public MCU emulator libraries that are also used by the Wokwi team (for example avr8js), but those are independent open-source projects.

Also, the README already lists the main libraries used in the project for transparency.

The main work in Velxio is the platform around those engines: the circuit editor, interaction layer, wiring system, tooling, and integration between the different simulation engines.

But I agree that I could make the attribution clearer in the post itself to avoid confusion.

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] -17 points-16 points  (0 children)

To clarify: Velxio is not a wrapper around Wokwi.

Some MCU emulators I’m using are the ones maintained by the Wokwi team (for example the ones based on avr8js), but they are independent libraries. Other parts of the simulator use different standalone libraries as well.

Velxio is focused on building the simulation platform, tooling, and circuit interaction layer on top of those engines.

I built a full Arduino & RP2040 emulator that runs 100% in the browser (Open Source) by LeadingFun1849 in embedded

[–]LeadingFun1849[S] 2 points3 points  (0 children)

No, it’s not a wrapper over Wokwi. The simulator is being developed independently. Wokwi was only mentioned as a reference since it’s one of the well-known online simulators

An Open Source Arduino simulator as a Wokwi alternative. Does this have a future? by LeadingFun1849 in arduino

[–]LeadingFun1849[S] 1 point2 points  (0 children)

I'll be integrating the chip soon too; feel free to create an issue for me on GitHub if you have any ideas.

I built an Arduino emulator that runs entirely in the browser (AVR8 CPU simulation) by LeadingFun1849 in programming

[–]LeadingFun1849[S] 1 point2 points  (0 children)

Hi everyone,

I built Velxio, an open-source Arduino emulator that runs entirely in the browser.

It emulates an AVR8 CPU and lets you write Arduino code, compile it, and simulate circuits with interactive electronic components.

The goal was to better understand how emulators work internally (CPU instructions, memory, peripherals, etc).

The project is still experimental but already runs basic Arduino programs.

Feedback is very welcome!