Kuormakenno tai painoanturi jopa 50 kg Arduinoon, ESP32:een tai ESP8266:een HX711:llä.
SKU: OT3243 Tuotenumero: AB098 EAN: 8720618231314 Sijainti: E10.06
Vaihtoehto
Kuormakenno YZC-131 anturi enintään 1 KG
€ 5,50
Katso tämä vaihtoehto
Näin kytket Painosensori jopa 50KG:n Arduino UNOon tai ESP32:een, mukana esimerkkisketsi, jonka voit ladata heti.
Tämä projekti mittaa painoa käyttämällä 50kg kuormasolua, joka on kytketty Arduino Uno -korttiin HX711-vahvistinmoduulin kautta. Sketch tekee vaa’alle taarauksen käynnistyksen yhteydessä ja tulostaa mitatun painon toistuvasti Serial Monitoriin. Voit kalibroida lukeman säätämällä kalibrointikerrointa tunnetun painon avulla.
/*
* ==================================================================
* 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);
}
Tarvittavat kirjastot: HX711 Arduino Library 0.7.5
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Tässä projektissa luetaan painoarvoja yhdestä 50kg half-bridge load cell -kuormakennosta HX711-vahvistimen ja kahden 1kΩ vastuksen avulla, jotta Wheatstone-silta saadaan valmiiksi. Kytke piiri, lataa sketch ja avaa Serial Monitor nopeudella 115200 baud nähdäksesi painoanturin reaaliaikaiset lukemat.
/*
* ==================================================================
* 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);
}
Tarvittavat kirjastot: HX711 Arduino Library 0.7.5
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Tämä punnituskenno tai painosensori kestää painon jopa 50KG. Jos haluat punnita suuremman painon, on mahdollista yhdistää sensori. Käyttämällä esimerkiksi 4 kpl 50KG punnituskennoja maksimi paino on 200KG.
Materiaali: Alumiini
Kapasiteetti: 50KG
Käytettäväksi Arduino, ESP32 tai ESP8266 kanssa yhdessä HX711 Weegcelversterker.
Mitat
Pituus: 3,88cm
Leveys: 3,88cm
Korkeus: 1,21cm
| Leveys | 3,88 cm |
|---|---|
| Sopii | Arduino / ESP32 / ESP8266 |
| Materiaali | alumiini |
| Pituus | 3,88 cm |
| Yhteensopiva | HX711 Vaaka-anturin vahvistin |
| Korkeus | 1,21 cm |
| Kapasiteetti | 50KG |
Ei vielä arvosteluja.
Etkö ole tyytyväinen? Sinulla on 30 päivää aikaa vastaanotosta palauttaa tuote.
Kaikki palautuksista
Painosensori jopa 50KG