Mjerna ćelija ili senzor težine do 50 kg za Arduino, ESP32 ili ESP8266 s HX711.
SKU: OT3243 Broj artikla: AB098 EAN: 8720618231314 Lokacija: E10.06
Alternativa
Senzor mjerne ćelije YZC-131 do 1 KG
€ 5,50
Pogledaj ovu alternativu
Ovako spoji Senzor težine do 50KG na Arduino UNO ili ESP32, uz primjer sketcha koji možeš odmah učitati.
Ovaj projekt mjeri težinu pomoću 50kg load cell spojene na Arduino Uno putem HX711 pojačala. Sketch pri pokretanju tara vagu i više puta ispisuje izmjerenu težinu u Serial Monitor. Očitavanje možeš kalibrirati podešavanjem kalibracijskog faktora pomoću poznate težine.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 50kg Load Cell Weight Measurement with HX711
* Board : Arduino UNO (arduino:avr:uno)
* Parts : 50kg Load Cell Weight Sensor
* Libraries : HX711 Arduino Library 0.7.5
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include "HX711.h"
const int LOADCELL_DOUT_PIN = 3;
const int LOADCELL_SCK_PIN = 2;
HX711 scale;
// Adjust this calibration factor after testing with a known reference weight
float calibration_factor = -7050.0;
void setup() {
Serial.begin(115200);
while (!Serial) {
; // Wait for serial port to connect
}
Serial.println(F("--- HX711 Load Cell Scale ---"));
Serial.println(F("Initializing scale, do not place weight on the sensor..."));
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
scale.set_scale(calibration_factor);
scale.tare(); // Reset the scale to 0
Serial.println(F("Tare complete. Ready for measurements."));
}
void loop() {
if (scale.is_ready()) {
float weight = scale.get_units(5);
Serial.print(F("Weight: "));
Serial.print(weight, 2);
Serial.println(F(" units"));
} else {
Serial.println(F("HX711 not ready."));
}
delay(500);
}
Potrebne biblioteke: HX711 Arduino Library 0.7.5
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ovaj projekt očitava vrijednosti težine s jedne half-bridge load cell 50kg pomoću HX711 pojačala i dva otpornika od 1kΩ kako bi se dovršio Wheatstoneov most. Spojite sklop, učitajte sketch i otvorite Serial Monitor na 115200 baud kako biste vidjeli očitanja senzora težine u stvarnom vremenu.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 50kg Load Cell with HX711 Amplifier
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : 50kg Load Cell Weight Sensor
* Libraries : HX711 Arduino Library 0.7.5
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include "HX711.h"
// Pin definitions for HX711
const int DOUT_PIN = 19;
const int SCK_PIN = 18;
HX711 scale;
void setup() {
Serial.begin(115200);
Serial.println("50kg Load Cell Demo");
scale.begin(DOUT_PIN, SCK_PIN);
Serial.println("Taring scale... Please keep sensor unloaded.");
delay(1000);
scale.tare();
Serial.println("Tare complete. Ready for readings!");
}
void loop() {
if (scale.is_ready()) {
long rawValue = scale.get_value(5);
Serial.print("Raw Load Cell Value: ");
Serial.println(rawValue);
} else {
Serial.println("HX711 not found or not ready.");
}
delay(500);
}
Potrebne biblioteke: HX711 Arduino Library 0.7.5
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ova mjerna ćelija ili senzor težine može podnijeti težinu do 50KG. Ako želite mjeriti veću težinu, moguće je kombinirati senzor. Na primjer, korištenjem 4 mjerne ćelije od 50KG maksimalna težina postaje 200KG.
Materijal: Aluminij
Kapacitet: 50KG
Za korištenje s Arduino, ESP32 ili ESP8266 u kombinaciji s HX711 pojačalom za mjernu ćeliju.
Dimenzije
Dužina: 3,88cm
Širina: 3,88cm
Visina: 1,21cm
| Širina | 3,88 cm |
|---|---|
| Prikladno za | Arduino / ESP32 / ESP8266 |
| Materijal | aluminij |
| Duljina | 3,88 cm |
| Kompatibilno s | HX711 pojačalo mjerne ćelije |
| Visina | 1,21 cm |
| Kapacitet | 50KG |
Još nema recenzija.
Senzor težine do 50KG