Build it step by step
0 of 7 doneMount the load cell
Fix one end, load the other end and keep wires clear.
Wire the HX711
Follow the colours in the table.
Read raw values
Set CAL to 1 and print the readings with a known weight.
Work out CAL
Raw reading divided by the weight in grams.
Tare and test
Upload and check several known weights.
Set the limit
Change LIMIT_G and place a heavier weight.
Hear the alarm
Buzzer and lamp should start above the limit.
How do you build a lift overload alarm model?
A load cell under a model lift floor sounds an alarm if the weight limit is passed. You need Arduino Nano, Load cell 20 kg, HX711 load cell amplifier, Active buzzer 5 V, LED 5 mm red, Resistor 220 Ω, 16x2 LCD with I2C backpack (PCF8574), Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 90 minutes.
- Level
- Beginner
- Time
- About 90 min
- Parts
- 9
Parts list
- Development BoardsBuyArduino Nano × 1
- SensorsBuyLoad cell 20 kg × 1
- SensorsBuy
- Motors & ActuatorsBuy
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 220 Ω × 1
- DisplaysBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| HX711 VCC | Nano 5V | Power |
| HX711 GND | Nano GND | Ground |
| HX711 DT | Nano D3 | Data |
| HX711 SCK | Nano D2 | Clock |
| Load cell red wire | HX711 E+ | Excitation |
| Load cell black wire | HX711 E- | Excitation |
| Load cell white wire | HX711 A- | Signal |
| Load cell green wire | HX711 A+ | Signal, swap white and green if the reading goes negative |
| LCD I2C VCC and GND | Nano 5V and GND | Power |
| LCD I2C SDA and SCL | Nano A4 and A5 | I2C |
| Active buzzer + | Nano D6 | Alarm |
| Red LED and 220 Ω resistor | Nano D7 through the resistor, LED to GND | Overload lamp |
Code
This is a model: do not use it to certify a real lift or hoist, which need approved safety systems. Mount the load cell so the platform sits on its free end and the other end is fixed, with arrow direction matching the force. To calibrate, first tare the empty platform, then place a known weight (a 1 kg water bottle or a kitchen-scale weighed object), read the raw value with CAL set to 1 and divide the raw reading by the weight in grams to get CAL. Keep the platform clear of the frame so nothing rubs. Use a hysteresis in a real design so that the alarm does not flutter near the limit. Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones).
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).
// Library: HX711 by bogde. LiquidCrystal_I2C for the display.
#include <HX711.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
HX711 scale;
LiquidCrystal_I2C lcd(0x27, 16, 2);
const byte DT = 3, SCK_PIN = 2, BUZZ = 6, LED = 7;
float CAL = 420.0; // raw units per gram, set during calibration
const float LIMIT_G = 2000; // model limit in grams, change as you like
void setup() {
Serial.begin(9600);
pinMode(BUZZ, OUTPUT); pinMode(LED, OUTPUT);
lcd.init(); lcd.backlight();
scale.begin(DT, SCK_PIN);
scale.set_scale(CAL);
scale.tare(); // empty platform
lcd.print("Ready");
}
void loop() {
float g = scale.get_units(5);
bool over = g > LIMIT_G;
digitalWrite(LED, over);
digitalWrite(BUZZ, over ? (millis() / 200) % 2 : LOW);
lcd.setCursor(0, 0);
lcd.print(g, 0); lcd.print(" g ");
lcd.setCursor(0, 1);
lcd.print(over ? "OVERLOAD " : "OK ");
Serial.println(g);
}What the serial monitor should show
Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.
0.00
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 | Close to 0 g |
| 1 kg weight | About 1000 g after calibration |
| Weight above the limit | Alarm and lamp |
| Weight removed | Alarm stops |
If it does not work
Negative readings
Swap the signal wires A+ and A-.
Drifting reading
Let the board warm up and keep the load cell still.
Wrong weight
Recalibrate CAL with a known weight.
No reading
Check DT and SCK pins and the 5 V supply.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the lift overload alarm model?
Arduino Nano, Load cell 20 kg, HX711 load cell amplifier, Active buzzer 5 V, LED 5 mm red, Resistor 220 Ω, 16x2 LCD with I2C backpack (PCF8574), Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the lift overload alarm model take to build?
About 90 minutes for a beginner maker, in 7 steps.
How do I know the lift overload alarm model works?
Empty platform: Close to 0 g. 1 kg weight: About 1000 g after calibration. Weight above the limit: Alarm and lamp.
Negative readings: what should I check?
Swap the signal wires A+ and A-.
Drifting reading: what should I check?
Let the board warm up and keep the load cell still.
Wrong weight: what should I check?
Recalibrate CAL with a known weight.
No reading: what should I check?
Check DT and SCK pins and the 5 V supply.
