Show HN: ThingStudio, Node-RED style programming for microcontrollers thingstudi...

@best

Show HN: ThingStudio, Node-RED style programming for microcontrollers thingstudio.net · 12 points · 2 comments · HN thread

TL;DR ThingStudio is a beta, open-source (Apache 2.0) visual flow editor for microcontrollers in the style of Node-RED. It compiles flows to MicroPython (.mpy bytecode), uploads them over USB or WiFi, and the board then runs the flow without the editor. The author, Mike Karliner, asks for testers to go through the onboarding docs from a blank board to a blinking LED.

  • Targets ESP32 (including S2, S3, C3, C5 variants), RP2040/RP2350 (Raspberry Pi Pico), nRF52840 and STM32 boards running MicroPython.
  • The editor compiles the flow to MicroPython and sends it to the board; the flow is saved on the board and survives unplugging, resets and power cycles.
  • Flows are event-driven, so the board can wait on many events at once (interrupts, debounced buttons, encoders, MQTT messages) instead of one main loop.
  • Pin and bus conflicts are checked at compile time, and the compile stops with an explanation before anything reaches the board.
  • Flow files are plain indented JSON, designed for git, with credentials stored separately; custom nodes and board definitions are added as files without rebuilding.
  • Status is beta: the author has tested each listed chip on his own bench, and the online editor demo runs in the browser with nothing to install.

Discussion The thread is short, with two comments. The first, from superxpro12, is a set of technical questions about real-time performance: whether it can saturate ADC sampling, run a 20 kHz systick, link interrupts, and handle UART, I2C, SPI, CAN and USB concurrently. The author replied at length, arguing that current chips are fast enough, that MicroPython's Native and Viper emitters already produce native code, and that C/C++ extensions may come later if the project gets uptake. The mood is curious and constructive rather than critical.

  • Performance limits of MicroPython matter for real-time use (some): Commenter superxpro12 argues MicroPython makes hard real-time work nearly impossible and asks detailed questions about ADC sampling, interrupts and bus concurrency. Calls the tool a possible toy unless it can be pushed harder.
  • Fast enough modern chips and native emitters are sufficient (some): The author counters that ESP32-S3 at 230 MHz and RP2350 clocked above 300 MHz are powerful, and that MicroPython's Native and Viper emitters are already used in the project. He targets use cases that are not toy but do not need every bit of performance.
  • Lower-level C/C++ output could come later (a few): The author suggests that AI tools now make C/C++ addons more practical and that high-speed paths could be built if adoption grows, but he wants testing first.

#microcontrollers #MicroPython #flowProgramming #NodeRED #embedded #openSource