Projects / Talking weighing scale

Talking weighing scale

Intermediate2.5 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. NANO++255 g

    Mount the load cell

    Fix one end to the base and the platform to the free end.

  2. NANO++256 g

    Wire the amplifier

    Connect the cell and HX711 to the Nano.

  3. NANO

    Calibrate

    Place a known mass on it and send c followed by the grams, for example c500.

  4. NANOSANDIS

    Prepare the audio

    Record the digit clips and put them on the SD card.

  5. NANODFPLAY

    Add the player

    Wire the DFPlayer and speaker.

  6. NANO

    Test the speech

    Put a weight on, wait for the scale to settle and listen.

In short

How do you build a talking weighing scale?

A kitchen scale speaks the weight aloud in grams for blind cooks. You need Arduino Nano, Load cell 5 kg (bar type), HX711 load cell amplifier, DFPlayer Mini MP3 module, Speaker 8 Ω 0.5 W, SanDisk microSD card 32 GB (A1, Class 10), Tactile push button 6 mm × 2 and Resistor 1 kΩ. It takes 6 steps and about 150 minutes.

Level
Intermediate
Time
About 150 min
Parts
8

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Load cell red, black, white, greenHX711 E+, E-, A-, A+Load cell
HX711 DT, SCKNano D3, D2Data and clock
HX711 VCC, GNDNano 5V, GNDPower
DFPlayer VCC, GNDNano 5V, GNDPower
DFPlayer RX1 kΩ resistor then Nano D11Serial to the player
DFPlayer TXNano D10Serial from the player
DFPlayer SPK1, SPK2SpeakerAudio output
Tare buttonNano D4 and GNDZero the scale
Speak buttonNano D5 and GNDSay the weight now

Code

Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones). Install "HX711" by bogde and "DFRobotDFPlayerMini". Record the digit clips, the word 'grams' and 'minus' in your own voice, convert to MP3 and name them 0001.mp3 to 0012.mp3 in a folder named MP3 on a FAT32 card. The scale speaks the digits one at a time, such as one, two, five, grams. Never load the 5 kg bar cell beyond its rating. Tare with the bowl on, then add food.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

#include <HX711.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>

HX711 scale;
SoftwareSerial mp3Serial(10, 11);       // RX, TX
DFRobotDFPlayerMini player;
const byte TARE = 4, SPEAK = 5;
float cal = 1.0;
long lastSpoken = -1000;
float lastW = 0; unsigned long stableSince = 0;

// SD card MP3 folder: 0001 to 0010 are the digits zero to nine, 0011 is "grams", 0012 is "minus"

void say(int track) {
  player.playMp3Folder(track);
  delay(200);
  unsigned long t = millis();
  while (millis() - t < 3000) { if (player.available() && player.readType() == DFPlayerPlayFinished) break; }
}

void speakWeight(long grams) {
  if (grams < 0) { say(12); grams = -grams; }
  String s = String(grams);
  for (unsigned int i = 0; i < s.length(); i++) say(1 + (s[i] - '0'));
  say(11);
  lastSpoken = grams;
}

void setup() {
  Serial.begin(115200);
  pinMode(TARE, INPUT_PULLUP); pinMode(SPEAK, INPUT_PULLUP);
  scale.begin(3, 2);
  EEPROM.get(0, cal);
  if (isnan(cal) || cal == 0) cal = 1.0;
  scale.set_scale(cal);
  scale.tare();
  mp3Serial.begin(9600);
  player.begin(mp3Serial);
  player.volume(20);
}

void loop() {
  if (Serial.available() && Serial.read() == 'c') {      // calibrate: send c and the known mass in grams, for example c500
    float g = Serial.parseFloat();
    scale.set_scale(); cal = scale.get_units(10) / g; scale.set_scale(cal); EEPROM.put(0, cal);
  }
  if (!digitalRead(TARE)) { scale.tare(); lastSpoken = -1000; delay(300); }
  float w = scale.get_units(5);
  if (fabs(w - lastW) < 2.0) { if (stableSince == 0) stableSince = millis(); } else stableSince = 0;
  lastW = w;
  bool settled = stableSince != 0 && millis() - stableSince > 1500;
  if (!digitalRead(SPEAK) || (settled && fabs(w) > 5 && fabs(w - lastSpoken) > 3)) {
    speakWeight(lroundf(w));
    stableSince = 0;
    delay(300);
  }
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Empty platformSilent
Put a 250 g weight onSays two, five, zero, grams after settling
Press speakRepeats the weight
Press tare with a bowl onWeight shows zero

If it does not work

No speech

Check the SD card format, the MP3 folder and the 1 kΩ resistor on RX.

Wrong weight spoken

Re-calibrate with a known mass.

Speaks repeatedly

The weight is drifting. Keep the platform still.

Clips overlap

Increase the 3000 ms wait.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the talking weighing scale?

Arduino Nano, Load cell 5 kg (bar type), HX711 load cell amplifier, DFPlayer Mini MP3 module, Speaker 8 Ω 0.5 W, SanDisk microSD card 32 GB (A1, Class 10), Tactile push button 6 mm × 2 and Resistor 1 kΩ.

How long does the talking weighing scale take to build?

About 150 minutes for a intermediate maker, in 6 steps.

How do I know the talking weighing scale works?

Empty platform: Silent. Put a 250 g weight on: Says two, five, zero, grams after settling. Press speak: Repeats the weight.

No speech: what should I check?

Check the SD card format, the MP3 folder and the 1 kΩ resistor on RX.

Wrong weight spoken: what should I check?

Re-calibrate with a known mass.

Speaks repeatedly: what should I check?

The weight is drifting. Keep the platform still.

Clips overlap: what should I check?

Increase the 3000 ms wait.