Skip to content
Description

M5SCALE DIY Kit is a DIY kit of M5 that implements a digital scale, which makes it more of an Application-approach development kit.

The overall structure is made of acrylic material. The electronic part is the main controller, M5StickC and a WEIGH unit.

A cantilever beam-sensor is used to detecting the bend over forced on top of the scale by object weight.

it will transfer the deformation into a voltage signal and as an input of WEIGH sensor which will be captured and read by M5stickC.

Other than that, there also some small components that is included in the kit, you have the total freedom to assembly the whole thing and reprogram it as you like.

The software is open-sourced on GitHub, you can program it either with UIflow or Arduino.

The lego holes on bottom board allow you to place more M5 sensors for extension functions, Plus M5StickC is wifi available, you have the freedom to build something impressive.

Product Feature

  • Dimension :
    • Finish Assembly:100mm * 100mm * 43mm
    • Cantilever beam-sensor:80mm * 12.7mm * 12.7mm
  • DIY Digital Scale
  • M5StickC + WEIGH
  • Measurement Range: 10KG (in default code)
  • Open source code
  • Lego Holes
  • Acrylic material
  • Load cell technical parameters:
    • Range: 20kg
    • Output sensitivity: 1.0±0.1mV/V
    • Lead wire: power line (red), signal positive (white), signal negative (green), ground wire (black)

Package Includes

  • 1x M5SCALE DIY Kit
  • 1x User Manual

Application

  • High precision electronic scale
  • Small range weighing machine
Documents
Learn

Code

1. Arduino IDE

To get complete code, please click here.

#include"HX711.h" #include<M5StickC.h>  int Weight = 0; void setup() {   M5.begin();   M5.Lcd.setRotation(1);   M5.Lcd.setTextColor(TFT_GREEN, TFT_BLACK);   M5.Lcd.setTextDatum(MC_DATUM);   M5.Lcd.drawString("SCALE", 80, 0, 4);      Init_Hx711();    Get_Gross();   //clear the weight    M5.Lcd.setTextColor(TFT_RED, TFT_BLACK);      Serial.begin(115200);  }  void loop() {      M5.update();  //   if (M5.BtnA.wasReleased()) { //      Get_Maopi(); //    }      Weight = Get_Weight();      M5.Lcd.setCursor(40,30,4);      M5.Lcd.fillRect(0, 30, 160, 30, TFT_BLACK);      M5.Lcd.printf("%d g", Weight);      M5.Lcd.fillRect(0, 70, 160, 10, TFT_BLACK);      M5.Lcd.fillRect(0, 70, Weight*0.016, 10, TFT_YELLOW);      delay(100);    }

The M5SCALE DIY KIT appears in the following collections:

SKU M5-K029