5 comments

  • dmonterocrespo13 minutes ago
    If anyone wants a quick thing to try in the simulator, here&#x27;s a simple LED blink example with Serial output:<p>void setup() { pinMode(13, OUTPUT); Serial.begin(9600); }<p>void loop() { digitalWrite(13, HIGH); Serial.println(&quot;LED ON&quot;); delay(500);<p><pre><code> digitalWrite(13, LOW); Serial.println(&quot;LED OFF&quot;); delay(500);</code></pre> }<p>In Velxio you can connect an LED to pin 13 and watch it blink, while the Serial Monitor prints the messages in the terminal.
  • I built a small emulator project called Velxio.<p>A fully local, open-source Arduino emulator. Write Arduino code, compile it, and simulate it with real AVR8 CPU emulation and 48+ interactive electronic components,All running in your browser. GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;davidmonterocrespo24&#x2F;velxio" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;davidmonterocrespo24&#x2F;velxio</a><p>The goal of this project was to learn more about how emulators work internally: CPU instructions, memory management, and low-level architecture.<p>It&#x27;s still experimental, but it already runs basic instructions and I&#x27;m continuing to improve it.
    • dosshell1 hour ago
      What parts have you exactly built?<p>All I see are dependencies that are glued together with claude.<p>Can you clearify exactly what you have developed?
      • dmonterocrespo19 minutes ago
        I built specifically:<p>The browser-based IDE (editor, project handling, UI)<p>The circuit simulation layer that connects components to the emulator<p>The glue between the AVR8 emulator and the virtual peripherals (GPIO, UART, SPI, etc.)<p>The component interaction system (buttons, LEDs, displays, etc.)<p>The architecture that lets compiled Arduino sketches run and interact with the simulated hardware<p>Some parts like the AVR CPU emulation and the compiler toolchain obviously come from existing projects, but the goal of Velxio wasn&#x27;t to re-implement an AVR core from scratch. It was to build a usable environment where all of these pieces work together in the browser.<p>I&#x27;m still having trouble connecting the cables and components properly. I&#x27;m looking for a better algorithm. I&#x27;m also trying to create a real-world electronics simulator in JavaScript using an engine like CircuitJS1.
    • Hi HN!<p>I built Velxio to explore how microcontroller emulators work internally.<p>It&#x27;s an Arduino environment that runs entirely in the browser. You can write sketches, compile them with arduino-cli, and simulate circuits using a real AVR8 CPU emulator.<p>Features: - Arduino Uno &#x2F; Nano support - Raspberry Pi Pico (RP2040) - GPIO, SPI, I2C, UART, ADC peripherals - interactive electronic components<p>The goal is to create an open-source environment for experimenting with embedded systems without installing anything.<p>I&#x27;d love feedback from embedded developers!
    • tamimio2 hours ago
      Thanks for the share, it looks great! Can I load my own OS in rpi?
      • monocasa2 hours ago
        Did you see that it&#x27;s an rpi pico, which doesn&#x27;t really run OSes in the traditional sense?
        • tamimio1 hour ago
          You are right, when I skimmed through I thought it’s an sbc one. Still very cool, would try it later.
          • dmonterocrespo17 minutes ago
            Yeah exactly ,the Pico (RP2040) is a microcontroller rather than a full SBC, so it doesn&#x27;t run a traditional OS like Linux.<p>In the future I&#x27;d like to support more low-level experimentation though (bare-metal programs, custom runtimes, etc.).<p>Thanks for checking it out!
  • zellyn53 minutes ago
    See also: <a href="https:&#x2F;&#x2F;wokwi.com" rel="nofollow">https:&#x2F;&#x2F;wokwi.com</a> (ESP32 equivalent)<p>[Edit] Which also does Arduino.
    • dmonterocrespo16 minutes ago
      Yes! Wokwi is great and definitely served as inspiration for Velxio. My goal with this project was mainly to explore how microcontroller emulators work internally and experiment with building parts of that stack myself.
  • platevoltage3 hours ago
    Very cool. I can&#x27;t wait to play around with this!
    • dmonterocrespo16 minutes ago
      Thanks! Hope you enjoy trying it out. feedback is always welcome.
  • noahnathan255 hours ago
    This is amazing!