THINGSTUDIO

Flow programming for microcontrollers

ThingStudio gives you a visual flow programming environment for microcontrollers running MicroPython. It runs on ESP32, RP2040 and RP2350 (Raspberry Pi Pico), nRF52840 and STM32.

ThingStudio can be used either directly from here in the browser, or as an app with a web interface. The browser version needs Chrome or Edge on a desktop, and Web Serial can be fiddly with some boards. The App works in any modern browser and talks to the board itself, over USB or WiFi. See web vs app for the full difference. Both versions are cookie, tracking and telemetry free.

Plug a board into your computer and open the editor in Chrome or Edge, or just try it without a board.

Free and open source · Apache 2.0 · Chrome or Edge, or the App on macOS, Linux, Windows · Source on GitHub

Building the blink flow, then reading the MicroPython it makes. Try it yourself in your browser, with nothing to install. Or watch it full size, or see the labelled tour of the editor.

About

Why I made ThingStudio

Hi, I'm Mike Karliner.

I've been a huge fan of flow programming since the early days of Node-RED.

Equally, I've been keen on MicroPython since it came out, and in fact I backed the original Kickstarter way back in 2013.

So, I thought, why not combine the best of both worlds?

ThingStudio is my attempt to do just that. Obviously, it's not an exact copy: its native language is MicroPython, for a start, and it's running on bare metal.

It is, and will stay, open source under a permissive licence.

It's a personal project. There's no company behind it and no funding.

I built it with a lot of AI assistance, and I've supervised it closely. If you object to AI-written code on principle, it probably isn't for you, and fair enough.

It's early. It works on my bench, with my boards. The rough edges are the ones I can't see from here, so reports from other people are the most useful thing it can get.

Mike

Built on MicroPython, Peter Hinch's mqtt_as and micropython-async, and drivers from micropython-lib.

Web or App

Web or App, private either way

ThingStudio Web and ThingStudio App are the same editor. Web is the quickest start: open it, plug in a board, deploy. The App is for keeps: it works with no internet, talks to boards over WiFi, and takes your own nodes and boards.

When you open ThingStudio Web, the site sends your browser the editor, then steps out. Flows are saved on your own disk, the board is reached over the USB cable, and WiFi and MQTT details stay in the tab until you close it. Nothing is sent to me. The server keeps a three-day access log, to run it and count visits. Each release's request report lists every request the editor made while it was tested: all to its own site.

  • Git friendlyFlows and board definitions are plain JSON that diff cleanly. Passwords are kept apart, so a committed flow holds no secrets.
  • Made to be extendedIn the App, custom nodes, boards and processors are files you drop into a folder. Nothing to rebuild.
  • Free and open sourceApache 2.0, including in commercial products.

Run in your browser or install ThingStudio App.

WebApp
InstallNothing to installmacOS, Linux, Windows
BrowserChrome or Edge on a desktop to reach a board; others build and compileOpens in Chrome, Edge, Firefox or Safari
Reaching the boardUSB cableUSB cable or WiFi
Setting up a boardSet up a boardTools → Install firmware
Works offlineNoYes, docs included
Custom nodes and your own boardsNoYes
WiFi and MQTT passwordsKept in the tab until you close itSaved on your computer, apart from your flows
UpdatesAlways the latestYou upgrade when you choose
Cloud, account, cookiesNoneNone
Who it's for

For makers and programmers

ThingStudio is for people who can already program and have used a microcontroller. You don't need an electronics degree, but you should be comfortable wiring a breadboard and typing commands in a terminal.

Coming from another tool? Read what's different for you: Node-RED, MicroPython, Arduino and C, or Home Assistant.

A good fit

  • You use Node-RED and want flows on the board itself
  • You write MicroPython and want events without hand-written asyncio
  • You write Arduino or C and your main loop keeps growing
  • You run Home Assistant and want your own boards in it, with logic that isn't already built in

Not a good fit

  • You're learning to program: ThingStudio doesn't teach the basics
  • You don't want to mess with hardware
Flows

Node-RED's model, responding to events

Pick nodes from the palette and draw wires between them. Messages travel along the wires, with the value in msg['payload'], as they do in Node-RED.

There's no main loop to grow. Each chain runs only when its event happens, and the board waits on many events at once. Event-driven programming explains more.

Built-in nodes cover pins, buttons, sensors, MQTT, HTTP and UDP. When they aren't enough, write MicroPython in a function node, or package it as a custom node. A built-in GUI system, at an early stage but working, drives SPI displays such as the Cheap Yellow Display: see the GUI nodes.

ebutton→ gpio out
timer→ bme280→ mqtt publish
mqtt subscribe→ function→ neopixel

Three chains in one flow. A button press lights an LED, a timer reads a sensor and publishes it, and a message from the network sets a colour. None waits for the others. Every node has a page in the node catalog.

Home Assistant

Your board as a Home Assistant device

Add an ha device node, and a node for each sensor, switch or control. Deploy the flow, and the board appears in Home Assistant over MQTT. There's no YAML and no firmware to build.

