MeArm WiFi and Marceau get a 2026 refresh
Teilen
The MeArm WiFi board has been quietly doing its job since 2017: an ESP8266 that drives the four servos and serves a browser-based programming environment over its own WiFi network. Join the arm's network from a phone, tablet or laptop, open a page, and you can drive it or program it in Blockly, JavaScript, Python or Snap! with nothing to install.
The trouble is that the toolchain around it moved on. Arduino IDE 2.x, ESP8266 core 3.x, the deprecation of SPIFFS and the end of the old me-no-dev async libraries meant that building the firmware from source had become a frustrating experience. This week we pushed a set of updates to both the MeArm-Wifi library and Marceau, the library underneath it, and tagged them as 1.0.0. Here's what changed and why.
What is Marceau?
Marceau is the shared foundation that grew out of Mirobot and MeArm - Mime. It handles everything generic about a WiFi-controlled robot so that each product only has to describe what makes it different:
- a JSON command interpreter over serial and WebSocket
- the WiFi access point and captive portal
- a web server that serves files built into the firmware and from the flash filesystem
- a WebSocket server for live control and notifications
The MeArm WiFi firmware adds its own commands on top (moveJointsTo, openGrip, getServoState and friends), and the same library also underpins the Mirobot.
Marceau 1.0.0: ESP32 support and a cleaner core
The headline change is that Marceau now targets ESP32 as well as ESP8266. It supports ESP32 Arduino core 2.x and 3.x, and the old AVR target has been dropped. This is the groundwork for moving our products onto ESP32 hardware.
Along the way:
-
Bundled async libraries removed. Marceau used to ship its own copies of ESPAsyncWebServer and ESPAsyncTCP, around ten thousand lines of vendored code. It now depends on the maintained ESP32Async libraries (ESP Async WebServer 3.6.0+, Async TCP 3.3.2+ on ESP32, ESP Async TCP 2.0.0+ on ESP8266). If you have the older
me-no-devversions installed, uninstall them so the compiler doesn't pick them up. - LittleFS replaces SPIFFS. SPIFFS is deprecated, isn't power-loss safe, and has no upload plugin for IDE 2.x, which meant the apps on the filesystem were simply never found. Marceau now mounts LittleFS, and crucially it won't format the partition if the mount fails, so a bad upload can't wipe your flash. The serial console tells you plainly whether the filesystem mounted.
-
WebSocket commands now run from
loop(). Previously they ran on the network task, at the same time as your sketch's loop. Incoming messages are now queued in a small lock-free ring buffer (2 KB) and processed inloop(), so a quickstopcan wait its turn behind a slow command, and commands never run wheredelay()isn't allowed. - Bigger buffers. JSON and serial buffers are now 2 KB, and WebSocket replies are no longer cut off at 2 KB.
-
Friendlier API.
setHostname(),setDefaultAPName()andnotify()acceptconst char *, so you can pass string literals directly, and serial replies go to whichever stream you passed toenableSerial(). - A shared settings layout. The persistent settings structure now includes calibration, line-following and colour-sensor fields used by Artie, so one Marceau build serves both product families.
There's also a solid batch of robustness fixes: crashes on malformed commands, buffer overflows from long id values or long SSIDs and passwords in setConfig, a setConfig crash when WiFi was off, a message without cmd stalling serial input, settings storage being two bytes short, and the default AP name occasionally being random on ESP32 (the MAC is now read from eFuse before WiFi starts).
MeArm-Wifi: building again on modern tools
The MeArm-Wifi library has been updated to use the new Marceau and to build cleanly on ESP8266 core 3.x with Arduino IDE 2.x:
-
New
MeArm-Marceau.hheader. Sketches now#include <MeArm-Marceau.h>. The old header guard contained a hyphen, which isn't a valid macro name; that's fixed too. -
Discovery rewritten. The old discovery code used
espconn.hfrom the legacy ESP8266 SDK, which clashes with lwIP2 in core 3.x. It now usesAsyncClient, stays non-blocking, skips a send while the previous one is still in flight, and gives up on a request that's been stuck for 20 seconds. -
Over-the-air updates updated. Core 3.x removed the old
ESPhttpUpdatecalls, so the library now uses the client-based versions. Update files will now live underdownloads.mearm.com/MeArm/WiFi/v2/. -
Warning clean-up. An ambiguous
Wire.requestFrom()call in the PCF8591 joystick driver has been fixed.
The README has been rewritten from scratch with a full setup guide: board package and library versions, Flash Size settings, uploading the apps with the LittleFS plugin, and how to check from the serial monitor that everything mounted.
If you're upgrading an existing board
Because the filesystem format has changed, an existing board needs two uploads: the new firmware, then the data folder again as a LittleFS image. Use the same Flash Size setting for both (for example 4MB (FS:2MB OTA:~1019KB)), or the filesystem won't mount. If you see Mounted: NO in the serial log, the data upload is missing or was made with a different layout. If you're building your own OTA UI image, build it with mklittlefs, not the old SPIFFS tool.
Known limitations
We'd rather be upfront about what isn't done yet:
-
Access point mode only. Joining an existing WiFi network is still disabled in Marceau, so the arm always runs its own network and the
local.mearm.comdiscovery service doesn't come into play. The station settings are still stored, ready for when this is switched back on. It's just commented out, so if you know what you're doing you can enable it. -
No authentication. Anyone who can join the arm's network can send it commands, so set an access point password with
setConfig. See why we're on Access point mode only by default? - The MeArm-Wifi library itself is still ESP8266-only for now. Marceau is ready for ESP32; the arm library will follow alongside the hardware update.
What's next
With Marceau running on ESP32, the next step is the MeArm WiFi hardware moving to ESP32, along with work on the browser UI that ships on the board. We'll share more as that comes together.
Both repositories are on GitHub: MeArm-Wifi and Marceau. Issues and pull requests are very welcome.
Explore the MeArm WiFi robot arm kit.