Giter Club home page Giter Club logo

smartmass's Introduction

SmartMass

Make every gram count!

A smart weighing solution for almost anything, but FDM filament spools in particular.

pre-release quick project overview

Motivation

The almighty YT algorithm suggested a 3D filament weighing solution to me recently, and as I have quite a few "almost empty" filament spools laying around I reached out to the maker. Unfortunately, no part of the suggested solution was open source so I decided to start my own open source solution. From a simple local solution with a tiny OLED display, the scope quickly escalated with (useful?) features such as MQTT read/write or RFID read/write. The planned feature list can be found on the projects page.

As of now, the SmartMass device connects to an MQTT broker via WiFi and posts events to the smartmass/<deviceid> topic. The scale can be configured, calibrated and tared via MQTT using the documented payload in the ./payload folder. It also supports reading (and writing) filament spool metadata on Mifare 1K S50 tags (they're available as stickers!) with an RFID-RC522 module.

BOM (bill of materials)

  • a 2kg / 3kg load cell
  • an HX711 signal ampifier
  • an 0.96" 128x64 OLED display
  • an RFID-RC522 module
  • an ESP32-WROOM / ESP8266
  • PLA / PETG / ... to print the models

Getting started

Broker

  1. Set up an MQTT broker (mosquitto, emqx, hive, ...) and create a user for the device

Hardware

TODO

Code:

  1. Open the project with platformio, I'm using the platformio plugin in VSCode.
  2. copy configuration.h.template to configuration.h and fill in WiFi, MQTT and PIN information
    1. TODO: add detailed guide for options
  3. build and upload the code

smartmass's People

Contributors

mplogas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smartmass's Issues

EPIC: MQTT Configuration

Allow the following parameters to be configured via MQTT

  • initiate calibration
  • set spool weight
  • update interval

EPIC: screen timeout

To avoid burn in of static text, the screen should turn black after a few minutes and wake up when something is weighted (or RFID scanned)

EPIC: read bambulab tags

regular read with MFRC522 not possible, due to missing key.

MFCUK and MFOC aren't going anywhere, not even hardnested (https://github.com/bennesp/hardnested). Rough setup here: https://github.com/hootan09/rfidCrack

tried:
mfcuk -C -O /home/pi/rfid/bambulab-mifare.dmp -M 8 -V -1 -R -1:-1 -s 250 -S 250 -v 3
and

mfcuk -C -O /home/pi/rfid/bambulab-mifare.dmp -R 0:A -s 250 -S 250 -v 3
without luck.

Best shot right now seems to be getting a Proxmark 3 easy clone from Ali (~40Eur) and intercepting the handshake directly at the AMS as described here: https://github.com/Bambu-Research-Group/RFID-Tag-Guide

EPIC: Home Assistant integration

With MQTT already working, it might be a good idea to expose the scale to HA and use the HA UI until the Spoolman integration is added.

BUG: data written to to tag is not correct

the conversion methods longtoByte and byteToLong in rfid.cpp work as expected. however the data stored on the tag is not correct, therefore the data read is also incorrect.

EPIC: NFC/RFID integration

In order to track spools (and to prepare for a Spoolman integration) additional spool information such as vendor, material, color etc could be stored on an RFID/NFC sticker that is added to the spool and read once the spool is weighted. Requires some changes to the JSON de/serialization, MQTT client and 3D models

EPIC: Spoolman integration

Spoolman unfortunately isn't supporting MQTT, so a REST API library needs to be added. Will need schema updates and might kill MQTT integration due to memory limitations of the ESP

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.