Code Monkey home page Code Monkey logo

marax-pico's Introduction

MaraX-Pico

Monitor MaraX data from MQTT, with a Raspberry Pico W and CircuitPython

overview close up video/gif pulling a shot

Requirements

Hardware

Software

Configuration

  • Copy adafruit_bitmap_font, adafruit_display_text, adafruit_minimqtt and adafruit_st7789.mpy to lib/
  • Copy env.example as .env to the Pico and edit it, filling out WiFi and MQTT details
  • Copy code.py to the Pico

Connections

  • Connect RX, TX and GND from the 6-pin debug interface under the Mara X to Pico pins 1, 2 and 3 (GP0, GP1 and GND). Then swap pins 1 and 2, because it never works on the first try. Refer to Similar Projects section for detailed pictures on where to connect on the Mara X

  • Stick the MC-38 reed switch (white in the pictures) to the side of the pump (green for me, your colour may vary)

  • Connect two wires from the MC-38 reed switch to Pico pin 12 and 13 (GP9 and GND)

  • If using Pico Omnibus, take special care to where the pins are, as the decks are mirrored (a pin on the left side of the Pico would be on the right side connector on the Omnibus)

  • Power the Pico preferably from USB or separate 5v supply. Pin 1 on the Mara X supposedly has 12v (you'd need a step down regulator) but it wasn't reliable for me or maybe my connector has slightly popped off.

Home Assistant

Edit configuration.yaml and add these to Home Assistant:

mqtt:
  sensor:
    - state_topic: "marax/pump/status"
      name: MaraX Pump Active
      unique_id: marax.pump
      icon: mdi:water-pump
    - state_topic: "marax/uart/data"
      name: MaraX Boiler Temperature
      unique_id: marax.boiler.temp
      value_template: "{{ value_json.boiler_temp }}"
      unit_of_measurement: "°C"
      icon: mdi:water-thermometer
    - state_topic: "marax/uart/data"
      name: MaraX Steam Temperature
      unique_id: marax.steam.temp
      value_template: "{{ value_json.steam_temp }}"
      unit_of_measurement: "°C"
      icon: mdi:pot-steam-outline
    - state_topic: "marax/uart/data"
      name: MaraX Temperature Target
      unique_id: marax.temp.target
      value_template: "{{ value_json.temp_target }}"
      unit_of_measurement: "°C"
      icon: mdi:bullseye
    - state_topic: "marax/uart/data"
      name: MaraX Counter
      unique_id: marax.counter
      value_template: "{{ value_json.counter }}"
      icon: mdi:bullseye
    - state_topic: "marax/uart/data"
      name: MaraX Heating Active
      unique_id: marax.heating
      value_template: "{{ value_json.heating }}"
      icon: mdi:heat-wave

Home Assistant sensor list Home Assistant sensor detail

Close Up Pictures

overview

Overview. 4 wires on the debug connector, 2 wires connected to the white wires from the reed switch.

pump detail

Detailed shot of the reed switch on the Pump (green)

conn detail

Debug connector, 4 wires going in, and 2 wires from reed switch

connector

Ribbon cable coming out from the MaraX and gets connected to board.

Similar Projects

marax-pico's People

Contributors

disq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.