[OC/WIP] Megahub - an ESP32-based open controller for LEGO Powered Up devices, with a web IDE and Blockly/Lua scripting
A new open-source project called Megahub, designed for LEGO enthusiasts and makers, offers an ESP32-based platform to control LEGO WeDo 2.0 and Powered Up motors and sensors. This project, created by /u/Alarming-Energy-8519, provides a custom web-based IDE for programming and controlling LEGO creations. It's an educational tool for those interested in robotics, embedded systems, and programming.
Megahub allows users to connect up to four LEGO Powered Up ports simultaneously and supports pairing with a Bluetooth gamepad for manual control. It features a web-based IDE hosted on GitHub Pages, eliminating the need for app installation. Users can program their models visually using Blockly drag-and-drop or write Lua scripts. The platform also includes a built-in IMU (MPU6050) for tilt and acceleration sensing, WS2812B RGB LED support, SD card storage, and GPIO expansion.
The project's hardware schematics, firmware, and frontend source code are available on GitHub. The creator welcomes community feedback, especially regarding the LEGO Powered Up protocol. The project aims to facilitate learning about BLE, UART noise, and motor control.
For those interested in experimenting with this project, you might find a breadboard and some jumper wires helpful for prototyping and connecting components.
Hey! I've been working on a maker project called Megahub — an ESP32-based platform that lets you connect and control LEGO WeDo 2.0 / Powered Up motors and sensors through a custom web-based IDE. Quick disclaimer up front: this is a personal WIP project, fully open source, and absolutely not a commercial product or replacement for the official LEGO ecosystem. It's an education/experimentation platform — I built it to deeply understand robotics control software, embedded systems, and...
Read the Full Article
This is a summary. Read the complete story at r/legomindstorms.