Cov txheej txheem:
- Kauj ruam 1: Mount Load Cells
- Kauj Ruam 2: Txheeb Xyuas Cov Xov Tooj Ntawm Tes
- Kauj Ruam 3: Hlau Load Cells thiab HX711
- Kauj Ruam 4: Ntxiv HX711 Library rau Koj Arduino IDE
- Kauj ruam 5: Txheeb thiab ntsuas
Video: Arduino Chav Nplai Nrog 50 Kg Load Cells thiab HX711 Amplifier: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Cov Lus Qhia no piav qhia yuav ua li cas ntsuas qhov hnyav uas siv tau yooj yim ntawm cov khoom seem.
Cov ntaub ntawv xav tau:
- Arduino - (kev tsim qauv no siv tus qauv Arduino Uno, lwm yam Arduino version lossis clones yuav tsum ua haujlwm ib yam)
- HX711 ntawm pawg thawj coj saib tsis taus - Cov microchip no tau tsim tshwj xeeb rau ua kom nrov nrov los ntawm cov xov tooj ntawm tes thiab tshaj tawm rau lwm lub mircocontroller. Lub hlwb thauj khoom ntsaws rau hauv lub rooj tsavxwm no, thiab pawg thawj coj no qhia rau Arduino seb lub load cell ntsuas li cas.
- 50kg thauj cov cell (x4) - Thauj khoom lub cev tshwj xeeb zoo li cov khoom hlau uas muaj cov ntsuas ntsuas cov kua nplaum rau lawv. Cov ntsuas ntsuas yog cov resistors uas hloov lawv qhov resitance thaum lawv khoov. Thaum cov hlau hlau khoov, qhov ua haujlwm ntawm lub xov tooj ntawm tes hloov pauv (HX711 ntsuas qhov kev hloov pauv me me hauv kev tiv thaiv kom raug). Koj tuaj yeem yuav lub load cell thiab HX711 ua cov khoom siv ntawm no: https://www.amazon.com/Degraw-amplifier-weight-Arduino-Bathroom/dp/B075Y5R7T7/ Yog tias koj yuav cov khoom thov tawm qhov kev tshuaj xyuas! Nws yog qhov muaj txiaj ntsig zoo rau cov neeg yuav khoom yav tom ntej.
- Ua kom ruaj khov tiaj tiaj - ib qho tawv ntoo tawv lossis hlau zoo tagnrho
- Cov xov hlau hauv ntau xim rau txuas txhua qhov
- Fais fab mov rau Arduino
Kauj ruam 1: Mount Load Cells
Mount 4 load cells mus rau hauv qab ntawm qhov ntsuas hauv plaub fab. Epoxy ua haujlwm zoo los tuav lawv hauv qhov chaw. Saib daim duab teeb tsa, nws qhia tau tias qhov twg yuav tsum tau teeb tsa rau lub hauv paus thiab qhov twg yuav tsum kov hauv pem teb.
Kauj Ruam 2: Txheeb Xyuas Cov Xov Tooj Ntawm Tes
Daim duab kab hluav taws xob tau ua piv txwv tias lub xov tooj ntawm tes tau tsim raws li daim duab no.
Kom paub tseeb tias koj tau txais nws raug, nco ntsoov xyuas seb ob lub davhlau ya nyob twg ntawm lub hlwb thauj khoom muaj qhov ua haujlwm siab tshaj plaws ntawm lawv (piv txwv li Dub thiab Dawb, kom phim cov phiaj xwm), xaim lawv hauv cov xim sib txuam loj, zoo li BB WW BB WW thiab tom qab ntawd ua rau muaj kev txaus siab (E+/E-) ob lub kais nruab nrab qhov sib txawv (R) thiab kev nkag siab (A+/A-) ntawm lwm khub ntawm lub kais nruab nrab.
Nplooj ntawv no ntawm Sackexchange muaj cov ntaub ntawv zoo dua:
Kauj Ruam 3: Hlau Load Cells thiab HX711
Saib daim duab kab xev seb yuav txuas lub xovtooj ntawm tes, HX711, thiab Arduino li cas.
Qee qhov ntawm cov xov tooj ntawm tes tau txuas nrog ua ke los tsim qhov hu ua Wheatstone choj kev teeb tsa. Qhov no tuaj yeem ua rau me ntsis tsis meej pem. Qhov kev xaiv zoo rau txuas txhua lub cell thauj khoom hauv qhov huv, nkag siab yooj yim yog SparkFun load cell combinator board -
Qhov kev npaj no tso cai rau kev thauj khoom ntawm txhua qhov sib txawv ntawm cov khoom siv sib txawv ntawm lub xovtooj sib txuas ua ke thiab ntsuas ib zaug.
Kauj Ruam 4: Ntxiv HX711 Library rau Koj Arduino IDE
Lub tsev qiv ntawv HX711 muaj nyob ntawm no:
Saib qhov txuas no ntawm Arduino lub vev xaib rau cov lus qhia yuav ua li cas ntxiv cov tsev qiv ntawv rau koj Arduino IDE:
Kauj ruam 5: Txheeb thiab ntsuas
Sparkfun muaj cov phiaj xwm Arduino zoo los ua qhov ntsuas. Qhov hloov tshiab tshaj plaws muaj nyob ntawm GitHub thiab luam tawm hauv qab no:
Thawj qib software yog txhawm rau txiav txim siab qhov ntsuas rau qhov ntsuas. Txhawm rau ua qhov no, khiav cov cai no:
/*
Piv txwv siv SparkFun HX711 breakout board nrog ntsuas los ntawm: Nathan Seidle SparkFun Electronics Hnub: Kaum Ib Hlis 19th, 2014 Daim ntawv tso cai: Tus lej no yog pej xeem sau tab sis koj yuav npias rau kuv yog tias koj siv qhov no thiab peb ntsib ib hnub twg (Daim ntawv tso cai Beerware). Nov yog daim duab calibration. Siv nws los txiav txim siab calibration_factor uas tus piv txwv tseem ceeb siv. Nws kuj tseem tso tawm zero_factor muaj txiaj ntsig zoo rau cov phiaj xwm uas muaj qhov hnyav tas mus li ntawm qhov ntsuas nruab nrab ntawm lub zog mus. Teeb koj cov nplai thiab pib kos duab yam tsis muaj qhov hnyav ntawm qhov ntsuas Thaum nyeem tau pom tso qhov hnyav ntawm qhov ntsuas Nyem +/- lossis a/z txhawm rau kho qhov ntsuas ntsuas qhov ua tau zoo kom txog rau thaum cov ntawv nyeem nyeem sib phim qhov paub qhov hnyav Siv qhov ntsuas ntsuas no ntawm tus piv txwv piv txwv Qhov piv txwv no kwv yees phaus (lbs). Yog tias koj xav tau hnyav, hloov Serial.print ("lbs"); line li kg Qhov ntsuas ntsuas yuav txawv sib txawv tab sis nws yuav cuam tshuam ncaj qha rau lbs (1 lbs = 0.453592 kg). Koj qhov kev ntsuas ntsuas yuav zoo heev lossis tsis zoo. Txhua yam nws nyob ntawm kev teeb tsa ntawm koj cov txheej txheem ntsuas thiab kev coj ua lub ntsuas hluav taws xob los ntawm xoom xeev Qhov piv txwv no siv bogde lub tsev qiv ntawv zoo: "https://github.com/bogde/HX711" bogde lub tsev qiv ntawv raug tso tawm hauv GNU GENERAL PUBLIC LICENSE Arduino tus pin 2 -> HX711 CLK 3 -> DOUT 5V -> VCC GND -> GND Feem ntau txhua tus pin ntawm Arduino Uno yuav sib xws nrog DOUT/CLK. HX711 pawg thawj coj tuaj yeem siv hluav taws xob los ntawm 2.7V txog 5V yog li Arduino 5V lub zog yuav tsum zoo. */ #include "HX711.h" #define LOADCELL_DOUT_PIN 3 #define LOADCELL_SCK_PIN 2 HX711 nplai; ntab calibration_factor = -7050; //-7050 ua haujlwm rau kuv 440lb max nplai teeb tsa teeb tsa () {Serial.begin (9600); Serial.println ("HX711 ntsuas qhov ntsuas"); Serial.println ("Tshem tag nrho qhov hnyav los ntawm qhov ntsuas"); Serial.println ("Tom qab nyeem ntawv pib, tso qhov hnyav paub qhov hnyav"); Serial.println ("Xovxwm + lossis a txhawm rau txhawm rau ntsuas qhov ntsuas"); Serial.println ("Xovxwm - lossis z kom txo qhov ntsuas qhov ntsuas"); scale.begin (LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN); teev.set_scale (); nplai.are (); // Pib dua qhov ntsuas rau 0 ntev zero_factor = scale.read_average (); // Tau txais lub hauv paus nyeem Serial.print ("Zero factor:"); // Qhov no tuaj yeem siv los tshem qhov xav tau los ntsuas qhov ntsuas. Pab tau nyob hauv cov phiaj xwm ruaj khov. Serial.println (zero_factor); } void loop () {scale.set_scale (calibration_factor); // Kho qhov ntsuas qhov ntsuas no Serial.print ("Nyeem:"); Serial.print (teev.get_units (), 1); Serial.print ("lbs"); // Hloov qhov no mus rau kg thiab rov kho qhov ntsuas qhov tseeb yog tias koj ua raws SI units zoo li tus neeg zoo Serial.print ("calibration_factor:"); Serial.print (calibration_factor); Serial.println (); yog (Serial.available ()) {char temp = Serial.read (); yog (temp == ' +' || temp == 'a') calibration_factor += 10; lwm yog (temp == ' -' || temp == 'z') calibration_factor -= 10; }}
Tom qab ntsuas qhov ntsuas, koj tuaj yeem ua haujlwm cov qauv no, tom qab ntawd hack nws rau koj tus kheej lub hom phiaj:
/*
Piv txwv siv SparkFun HX711 breakout board nrog ntsuas los ntawm: Nathan Seidle SparkFun Electronics Hnub: Kaum Ib Hlis 19th, 2014 Daim ntawv tso cai: Tus lej no yog pej xeem sau tab sis koj yuav npias rau kuv yog tias koj siv qhov no thiab peb ntsib ib hnub twg (Daim ntawv tso cai Beerware). Qhov piv txwv no qhia txog kev ntsuas qhov yooj yim. Saib cov duab ntsuas kom tau txais qhov ntsuas qhov ua tau zoo rau koj cov teeb tsa tshwj xeeb ntawm tes. Qhov piv txwv no siv bogde lub tsev qiv ntawv zoo: "https://github.com/bogde/HX711" bogde lub tsev qiv ntawv raug tso tawm raws li GNU GENERAL PUBLIC LICENSE Lub HX711 ua ib yam zoo: nyeem cov hlwb. Lub rooj sib tsoo tawg yog sib xws nrog txhua cov nplej-pob zeb choj raws lub xov tooj ntawm tes uas yuav tsum tso cai rau tus neeg siv ntsuas txhua yam los ntawm ob peb grams mus rau kaum tawm tons. Arduino tus pin 2 -> HX711 CLK 3 -> DAT 5V -> VCC GND -> GND Lub HX711 pawg thawj coj tuaj yeem siv hluav taws xob los ntawm 2.7V txog 5V yog li Arduino 5V lub zog yuav tsum zoo. */#include "HX711.h" #define calibration_factor -7050.0 // Tus nqi no tau txais siv SparkFun_HX711_Calibration sketch #define LOADCELL_DOUT_PIN 3 #define LOADCELL_SCK_PIN 2 HX711 nplai; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); Serial.println ("HX711 scale demo"); scale.begin (LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN); scale.set_scale (calibration_factor); // Tus nqi no tau los ntawm kev siv SparkFun_HX711_Calibration sketch scale.tare (); // Piv txwv tias tsis muaj qhov hnyav ntawm qhov ntsuas thaum pib, rov pib dua qhov ntsuas rau 0 Serial.println ("Nyeem:"); } void loop () {Serial.print ("Nyeem:"); Serial.print (teev.get_units (), 1); //scale.get_units () rov qab ntab Serial.print ("lbs"); // Koj tuaj yeem hloov qhov no rau kg tab sis koj yuav tsum tau rov kho qhov ntsuas qhov ntsuas qhov tseeb_printor Serial.println (); }
Pom zoo:
Arduino Tension Scale Nrog 40 Kg Lub Hnab Load Cell thiab HX711 Amplifier: 4 Kauj Ruam
Arduino Tension Scale Nrog 40 Kg Lub Hnab Load Cell thiab HX711 Amplifier: Cov lus qhia no piav qhia yuav ua li cas thiaj ua kom nruj nruj siv npaj muaj nyob ntawm cov khoom seem.Muaj ntaub ntawv xav tau: 1. Arduino - qhov kev tsim qauv no siv tus qauv Arduino Uno, lwm yam Arduino cov ntawv lossis cov pob zeb yuav tsum ua haujlwm ib yam nkaus. HX711 ntawm pawg thawj coj saib tsis taus
Arduino Nplai Nrog 5kg Load Cell thiab HX711 Amplifier: 4 Kauj Ruam (nrog Duab)
Arduino Nplai Nrog 5kg Load Cell thiab HX711 Amplifier: Cov lus qhia no piav qhia yuav ua li cas ntsuas qhov hnyav me me uas siv tau yooj yim ntawm cov khoom seem.Materials xav tau: 1. Arduino - qhov kev tsim qauv no siv tus qauv Arduino Uno, lwm yam Arduino cov ntawv lossis cov pob zeb yuav tsum ua haujlwm ib yam nkaus. HX711 ntawm kev tawm tsam
Arduino Chav Nplai: 6 Kauj Ruam (nrog Duab)
Arduino Chav Nplai: Hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas thiaj tsim lub chav ua noj yooj yim ntsuas nrog qhov kev cai 3D luam tawm lub thawv
DIY Ntse Nplai Nrog Tswb Tswb (nrog Wi-nkaus, ESP8266, Arduino IDE thiab Adafruit.io): 10 Kauj Ruam (nrog Duab)
DIY Ntse Nplai Nrog Tswb Tswb (nrog Wi-nkaus, ESP8266, Arduino IDE thiab Adafruit.io): Hauv kuv qhov haujlwm yav dhau los, Kuv tau tsim chav dej ntse nrog Wi-nkaus. Nws tuaj yeem ntsuas tus neeg siv qhov hnyav, tso saib nws hauv zos thiab xa mus rau huab. Koj tuaj yeem tau txais cov ntaub ntawv ntxaws ntxiv txog qhov no ntawm qhov txuas hauv qab no: https: //www.instructables.com/id/Wi-Fi-Smart-Scale-wi
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los