This open-source app changed how I approach ESP32 projects


DIY ESP32 projects can be a cost-effective way to build your dream smart home, especially if you’re looking for something unique that doesn’t exist in retail form. Unfortunately, planning and researching a project can be time-consuming and tedious. That is where Velxio comes in.

Developing ESP32 projects takes time

Planning is everything

An ESP32 development board mounted to a breadboard with jumper wires connecting another breadboard. Credit: Patrick Campanale / How-To Geek

Every one of my ESP32 projects required the same first step: exhaustive planning.

The first thing I always do is figure out exactly what I’m going to need to make a project work. What board is the easiest to use? What sensors or libraries are necessary? Are there specific libraries available that make this project easier? Do the libraries actually work with all of the components involved?

It is a ton of work and highly theoretical—sometimes things just don’t work for one reason or another. Sometimes it is obvious, other times it requires extensive debugging.

Reality has a great way of turning my heavily-researched plan into a project that requires three revisions (not including code tweaks) before it works correctly.

Velxio is a local ESP32 simulator

The most valuable tool I’ve started using recently is an open-source ESP32 simulator, Velxio.

Velxio allows me to simulate the behavior of an ESP32 board. If you’ve used Wokwi before, the ideas are very similar. The major difference is that Velxio runs locally in a Docker container, either on your PC or server.

I do like the fact that my designs stay on my PC and that I’m not dependent on a third-party service. If I’m traveling, I can just connect to my home network to use Velxio, or install it on my laptop, if I don’t have an internet connection at all.

Write code before you buy a board

One of the most time-consuming parts of any project involving a microcontroller is programming. Even if you manage to find a project that does what you want, there is a good chance you’ll need to make adjustments, small updates, or customizations to make it fit what you had in mind.

An ESP32 development board mounted to a breadboard with jumper wires connecting another breadboard.


Why my next microcontroller will be an ESP32, not a Raspberry Pi Pico

The ESP32 does everything a Pi Pico does, but costs less and lasts 100x longer on batteries

Velxio allows you to start writing code, testing libraries, and experimenting with different open-source projects before any of your physical parts arrive in the mail.

Test an entire project before you buy anything

Velxio isn’t limited to coding, either. You can also use it to simulate your hardware in advance.

That is useful in two different ways. First, it allows you to tinker with a range of different designs before you actually order your parts. Reworking a design digitally is a lot less time-consuming (and less expensive) than reworking a design with physical components.

Second, it allows you to ensure that your design actually works. You can iron out wiring schematics, test your code with simulated hardware, and even make your project “run” as if it were receiving input from the real world.

It isn’t a guarantee, since no simulation can ever account for every scenario or quirk perfectly, but it is still a much better way to work.

It has also given me a freedom to just try things on a whim that you don’t really have when you need to buy everything. I have no interest in some ESP32 projects in reality because I don’t really have a use for them, but they’re still interesting enough to load into a simulator and mess with.

Setting up Velxio

You only need a simple PC

Installing Velxio only takes a single command.

Velxio is unbelievably easy to set up. It has two requirements:

  • Docker must be installed on your system
  • You must have an internet connection to download Velxio

If you’re running Windows, you need to install Docker Desktop. If you’re running Linux, follow the Docker installation instructions for your specific distro.

Once that is done, run the following command in the Terminal on any operating system:

docker run -d -p 3080:80 ghcr.io/davidmonterocrespo24/velxio:master

It’ll take a bit to download and install, but once it is done, open http://localhost:3080/ in your browser. If you’re hosting it on a server on your local network instead of your PC, replace localhost with the appropriate local IP address.


Velxio is useful for more than just ESP32 projects

I’ve primarily experimented with Velxio in the context of ESP32 projects, but it supports 19 total boards with a total of 5 different CPU architectures.

  • Arduino — Uno, Nano, Mega 2560
  • Raspberry Pi — Pico, Pico W, Raspberry Pi 3B
  • ESP32 — ESP32-C3, ESP32-S3, ESP32-CAM, and others.

And it is under active development, so we’re likely to see additional microcontrollers added over time. I’ve shifted most of my Pi MCU projects to the RP2350. I’d love to see that included sometime in the future.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


The arrival of another weekend means another opportunity for some escapism, and what better genre to provide that than science fiction and fantasy? Their advanced CGI capabilities, detailed lore, and ability to explore complex social issues in an allegorical setting are unbeatable at delivering on escapist entertainment, and that’s where we’re headed.

As you unwind this weekend, flip over to Amazon Prime Video and get lost in another world with these three proven sci-fi/fantasy shows to stream in the U.S.—our top pick being a surprisingly engaging reimagining of a classic historical legend.

3

The Magicians

A darker Harry Potter story for adults

With over 60 episodes across 5 spectacular seasons to immerse yourself in, The Magicians is a fantastic dark fantasy/sci-fi series based on the trilogy novels by Lev Grossman about a group of friends who discover that magic is real and adventurous but not always like you’d expect.

Quentin Coldwater (The Marvelous Mrs. Maisel’s Jason Ralph) is a highly intelligent but socially withdrawn 20-something-year-old secretly obsessed with a series of fantasy novels he read as a child about a magical land called Fillory. Outside of that, his life is super dull… until he’s mysteriously admitted to a secret, exclusive college of magic in Upstate New York. There, he’s introduced to a thorough, rigorous education in the practice of modern sorcery, but the gift doesn’t bring the happiness, adventure, and meaning he thought it would. When he and his friends discover that the otherworldly Fillory really exists, their entire lives change in a flash.

While the magic is fun and all, the focus here lies on the consequences of using it and the complex emotions of series characters, who are flawed and navigating trauma. Fans of the genre will love the show’s witty, sometimes hedonistic take on magic education and fantasy tropes, which the show does a spectacular job of subverting by showing that magic is fickle and guarantees nothing. Furthermore, its blend of serious emotional stakes with whimsical meta absurdity and world-building makes it even more unique.

2

Humans

Blurred lines between humans and machines

A sci-fi must-watch for fans of the genre, Humans is based on the Swedish award-winning drama Real Humans, which explores themes of artificial intelligence sentience, human-robot interactions, AI effects on the future of humanity, and defining humanity in a way that feels topical and thought-provoking.

Set in a parallel universe where technology is highly advanced, and life-like humanoids called Synths are the must-have machines for every household, the core story follows a small group of sentients trying to survive in a world that views them as property. The drama kicks off when the Hawkins family purchases a used Synth, who is not who they think she is, leading to suspenseful consequences full of high stakes for their family life. It also explores how society treats Synths, drawing parallels to racism and sexism.

Humans is grounded and emotional in its otherworldly exploration of AI and consciousness in a near-future world, excelling at analyzing their social, moral, and familial impacts. Rather than focusing only on apocalyptic threats, the series hones in on one family’s daily interactions with their Synth. Fans of shows like Black Mirror and Westworld will love it for its much more intimate and character-driven look at technology.

1

The Winter King

A less-fantastical version of Game of Thrones

I am always down for getting into a good fantasy series, especially if it revolves around the whole King Arthur-Merlin legend. Right now, you can stream 2023’s The Winter King, which reimagines the Arthurian legend from the perspective of a former warrior who narrates the series as an elderly monk.

A gritty adaptation of Bernard Cornwell’s Warlord Chronicles about King Arthur, the series is set in a brutal, war-torn Britain following the Roman withdrawal. The story details the obstacles and struggles Arthur Pendragon (Agents of S.H.I.E.L.D.’s Iain De Caestecker) faces as he rises in rank from an outcast warlord to the leader and unifier of broken British kingdoms. With the Saxon forces invading through little resistance, Arthur must navigate treacherous political landscapes while also contending with his doomed romance with Guinevere (Hotel Costiera‘s Jordan Alexandra).

What’s so watch-worthy about this series is its structured framework as a chronicle of events told through flashbacks by former warrior-turned-monk Derfel (Rogue Heroes’ Stuart Campbell). It’s a genuinely compelling interpretation of a legendary time in history, so expect a super-dark, otherworldly portrayal of 5th-century Britain rife with plenty of power struggles, detailed battle scenes, bloody warfare, pagan rites, vengeance, and heavy, ornate royal robes.


The fun doesn’t stop here, though. No matter your genre interests, Prime Video has an excellent selection of shows to help you relax, unwind, and escape straight into another world. Despite the platform’s recent price hike, the subscription is still worth keeping for all the gems that just keep on coming in droves. Stay tuned, because more is in store, and we’re the ones who’ll always have you covered.

The Prime Video logo.

Subscription with ads

Yes, via Prime membership or $9/month

Simultaneous streams

3




Source link