GithubHelp home page GithubHelp logo

belectronic / marax-monitor-mqtt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saibotflow/marax-monitor

0.0 0.0 0.0 17.97 MB

Lelit Mara X (V2) data visualisation with an automatic Shot-Timer

License: GNU General Public License v3.0

C++ 95.39% C 1.48% Python 3.13%

marax-monitor-mqtt's Introduction

MaraX Monitior with MQTT - Visualisation for the Lelit Mara X (V2) with an automatic Shot-Timer

This project is for anyone who wants to make their Lelit Mara X (V2) espresso machine smarter. Fortunately the MaraX has a serial interface providing some data that can be read! The project is a fork from https://github.com/SaibotFlow/marax-monitor. Inspirations came also from https://github.com/alexrus/marax_timer and from https://github.com/Vin-X-Mod/OLED-Splash-Screen-LOGO/tree/main.

Display

Versioning

I use a Pythonscript for generating a version.hpp for transmitting a version via MQTT. If you don't need that, or if you don't have python installed please remove the line extra_scripts = pre:lib\Version\version_gen.py* in platformio.ini.

Parts

Structure & Connections

Connection

The Interface

The MaraX has a 6-PIN Connector for the serial interface on the bottom. We only use PIN-3 (Mara RX - Black Wire - Green Rectangle) and PIN-4 (Mara TX - Orange Wire - White Rectangle). For testing you can use the jumper-wires later you should replace them with temperature protected cables.

  • PIN3 Mara to TX2
  • PIN4 Mara to RX2

RX Mara to TX2 ESP32 and TX Mara to RX2 ESP32

MaraX Bottom

The connector for serial interface itself

Marax Connector

Note: A Reed sensor on the vibration pump is not necessary for the MaraX anymore as the interface provides the pump status information now.

The Data

You will receive the following data each ~400ms.

Example Data: C1.06,116,124,093,0840,1,0\n

  • The delimitter is: ,
  • The end of data is: \n
  • Length: 26
Data Description
+ Machine-Mode (Model 2022): + = CoffeeMode; C = SteamMode
1.06 Firmware
116 Current Steam Temperature in Celsius
124 Target Steam Temperature in Celsius
093 Curent Hx Temperature in Celsius
0840 Countdown Boost-Mode
1 Heat state (0 = off; 1= on)
0 Pump state (0 = off; 1= on)

Display Wiring

Pin Display Pin ESP32
VIN 3.3V
GND GND
SCL D22
SDA D21

The address selection is 0x3D or 0x3C. You can recognize it by the solder bridge on the back side

BackSideDisplay

WIFI & MQTT

By editing the credentials in espwifi.h and mqtt.h you can transmit the MaraX data to your MQTT server.

Here are the preconfigured topics:

Topic Payload Datatype Description
marax/mode Char Machine-Mode
marax/steam/temp/current Int Current Steam Temperature in Celsius
marax/steam/temp/target Int Target Steam Temperature in Celsius
marax/hx/temp/current Int Curent Hx Temperature in Celsius
marax/heating/state Int Heating state
marax/pump/state Int Pump state

Libaries

  • Wire.h (OLED)
  • Adafruit_GFX.h (OLED)
  • Adafruit_SSD1306.h (OLED)
  • PubSubClient (MQTT)

marax-monitor-mqtt's People

Contributors

saibotflow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.