Cov txheej txheem:

Qhov muag tsis pom kev Nrog ESP8266, Google Tsev thiab Openhab Kev Sib Koom thiab Kev Tswj Xyuas Web: 5 Cov Kauj Ruam (nrog Duab)
Qhov muag tsis pom kev Nrog ESP8266, Google Tsev thiab Openhab Kev Sib Koom thiab Kev Tswj Xyuas Web: 5 Cov Kauj Ruam (nrog Duab)

Video: Qhov muag tsis pom kev Nrog ESP8266, Google Tsev thiab Openhab Kev Sib Koom thiab Kev Tswj Xyuas Web: 5 Cov Kauj Ruam (nrog Duab)

Video: Qhov muag tsis pom kev Nrog ESP8266, Google Tsev thiab Openhab Kev Sib Koom thiab Kev Tswj Xyuas Web: 5 Cov Kauj Ruam (nrog Duab)
Video: Pheej Thoj Nkauj Tawm Tshiab Tu Siab Qhov Muag Tsis Pom Kev 2024, Kaum ib hlis
Anonim
Image
Image
Stepper Motor, Zog thiab Kov
Stepper Motor, Zog thiab Kov

Hauv Cov Lus Qhia Kuv qhia koj li cas kuv ntxiv kev siv tshuab rau kuv qhov muag tsis pom. Kuv xav kom muaj peev xwm ntxiv thiab tshem tawm qhov kev siv tshuab nws, yog li txhua qhov kev teeb tsa yog kaw rau.

Qhov tseem ceeb yog:

  • Stepper lub cev muaj zog
  • Stepper tsav tswj bij ESP-01
  • Iav thiab mounting bracket

Kuv tswj qhov muag tsis pom ntawm Google Tsev, kuv Openhab server thiab lub vev xaib.

Koj tseem tuaj yeem tswj hwm qhov muag tsis pom kev, vim tias thaum lub qhov muag tsis qhib lossis kaw tsis tau, lub tshuab hluav taws xob tsis siv neeg.

Khoom siv

Kuv yuav cov khoom feem ntau hauv Aliexpress

ESP8266: ESP-01

Stepper lub cev muaj zog

A4988 stepper tsav tsheb

Chain rau kev tswj qhov muag tsis pom

Pob converter

Fais fab mov

Kuv tau tsim thiab luam tawm cov iav thiab txhim kho kuv tus kheej

Kauj Ruam 1: Stepper Motor, Gears thiab Handles

Stepper Motor, Zog thiab Kov
Stepper Motor, Zog thiab Kov
Stepper Motor, Zog thiab Kov
Stepper Motor, Zog thiab Kov

Kuv tshem tawm cov iav los ntawm cov menyuam kab hlau rhuav kom rov tsim kho lub iav hauv Fusion360. Kuv sim nrog zog sib txawv. Cov iav me me tau muab lub zog loj dua, tab sis tsis muaj kev tuav ntawm pob-saw. Cov iav nrog 12 tus hniav ua haujlwm zoo tshaj plaws rau kuv thiab kuv tau tsim cov khoom sib dhos kom haum rau lub tshuab tsav lub cev thiab lub iav nrog pob-saw.

Kuv tsim cov tes tuav rau ntawm tus txheej txheem Luxaflex tuav.

Cov ntaub ntawv STL ntawm txhua ntu 3D tau luam tawm ntawm kuv nplooj ntawv Thingiverse.

Kauj ruam 2: Stepper Driver Hardware

Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse
Stepper tsav tsheb kho vajtse

Kho vajtse muaj:

  • Kauj ruam nqis (phaw) hloov pauv (12V mus rau 3.3V) kom muaj zog ESP-01 thiab A4988 tus tsav tsheb stepper
  • ESP-01 uas txuas rau WiFi network thiab tswj hwm tus tsav tsheb (pab kom/lov tes taw, tsav lub cev thiab cov kauj ruam)
  • Stepper tsav A4988
  • Stepper lub cev muaj zog (17HS4401)
  • Qee cov khoom siv hluav taws xob

Kuv tau muab cov poj niam txuas rau lub rooj sib txuas perf thiab txuas cov khoom uas tau hais los saum no.

Kauj ruam 3: Software

Software
Software
Software
Software

Cov cai tau tshaj tawm ntawm kuv Github.

Kho kom raug lub Plaub Hlis 2020: ib qho uas tsis muaj MQTT thiab tsuas yog kev tswj hwm web tau ntxiv.

