This is a quick and dirty implementation of a Display and MQTT Client for Lelit MaraX V2 Espresso Machines.
What it does:
-
In idle mode: In the upper left corner is the Heater Status. While heating, a blinking cursor and Text "Heatup" is shown. In the upper center a WiFi Icon is shown, together with the WiFi Signal Strength, when connected to WiFi. In the upper right the Mara X Mode of operation is shown. A Coffeecup signals Coffee Priority Mode; a Steam Symbol Steam Priority Mode. Lower part left & right: reported Temperature of Heat Exchanger and Steam Boiler.
-
In operation mode: As soon the coffee brewing sequence is started, der Steam Temperature display is replaced by a shot timer, counting seconds up and a filling up Coffeecup is shown on the left, together with the Heat Exchanger Temperature. After brewing sequence has ended, the Display returns to idle Mode.
-
The following parameters are published via WiFi to a connected MQTT Server
- Mara Software Version and Mode of Operation
- Steam Temp
- Target Steam Temp
- Heat Exchange Temp
- Heating Boost Mode
- Heating Element on/off
- Pump on/off
- WiFiRxLevel
- Configuration can primarily be done via the secrets.h file. It contains Parameters like WiFi SSID and Password and MQTT Server Address & Port. You can also define the MQTT Update Interval in seconds. You need to match this based on your requirements.
Despite many other similar projects, this one is using the correct Mara X V2 wiring and coding! Please TAKE CARE, as most information in the Web regarding how to interface with Mara X Gicar Control Box is WRONG!
Please also visit https://www.m1n1.de/en/lelit-mara-x-v2-gicar-internals/ for details.
The Arduino Tx Line / Gicar Rx Line dones not need to be connected. There's no program code inside the Gicar, which would work with data recieved via the serial interface. The Memory of the Gicar Processor is quite full. 50% are already occupied by a huge Table with 921 Values for the Temp Sensor evaluation plus the STM8 Compiler Runtime.
You need to add your WLAN SSID and Password to the secrets.h file, for getting acces to your WLAN. The Machine will appear in your router as "MaraX". Add IP Address and port of your MQTT Broker and desired update interval in seconds.
Hardware used is an ESP8266 on a Wemos D1 clone and 128x64 Adafruit SSD1306 SPI OLED Display.