Cov txheej txheem:
- Kauj Ruam 1: Yuav Tsum Tau:
- Kauj Ruam 2: Kev Sib Txuas:
- Kauj ruam 3: Coding:
- Kauj Ruam 4: Lus Cim Kawg:
Video: Chav Huab Cua Hauv Chav Siv Arduino & BME280: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Yav dhau los kuv tau qhia qhov chaw nres tsheb huab cua yooj yim uas qhia qhov Kub thiab Vaum ntawm thaj chaw. Qhov teeb meem nrog nws yog tias nws yuav siv sijhawm hloov kho thiab cov ntaub ntawv tsis raug. Hauv qhov kev qhia no peb yuav ua ib qho kev tshuaj xyuas huab cua sab hauv tsev uas tuaj yeem pab tau rau kev khaws cia qhov ntsuas kub, av noo thiab siab nyob hauv chav.
Yog li tsis tas yuav nkim sijhawm ntxiv, cia peb pib ua.
Kauj Ruam 1: Yuav Tsum Tau:
Nov yog cov npe ntawm ntu peb yuav siv rau kev tsim.
- GY-BME280 Sensor …………… (Amazon US / Amazon EU)
- Arduino UNO …………………….. (Amazon US / Amazon EU)
- Arduino Pro Mini ………………… (Amazon Asmeskas / Amazon EU)
- OLED 128*64 Zaub …………. (Amazon US/ Amazon EU)
- Breadboard nrog Jumpers ……. (Amazon US / Amazon EU)
Nrog rau cov khoom siv saum toj no, peb kuj xav tau qee lub tsev qiv ntawv ib yam:
- Arduino IDE Cov
- Adafruit_BME280.h Lub Tsev Qiv Ntawv
- Adafruit_SH1106.h Lub Tsev Qiv Ntawv
- Adafruit_GFX.h Lub Tsev Qiv Ntawv
Kauj Ruam 2: Kev Sib Txuas:
Peb yuav siv I2C txuas rau kev sib txuas lus ntawm cov khoom siv. I2C siv 2 pins Serial Data (SDA) thiab Serial Clock (SCL) los sib txuas lus. Yog li hauv kev sib txuas Kuv tau txuas cov pins hauv kev teeb tsa hauv qab no:
- SDA = A5
- SCL = A4
- GND = GND
- VCC = 3.3v
Cov kev sib txuas zoo ib yam rau Arduino UNO thiab Pro Mini.
Kauj ruam 3: Coding:
Ua ntej rub tawm cov cai, peb yuav tsum teeb tsa lub tsev qiv ntawv uas xav tau.
Hauv kab ntawv tshawb nrhiav sau lub npe ntawm cov tsev qiv ntawv thiab teeb tsa txhua tus los ntawm ib tus.
Tom qab teeb tsa cov tsev qiv ntawv rov pib dua IDE.
NCO TSEG: Cov tsev qiv ntawv thiab cov cai yog rau Sensor thiab OLED module Kuv tau siv (Cov kab ntawv txuas hauv kauj ruam dhau los). Yog tias koj siv lwm cov qauv, xa cov ntaub ntawv txheeb xyuas kom paub siv cov tsev qiv ntawv twg.
Sau cov cai hauv qab no hauv cov ntawv tshiab hauv Arduino IDE:
#suav nrog
#suav nrog #suav nrog #suav nrog #define OLED_RESET 4 Adafruit_SH1106 zaub (OLED_RESET); Adafruit_BME280 bme; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); display.begin (SH1106_SWITCHCAPVCC, 0x3C); display.setFont (& FreeSerif9pt7b); display.display (); ncua (2000); display.clearDisplay (); yog (! bme.begin (0x76)) {Serial.println ("Tsis tuaj yeem pom qhov ntsuas pom BME280 siv tau, tshawb xyuas thaiv!"); thaum (1); }} void loop () {display.clearDisplay (); Serial.print ("Kub ="); Serial.print (bme.readTemperature ()); // luam tawm hauv * C //Serial.print (bme.readTemperature () * 9 /5 + 32); // luam tawm hauv *F Serial.println (" *C"); display.setTextSize (1); display.setTextColor (WHITE); display.setCursor (0, 15); display.print ("Temp:"); display.print ((int) bme.readTemperature ()); // luam tawm hauv * C //display.print (bme.readTemperature () * 9 /5 + 32); // luam tawm hauv *F display.println (" *C"); display.display (); Serial.print ("Siab ="); Serial.print (bme.readPressure ()/100.0F); Serial.println ("hPa"); display.setTextSize (1); display.setTextColor (WHITE); display.print ("Nias:"); display.print (bme.readPressure ()/100.0F); display.println ("Pa"); display.display (); Serial.print ("Vaum ="); Serial.print (bme.readHumidity ()); Serial.println ("%"); display.setTextSize (1); display.setTextColor (WHITE); display.print ("Hum:"); display.print ((int) bme.readHumidity ()); display.println ("%"); display.display (); Serial.println (); ncua (1000); }
Txuas lub arduino rau koj lub khoos phis tawj, xaiv qhov chaw nres nkoj raug thiab nyem rau upload. Tom qab ob peb feeb koj yuav tsum pom cov zaub qhib.
Kauj Ruam 4: Lus Cim Kawg:
Cov zaub yuav qhia Kev Kub, Vaum thiab Huab Cua Siab. Koj tseem tuaj yeem pom cov ntaub ntawv hauv Serial Monitor. Koj tuaj yeem hloov pauv cov cai lossis tsim raws li koj xav tau. Hauv qhov kev qhia tom ntej no kuv yuav ua qhov Circuit Court no ntawm PCB thiab tsim lub thaiv rau nws. Nco ntsoov koj ua raws rau qhov hloov tshiab ntxiv.
Yog tias koj txaus siab rau neeg hlau thiab xav ua tus neeg hlau yooj yim, Txheeb xyuas kuv li ebook "Mini WiFi Robot". Nws muaj cov lus qhia ib qib zuj zus los tsim cov neeg hlau yooj yim uas tuaj yeem tswj hwm WiFi network.
Vam tias qhov kev qhia no yog xov xwm. Yog tias koj muaj kev tsis ntseeg, thov nug hauv cov lus.
Pom zoo:
Huab Cua Huab Cua Huab Cua: 11 Kauj Ruam (nrog Duab)
Huab Cua Huab Cua Huab Cua: Txoj haujlwm no ua rau huab cua huab siv Raspberry Pi Zero W. Nws txuas rau Yahoo Huab Cua API thiab nyob ntawm qhov kev kwv yees rau hnub tom ntej hloov xim. Kuv tau tshoov siab los ntawm Wisconsin Gas Building uas muaj nplaim taws ntawm lub ru tsev uas hloov pauv
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Huab Cua Huab Cua: 7 Cov Kauj Ruam (nrog Duab)
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Air Economizer: HRV Arduino Tus Tswj Nrog Air Economizer Yog li kuv keeb kwm nrog txoj haujlwm no yog kuv nyob hauv Minnesota thiab kuv lub rooj tsav xwm hluav taws xob kib ntawm kuv LifeBreath 155Max HRV. Kuv tsis xav them $ 200 rau qhov tshiab Kuv ib txwm xav tau qee yam nrog kev lag luam huab cua kev ua txhaum
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
IoT Ua Yooj Yim: Txheeb Xyuas Cov Ntaub Ntawv Huab Cua Tej Zaum: UV thiab Huab Cua Kub & Vaum: 7 Kauj Ruam
IoT Ua Yooj Yim: Txheeb Xyuas Cov Ntaub Ntawv Huab Cua Nyob deb: UV thiab Huab Cua Kub & Vaum: Ntawm qhov kev qhia no, peb yuav ntes cov ntaub ntawv nyob deb li UV (Ultra-Violet hluav taws xob), huab cua kub thiab av noo. Cov ntaub ntawv no yuav yog ib qho tseem ceeb heev thiab yuav siv rau yav tom ntej Chaw Ua Haujlwm Huab Cua.Qhov thaiv daim duab qhia tau tias peb yuav tau txais dab tsi thaum kawg
Ua Huab Cua Huab Cua Hauv Qab 10 feeb: 3 Kauj Ruam
Ua Huab Cua Huab Cua Hauv 10 feeb: Hauv cov lus qhia no, peb yuav kawm paub yuav tsim huab cua huab cua li cas li 10 feeb. Nov yog txoj hauv kev yooj yim tshaj plaws kom sai sai pib nrog iot project. Txhua yam koj xav tau yog ib qho Slabs-32 board. Yog lawm yog lawm tsuas yog ib lub rooj tsav xwm txhim kho t