The flow runs on the board, so it keeps going if Home Assistant is down. Values are sent once the board reaches the broker again. When a device needs logic of its own, it's a function node away.

The Home Assistant guide covers setting up the broker, a starter flow and the limits.

ha device
bme280→ ha sensor
ha switch→ gpio out
ebutton→ ha binary sensor

One device, three entities: a temperature reading, a switch for a relay or LED, and a button.

Architecture

The big split

In Node-RED, the editor and the runtime are one program on one computer. ThingStudio splits them. You build the flow on your computer; ThingStudio compiles it to MicroPython and sends it to the board over USB or WiFi.

The flow is saved on the board. Close the editor, unplug the cable, and it keeps running. It starts again after a reset or power cycle. A change is a new deploy, not a firmware build, and takes seconds.

Your computerThe editor, in your browser. Compiles the flow to MicroPython, then to .mpy bytecode.
USB or WiFi
The boardMicroPython, the flow, and only the libraries it uses. Nothing else.

A blank board? Set up a board writes MicroPython and the ThingStudio runtime onto ESP32 and Pico boards, from your browser.

Hardware

Cheat sheets for boards

Boards can have definition files that list what pins are exposed and what they are connected to, ie: onboard leds or sensors. They also mark which pins are reserved and why, and which pins each SPI and I2C bus can use. Pins… in the editor shows it as a pin cheat sheet, and for boards like the Pico lays out the header the way the board looks.

ThingStudio comes with definitions for a handful of boards. For anything else, add your own: a short JSON file. Point an AI at the web site for a given board and it can usually generate one in a few seconds. Check the result against the datasheet! :-)

Also, the flow compiler checks against pins that should not be used. Every pin in a flow is checked against the board it's for. If a pin doesn't exist, is reserved, or two nodes would set it up differently, the compiler stops and says why, before anything reaches the board. A pin that's best avoided, such as a strapping pin, gets a warning.

interrupt ebutton eswitch encoder adc gpio out pwm out bme280 neopixel timer

The button, switch and encoder drivers are Peter Hinch's micropython-async primitives.

AI

Why not just ask an AI?

You can, and ThingStudio is built for it. Code from an AI is notoriously hard to read, check and modify; a flow isn't. Each node does a large piece of the work, so the flow stays compact and you can read it at a glance, and change it by hand. The check names the node behind each error, so the assistant can fix its own mistakes.

Most of the test flows I run on my own boards are now written this way. I've written more about it on my blog.

The assistantWrites the flow file, checks it with thingstudio-compile, and fixes each error it names.
a flow file
YouOpen it on the canvas, read it, change it, and deploy it to your board.

The AI authoring guide has the setup, and a ready-made skill for Claude.

Chips

Microcontrollers it runs on

ThingStudio should run on all boards that run MicroPython (once you've installed the runtime), but I can't test everything. Here's a list of processors actually tested so far.

Support for the chips comes from MicroPython. It runs on all of these, and it's tested far more widely than I could manage. On each board shown, I've checked ThingStudio's layer on top: pins, SPI and I2C buses, deploying a flow, and the nodes. That's one person's testing so far: reports from other boards are welcome.

ChipChecked on
ESP32Wemos D1 R32, CYD (ESP32-2432S028)
ESP32-S2LOLIN S2 Mini
ESP32-S3Freenove ESP32-S3 Display
ESP32-C3LuatOS ESP32C3-CORE
ESP32-C5ESP32-C5-KITC-A
RP2040Raspberry Pi Pico, Pico W
RP2350Raspberry Pi Pico 2
nRF52840Seeed XIAO nRF52840
STM32F405Pyboard v1.0

Get involved

I can't see how it went for you

ThingStudio has no tracking and no telemetry. Neither Web nor the App reports what you do, so I can't see what you tried, or where it went wrong. If something broke, confused you, or just worked, please say so in Discussions or open an issue on GitHub. Thanks.

At the moment ThingStudio has just one maintainer, so every report, fix and board definition helps a lot.

  • Tried it? Post one line in First impressions: your board, your computer, and how far you got.
  • Report a board. If it ran, or didn't, on a board not in the table above, say so in Discussions.
  • Report a bug or a docs mistake. Open an issue on GitHub.
  • Add a board. A board definition is a short JSON file: its pins, its LED, its buses. Attach yours to an issue.
  • Write a node. Wrap a MicroPython driver as a custom node, and share it in Discussions.

How to contribute covers building from source and the tests. Expect a first reply within a couple of days.

Show what you've built in What are you building? Found a security problem? See SECURITY.md, and please don't post it in public.

Follow along

Blank board to blinking LED

Plug in a board and open the editor. Set up a board writes MicroPython onto it, then you deploy your first flow.

ThingStudio is made by Mike Karliner. info@thingstudio.net

ThingStudio on Hatchlit

Page counts for this site and for ThingStudio Web come from GoatCounter, run on my own server: pages viewed, the site you came from, browser, screen size and country. No cookies, and no user tracking. Clicks on the "Run in your browser" buttons are counted too. ThingStudio Web has no counting script: its server keeps a three-day access log, used to run the server and count visits.