Cov txheej txheem:

IOT Paj Liab Luj Nplai: 7 Kauj Ruam
IOT Paj Liab Luj Nplai: 7 Kauj Ruam

Video: IOT Paj Liab Luj Nplai: 7 Kauj Ruam

Video: IOT Paj Liab Luj Nplai: 7 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai
IOT Paj Liab Luj Nplai

Kuv xav qhia kuv li IOT Paj lauj Liab Luj Nplai, nws tuaj yeem tau txais thiab teev qhov hnyav ntawm lub lauj kaub paj tsis tu ncua. Yog li cov av noo tuaj yeem tau ncaj qha. Thiab thaum tsob ntoo xav tau dej tuaj yeem paub.

Vim li cas siv txoj kev hnyav tsis ntsuas lub peev xwm lossis tsis kam?

1. ib qho kev sojntsuam yuav tsum tau muab tso rau hauv lub lauj kaub, nws yuav ua rau cov hauv paus hniav puas.

2. ntsuas qhov muaj peev xwm lossis tiv taus tsis tuaj yeem tau txais cov av noo ncaj qha.

Piv txwv li, kuv Sinn. 'Pob Zeb Georgia' yog 287g thaum av qhuav me ntsis.

Tom qab ywg dej, nws dhau los ua 460g, 173g yog dej.

Thawj daim duab yog kuv Sinn. 'Pob Zeb Georgia', tau siv xyoo tas los.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas

Ua ntej qhov hnyav , yuav tsum tau ua haujlwm kom meej kom tiv thaiv xoom drift lossis ntsuas kub los yog qee yam zoo li ntawd.

Lub xovtooj ntawm tes tau teeb tsa nruab nrab ntawm lub hauv paus thiab phaj ruaj. Ib qho kawg ntawm cov phaj txav tau txuas nrog pob khawm thiab lwm qhov kawg tau muab tso rau saum lub log aeccentric.

Lub aeccentric log tau tsav los ntawm MG995 Servo. Nyob rau hauv txoj hauj lwm saum toj kawg nkaus, Paj lauj kaub yuav sawv ntawm lub phaj uas txav tau. Kev ua haujlwm meej tuaj yeem ua tiav. Hauv txoj hauj lwm hauv qab, Paj lauj kaub yuav sawv ntawm lub phaj tas. Kev ua haujlwm hnyav tuaj yeem ua tiav. Txhawm rau tiv thaiv kev puas tsuaj ntawm tes, feem ntau lub Paj Paj yuav sawv ntawm lub phaj txav tau. Nodemcu siv los nyeem cov xov tooj ntawm tes, tswj server thiab xa cov ntaub ntawv mus rau IOT server ntawm WIFI siv MQTT raws tu qauv.

Kauj Ruam 2: Sau Yam Koj Xav Tau

Sau Yam Koj Xav Tau
Sau Yam Koj Xav Tau
Sau Yam Koj Xav Tau
Sau Yam Koj Xav Tau
Sau Yam Koj Xav Tau
Sau Yam Koj Xav Tau

Nov yog cov npe ntawm txhua yam uas xav tau rau txoj haujlwm no:

1. ntsuas qhov hnyav (siv nws Load Cell)

2. HX711 module

3. NodeMCU nrog ESP-12E

4. MG995 Servo

5. 5mm thickness ABS Board

6. qee qhov luam tawm 3D

7. ib co kab

8. M3 thiab M4 screws thiab ceev

Kauj Ruam 3: Ua Tus Nplai Nplai

Ua Tus Nplai Nplai
Ua Tus Nplai Nplai
Ua Tus Nplai Nplai
Ua Tus Nplai Nplai
Ua Tus Nplai Nplai
Ua Tus Nplai Nplai

200*250*5 mm ABS pawg thawj coj tau siv los ua lub hauv paus ntawm Kev Ntsuas Nplai.

Load cell tau teeb tsa ntawm lub rooj tsavxwm.

Txhim kho phaj yog tsim los nrog daim phaj qub thiab ib feem 3d luam tawm.

Cov phaj txav tau yog 180*190*5mm ABS pawg thawj coj nrog lwm 5mm ABS txhawb nqa tav.

Lub pob khawm, tus tuav servo, log aeccentric yog 3d luam tawm ib feem.

Kua nplaum los yog ntsia hlau rau lawv.

Ib daim duab sketchup tuaj yeem qhia koj tias yuav muab cov khoom tso rau qhov twg.

Kauj ruam 4: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Hlau lawv.

Yog tias siv ESP8266 pw tsaug zog, GPIO16 thiab RST tus pin yuav tsum txuas nrog, tsis siv hauv daim ntawv thov no.

Kauj ruam 5: Coding

Arduino tau siv, thiab HX711 lub tsev qiv ntawv tau siv, ntawm no txuas

github.com/bogde/HX711

Nodemcu xa MQTT lus rau domoticz server hauv kuv NAS. Yog li MQTT cov tsev qiv ntawv xav tau.

github.com/knolleary/pubsubclient

Kab laum nrog HX711 lub tsev qiv ntawv, uas yog software rov pib dua yuav tshwm sim thaum txuas MQTT server tom qab suav nrog HX711 lub tsev qiv ntawv. Tawm tswv yim "void yield (void) {};" hauv HX711. CPP tuaj yeem daws qhov teeb meem.

Koj li SSID, Password, MQTT teeb tsa yuav tsum raug hloov ua ntej siv.

const char* ssid = "KOJ SSID";

const char* password = "KOJ PASSWORD";

const char* mqtt_domoticz = "KOJ SERVER";

Kauj ruam 6: Calibration

Calibration
Calibration
Calibration
Calibration

Xa cov lus qhia hauv HX711 lub tsev qiv ntawv.

1. Hu rau set_scale () uas tsis muaj qhov ntsuas.

2. Hu tare () uas tsis muaj qhov ntsuas.

3. Muab qhov hnyav paub rau ntawm qhov ntsuas thiab hu rau get_units (10).

4. Faib qhov tshwm sim hauv qib 3 rau koj qhov hnyav paub. Koj yuav tsum tau txais txog qhov ntsuas uas koj xav tau kom dhau mus rau set_scale ().

5. Kho qhov ntsuas ntsuas hauv qib 4 kom txog thaum koj tau txais kev nyeem ntawv raug.

Kauj Ruam 7: Ua kom tiav

Nws yog kuv thawj kab lus ua lus Askiv, qee qhov yuam kev, tej zaum.

Qee qhov lwm txoj haujlwm tuaj yeem ntxiv, xws li ntsuas qhov hnyav, tso dej.

Pom zoo: