Build it step by step
0 of 6 doneMount the load cell
Fix one end to the base and the platform to the free end.
Wire the amplifier
Connect the cell and HX711 to the Nano.
Calibrate
Place a known mass on it and send c followed by the grams, for example c500.
Prepare the audio
Record the digit clips and put them on the SD card.
Add the player
Wire the DFPlayer and speaker.
Test the speech
Put a weight on, wait for the scale to settle and listen.
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
- Development BoardsBuyArduino Nano × 1
- SensorsBuy
- SensorsBuy
- InterfacesBuy
- Motors & ActuatorsBuy
- SBC AccessoriesBuy
- SwitchesBuy
- PassivesBuyResistor 1 kΩ × 1
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Load cell red, black, white, green | HX711 E+, E-, A-, A+ | Load cell |
| HX711 DT, SCK | Nano D3, D2 | Data and clock |
| HX711 VCC, GND | Nano 5V, GND | Power |
| DFPlayer VCC, GND | Nano 5V, GND | Power |
| DFPlayer RX | 1 kΩ resistor then Nano D11 | Serial to the player |
| DFPlayer TX | Nano D10 | Serial from the player |
| DFPlayer SPK1, SPK2 | Speaker | Audio output |
| Tare button | Nano D4 and GND | Zero the scale |
| Speak button | Nano D5 and GND | Say 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.
| Check | Expected |
|---|---|
| Empty platform | Silent |
| Put a 250 g weight on | Says two, five, zero, grams after settling |
| Press speak | Repeats the weight |
| Press tare with a bowl on | Weight 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 →
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.