Kho lub Plaub Hlis 2020: + 10% thiab - 10% ntxiv rau lub vev xaib sib tham.

Qhov kev zov me nyuam nrog MQTT tswj:

  • Txuas rau WiFi network thiab MQTT server
  • Txheeb xyuas seb lub xeev qhov muag tsis pom qhov sib npaug rau qhov teeb tsa, yog tias tsis yog nws hloov lub xeev kom haum rau qhov teeb tsa. Tom qab ntawd qhib lub stepper lub cev muaj zog, ua kom raug tus lej ntawm cov kauj ruam. Lov tes taw stepper lub cev muaj zog.
  • Kev teeb tsa tuaj yeem tau txais los ntawm MQTT lossis ntawm Webserver.
  • Cov webserver tuaj yeem nkag mus rau HTTPUpdateServer hom rau OTA hloov kho lub firmware.

Kev xiam lub stepper lub cev muaj zog los ntawm teeb tsa 'EN' tus pin ntawm A4988 tus tsav tsheb yog qhov tseem ceeb rau:

  • Txo tus nqi tam sim no siv los ntawm lub cuab yeej yog qhov teeb tsa zoo ib yam (feem ntau ntawm lub sijhawm)
  • Pab kom phau ntawv tswj qhov muag tsis pom kev.

HTTPUpdateServer tau qhib ntawm IP chaw nyob/hloov tshiab. Ua ntej nkag mus rau kev hloov kho tshiab ntawm lub vev xaib, nws hloov lub xeev mus rau Xeev Lub Xeev, txij li txoj haujlwm pib hauv CENTER xeev.

Nov yog qhov kuv tau txais tus lej ntawm cov kauj ruam:

Qhov ntev ntawm txoj hlua txuas nruab nrab ntawm qhov kaw thiab qhib yog kwv yees li 40 cm. Ib qho kev hloov pauv ntawm lub iav yog kwv yees li. 7.5 cm. Qhov ntev tag nrho ntawm txoj hlua yog 40 / 7.5 = kwv yees li. 5.3 kev tawm tsam. Kuv tsis xav kom rub lub qaum thiab lub cuab yeej pib los ntawm txoj haujlwm nruab nrab, yog li kuv hloov nws mus rau 5 kev hloov pauv (2.5 hauv ib qho thiab 2.5 hauv lwm txoj kev). tab sis kuv tau teeb tsa kuv tus tsav tsheb tsav mus rau lub hlis thib ib, yog li ib qho kev hloov pauv yog 800 lub hlis thib ob. 5 kev hloov pauv yog 4000 lub hlis thib ob (MAX_STEPS). Qhov kaw qhov chaw (CLOSE_STEPS) yog 90% kaw = 3600 cov kauj ruam; qhib qhov chaw (OPEN_STEPS) yog 10% = 400 cov kauj ruam. Qhov chaw nruab nrab (CENTER_STEPS) yog 50% yog 2000 kauj ruam thiab yog thawj tus lej ntawm cov kauj ruam thaum lub cuab yeej pib.

Kauj ruam 4: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Kuv tus maub los raug thawb rau ntawm windowsill los ntawm kev sib dhos ntawm cov tsav tsheb

Kuv tsim lub nraub qaum rau tus tsav tsheb uas muaj tus tsav tsheb thiab ESP-01.

Kauj Ruam 5: Tsev Automation

Tsev Automation
Tsev Automation

Thawj: Kuv muaj Raspberry Pi Zero khiav Raspbian Stretch lite, NodeRed thiab Openhab 2.4.0

Hloov kho lub Peb Hlis 2021: Kuv muaj Raspberry Pi 3B khiav Raspbian Buster lite, NodeRed thiab Openhab 3.0.0

Kuv Openhab cov khoom, cov cai thiab sitemap nyob ntawm kuv Github. Kho lub Plaub Hlis 2020: + 10% thiab - 10% setpoint tau ntxiv rau Sitemap hauv Openhab). Kho lub Peb Hlis 2021: Kuv ntxiv Openhab 3 cov lus piav qhia hauv cov ntawv.

Saib Cov Lus Qhia no li cas kuv teeb tsa MQTT ntawm Openhab 3

Hauv qhov no Node Red tsuas yog siv rau lub hom phiaj debugging.

Google Pabcuam

Google Tsev Openhab kev koom ua ke tau piav qhia ntawm no.

Yog tias kuv lub TV qhib ntawm Openhab, qhov muag tsis pom raws li txoj cai.

"Hav Google, teeb tsa qhov muag tsis pom qhov rai rau 50"

Pom zoo: