This repository contains the hardware design and firmware for the MaraX Evolution main controller board. This project is designed to replace the stock controller of the Lelit Mara X espresso machine, adding advanced…
Hv board is an open-source printed circuit board by andia89, from the andia89/MaraXEvolution repository on GitHub. It is a 2-layer board of 69 × 54 mm with 33 parts on 29 nets, routed with 214 tracks and 24 vias.
It is built around the ECE10US12, BTA16-600BWRG and BAT46WJ,115-JSM, with the ALDP112W, H11L1 and MOC3021M among its other parts. Its parts include 8 resistors, 6 ICs, 3 transistors, 3 fuses and 2 capacitors.
Pressure profiling with a blind flange. The pressure follows a complicated profile
Real shot with the custom Controller. The profile is set to produce a flat 9bar shot that stops at 40g (since the valve is not closed by the lever there will always be some additional coffee coming out after the pump stopped). As one can see the pressure neatly follows the 9bar (at one point I adjusted with the flow control paddle so that is when the pressure dropped). The grind was way to fine for this shot :D
This repository contains the hardware design and firmware for the MaraX Evolution main controller board. This project is designed to replace the stock controller of the Lelit Mara X espresso machine, adding advanced features such as PID temperature control, pressure profiling, weighing scale integration, and WiFi connectivity.
Features
Core Control
Hybrid Thermal Control: Utilizes a custom Feed-Forward + PID algorithm (feedForwardHeater) that estimates heat loss based on ambient vs. boiler temperature, offering better stability than standard PIDs.
Dual-PID Architecture: Dedicated PID loops for Temperature (Boiler/HX) and Pump (Pressure/Flow).
Smart State Machine: Manages states including COOLING_FLUSH, STEAM_BOOST, and STANDBY.
Performs all tasks the original Lelit MaraX machine does as well (boiler refill, water tank presence detection, relay activations etc...)
Profiling & Extraction
Pressure Profiling: Real-time pump dimmer control via Zero-Cross detection.
Flow Profiling: (Requires MaraX Evolution Scale) Target specific flow rates (g/s) using Kalman-filtered weight data.
Gravimetric stopping: (Requires MaraX Evolution Scale) Stop the shot after a set amount of time or when a certain weight is reached
Advanced Profiles: Supports manual control, flat 9-bar shots, or complex JSON-based profiles (Ramped or Stepped).
Integration & Connectivity
WiFi & MQTT: Full smart home integration. Reports sensors (boiler_temp, pressure, weight) and accepts commands remotely.
Telnet CLI: Built-in command-line interface for debugging and calibration over WiFi.
firmware/: PlatformIO project source code for the ESP32-based controller.
Hardware Assembly
PCB Fabrication: Use the Gerber and Drill files provided in controller_board/jlcpcb/production_files/ to order the PCB.
Assembly: Solder the components according to the BOM (BOM-controller_board.csv). The board features an Arduino-Nano ESP32 compatible footprint. See Assembly for details
Installation: Replace the existing Mara X controller with this board, ensuring all connections (sensors, pump, heating element) are mapped correctly.
Firmware Compilation
The firmware is modular. You can enable/disable hardware features via platformio.ini build flags:
I had way too much fun building the MaraX Evolution—it turned into quite the obsession! I am definitely planning to tackle another coffee machine and give it the same "Evolution" treatment.
However, espresso machines are expensive! :D
If you enjoy this project or use it daily, please consider supporting me.
Your Support = Your Vote
When you support me on Ko-fi or Patreon, please leave a comment telling me which coffee machine you want me to do next.
Think of it as a voting system: As soon as I have enough funds to cover the machine with the most votes (and the parts to mod it), I will buy it, reverse-engineer it, and build an open-source controller for it. If you have the MaraX and still want to support me, you can also tell me if there is a specific feature you want to have!
I will keep track of the money earned and will update occasionally the votes on the different coffee machines that are requested
Limitations
The MaraX is a very good heatexchanger machine, using quite sophisticated hardware to achieve superior temperature stability than a lot of other HX machines out of the box. It is, however, not a dual boiler machine and as such perfect temperature control is almost impossible. I played around a lot with PID values and was able to come up with some good values (and some pretty sophisticated feed forward control), but still perfect stability is almost impossible (or only if one tunes the PID super conservative, but then it takes hours to heat the machine)
This is not a cheap project. Most parts can be sourced pretty cheaply, but I used good ADC chips (the ADS1115) and one unfortunately obsolete LM1830 chip for boiler water level detection as well as a pretty expensive power supply for the 12V power. Most of these things could certainly be done cheaper (and maybe someday will). All in all expect to spend a bit of money if you go for the full set (which is recommended).
In the end the softweare got waaaaay more complicated than I originally anticipated. Some software was written using AI but I went through all of it and made sure it made sense to me. There certainly will be bugs as there is an infinite amount of edge cases I certainly have not considered. Please report any bugs you may find
Disclaimer & Safety Warning
PLEASE READ CAREFULLY BEFORE PROCEEDING.
1. I am a Hobbyist, Not a Professional
I am not a professional mechanical, electrical, or software engineer. This project was created purely as a personal hobby undertaking for educational purposes. The code and hardware designs provided here are not certified, tested to industrial standards, or guaranteed to be bug-free.
2. Warranty Voiding
Modifying your espresso machine, uploading custom firmware, or opening the chassis will almost certainly void your manufacturer’s warranty. By proceeding with any instructions or files from this repository, you accept full responsibility for the loss of any existing warranty or support from the original manufacturer.
3. No Liability
This software and hardware documentation is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or implied.
I am not responsible for any damage to your machine (bricking the device, burning out components, leaks, etc.).
I am not responsible for any personal injury or property damage (including fire or electrical shock) resulting from the use of this project.
You assume all risk associated with modifying your hardware and running this software.
4. High Voltage & Pressure Warning
Espresso machines involve Mains Electricity (110V/220V), Water, and High Pressure. This is a dangerous combination.
Never work on the machine while it is plugged in.
Ensure you have a proper understanding of electrical safety before attempting any hardware modifications.
Improper handling of the boiler or pressure lines can result in explosion or severe burns.
Use this project entirely at your own risk.
If you find anything that you think could be improved (be it software/electrical or mechanical side) please let me know, and feel free to open a Pull request
Licensing
This project is dual-licensed to protect the work while allowing for personal study and modification.
Firmware: The main source code located in the /firmware directory is licensed under the PolyForm Noncommercial License 1.0.0. You may modify and use it for personal projects, but you cannot use it for commercial products.
Third-Party Libraries: This firmware includes modified versions of the following libraries, which remain under their original licenses:
Firmware: The hardware designs, schematics, and 3D models located in the /controller_board and /hv_board directories are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license.
Please see the LICENSE file in each respective subdirectory for the full legal text.
This repository contains the hardware design and firmware for the MaraX Evolution main controller board. This project is designed to replace the stock controller of the Lelit Mara X espresso machine, adding advanced…
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.
Four 25 F cells in series for CANary-PWR's LTC3350 hold-up, on a lead (design record: docs/CANary-PWR-Spec.md §P4). The board has no active parts: four cells, an NTC, two Kelvin net ties and a Micro-Fit 2 × 5 header.
Supplementary material for "MDPI Electronics special issue Wireless Power Transfer Systems: Design and Implementation"
123 parts
Questions
How big is the Hv board PCB?
It measures 69 × 54 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Hv board use?
33 parts, built around the ECE10US12, BTA16-600BWRG, BAT46WJ,115-JSM and ALDP112W. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Hv board KiCad files?
From the andia89/MaraXEvolution repository on GitHub, at the commit this page was made from: the board is hv_board/hv_board.kicad_pcb and its schematic controller_board/controller_board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Hv board design in my own project?
Its repository states no licence, so its author keeps all rights: ask andia89 before reusing the design.