Cov txheej txheem:

DomoRasp: 4 Kauj Ruam (nrog Duab)
DomoRasp: 4 Kauj Ruam (nrog Duab)

Video: DomoRasp: 4 Kauj Ruam (nrog Duab)

Video: DomoRasp: 4 Kauj Ruam (nrog Duab)
Video: ICU- TXIV NEEJ TAUG KEV | New song [official Mv] nkauj tawm tshiab 2023 2024, Kaum ib hlis
Anonim
DomoRasp
DomoRasp
DomoRasp
DomoRasp

Ua ntej tshaj plaws, 2 yam tseem ceeb:

- koj yuav tsum ua siab ntev nrog kuv cov lus Askiv tsis zoo

- tsis txhob poob siab: lub Circuit Court zoo li txaus ntshai heev, tab sis nws ua haujlwm thiab kuv yuav piav qhia koj yuav tsim koj tus kheej li cas

Txoj haujlwm me no lub hom phiaj tsim kom muaj ESP32 raws qhov muaj peev xwm sib txuas lus ntawm MQTT cov ntaub ntawv ntsuas;

Cov ntaub ntawv yuav tshwm sim siv Grafana.

Npaj kom pib?

Kauj Ruam 1: Yam Koj Xav Tau

Koj xav tau lub PC txuas nrog koj lub WiFi network hauv tsev.

Lub PC yuav raug siv los tuav MQTT broker, Telegraf thiab Grafana.

Yog tias ua tau Raspberry Pi qhov twg los tuav cov kev pabcuam InfluxDB (txwv tsis pub koj tuaj yeem nruab InfluxDB ntawm koj lub PC)

Raws li Hardware koj xav tau:

  • ESP32 (Kuv yuav qhov no)
  • BMP280 sensor (Kuv yuav qhov no)
  • Oled zaub 128 x 64 pixel (Kuv yuav qhov no)
  • Lub teeb pom kev zoo (LDR, ib yam zoo li no)
  • Laub khawm (qee yam zoo li no)
  • Resistors (10k ohm thiab 220ohm)
  • Txuas
  • Breadboard (Kuv yuav cov me me no)

Hauv Amazon koj tuaj yeem pom cov khoom siv zoo tiag tiag los ntawm Elegoo lossis AzDelivery, piv txwv li qhov no.

Kauj Ruam 2: Txhim Kho Cov Txheej Txheem Software

Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam
Nruab qhov Software Cheebtsam

Muaj ntau ntau cov lus qhia yuav ua li cas rau nruab thiab teeb tsa MQTT (Mosquitto) + InfluxDB + Telegraf + Grafana.

Qhov muaj txiaj ntsig tiag tiag yog qhov no: Raspberry Pi IoT: Sensors, InfluxDB, MQTT, thiab Grafana

Thaum lub Circuit tau tsim thiab sib txuas lus nrog MQTT broker (ua siab ntev, koj yuav tsum tau tos qee lwm cov kauj ruam), koj yuav tsum tuaj yeem sau npe rau esp32/ sensors/ ncauj lus siv MQTT.fx, thiab pom cov ntaub ntawv xa los ntawm Circuit.

Kuv xav muab lus qhia rau koj:

  • rho tawm txhua qhov kev tawm tswv yim thiab kev teeb tsa hauv telegraf.conf thiab tsim ob cov ntaub ntawv hauv phau ntawv tshiab 'conf': inputs.conf thiab outputs.conf. Koj tuaj yeem pom kuv teeb tsa hauv cov duab.
  • sim cov kab ke Mosquitto + InfluxDB + Telegraf ua ntej kuv tsim lub Circuit: MQTT.fx yog koj tus phooj ywg

Kauj Ruam 3: Teeb tsa Arduino Development Environment

Teeb tsa Arduino Kev Txhim Kho Ib puag ncig
Teeb tsa Arduino Kev Txhim Kho Ib puag ncig

Kuv tsis paub yog tias koj tshiab rau Arduino (Kuv vam tias tsis yog, vim txoj haujlwm no tuaj yeem nyuaj me ntsis thawj qhov haujlwm)

Txawm li cas los xij. Thawj qhov koj yuav tsum tau teeb tsa Arduino IDE thiab teeb tsa ESP32 pawg thawj coj hauv IDE.

NB: tsis txhob nruab Windows 10 App, tab sis ua tiav Win32 daim ntawv thov:

Teeb tsa ESP32 pawg thawj coj hauv Arduino, raws li tau piav qhia ntawm no:

randomnerdtutorials.com/installing-the-esp…

Thaum kawg ntawm 2 cov kauj ruam no koj yuav tsum muaj peev xwm thauj tus qauv yooj yim mus rau ESP32 micro-maub los.

Kuv tsim kuv tus lej siv Visual Studio Code nrog qhov txuas ntxiv no:

Ua ntej tsim lub Circuit Court, thov nco ntsoov tias koj tuaj yeem:

  • suav sau cov duab yooj yim (tshawb rau I2C scanner piv txwv)
  • saib ESP32 cov lej tso tawm hauv Visual Studio Code
  • Nruab thiab suav nrog cov tsev qiv ntawv hauv txoj haujlwm
  • upload koj daim duab qhia chaw ntawm ESP32

Kauj ruam 4: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

Kuv tsim Fritzing project nplooj ntawv piav qhia yuav tsim lub Circuit thiab qhov twg koj tuaj yeem pom kuv tus lej!

Kuv pom Fritzing tsuas yog hnub no: ib qho software zoo tshaj plaws thiab zej zog, qhov twg los tsim thiab tiv thaiv kab hluav taws xob.

Koj tau rub tawm qhov kawg (dawb) version ntawm Fritzing thiab qhib DomoRasp.fzz cov ntaub ntawv kuv ntxiv rau nplooj ntawv hauv qab no:

fritzing.org/projects/domorasp

(thov nyeem cov lus piav qhia hauv nplooj ntawv qhov project!)

Yog tag nrho!

Muaj kev lom zem thiab tsis txhob yig tiv tauj kuv!

Pom zoo: