Cov txheej txheem:

Chaw Yooj Yim Huab Cua V2.0: 5 Cov Kauj Ruam (nrog Duab)
Chaw Yooj Yim Huab Cua V2.0: 5 Cov Kauj Ruam (nrog Duab)

Video: Chaw Yooj Yim Huab Cua V2.0: 5 Cov Kauj Ruam (nrog Duab)

Video: Chaw Yooj Yim Huab Cua V2.0: 5 Cov Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Kaum ib hlis
Anonim
Chaw Nres Nkoj Yooj Yim V2.0
Chaw Nres Nkoj Yooj Yim V2.0

Yav dhau los kuv tau qhia ob peb hom chaw nres tsheb huab cua uas ua haujlwm sib txawv. Yog tias koj tsis tau nyeem cov kab lus no kuv xav kom koj txheeb xyuas nws ntawm no:

  • Chaw Nyob Huab Cua Yooj Yim Siv ESP8266.
  • Chav Chaw Huab Cua Siv Arduino & BME280.

Hauv cov lus qhia no kuv yuav qhia qhov chaw nres tsheb huab cua hloov tshiab nrog ua ke cov yam ntxwv ntawm ob yav dhau los ntxiv rau ob peb yam ntxiv. Nrog rau qhov ntsuas kub hauv tsev, av noo thiab siab peb tseem tuaj yeem nqa cov xwm txheej huab cua tam sim no thiab kwv yees rau hnub tom ntej. Txhua cov ntaub ntawv no yuav muab tso tawm ntawm lub vijtsam OLED, lub vev xaib thiab hauv/iOS app.

Yog li tsis tas nkim sijhawm ntxiv, cia pib.

PS: Yog tias koj nyiam cov lus qhia no, thov pov npav nws hauv Sensor Contest:)

Khoom siv

Nov yog cov npe uas peb yuav siv rau qhov haujlwm no.

Wemos D1 Mini (Amazon US / Amazon EU): Koj tuaj yeem siv ib qho ESP8266 / ESP32 raws li dev-board

BME280 Sensor (Amazon US / Amazon EU): Nco ntsoov tias koj yuav "BME280" tsis txhob cuam tshuam nrog "BMP280"

1.3 "OLED Display (Amazon US / Amazon EU): Kuv qhia koj kom tau txais OLED tib yam li kuv tau siv, lossis koj tuaj yeem tawm tsam nrog nws ntau OLEDs tsis ua haujlwm nrog ESP cov laug cam

Pushbutton (Amazon US / Amazon EU): Siv qhov hloov pauv ib ntus vim nws yuav hloov pauv ntawm ntau hom

Breadboard nrog Jumpers (Amazon US / Amazon EU): Rau kev tsim qauv

Prototype Board (Amazon US / Amazon EU): Txhawm rau ua txhua yam kom ua tau raws li cov qauv tas mus li

3.7v roj teeb (Amazon US / Amazon EU): Ua kom lub zog muaj zog (Tsis teb los tau)

Nrog rau cov ntu no, peb kuj xav tau software los ua txhua yam haujlwm

RemoteMe: Nws yog IoT platform uas koj xav tau los tsim tus as khauj los siv cov kev pabcuam. Nws yog dawb xwb

Arduino IDE: Txhawm rau upload cov cai

Nov yog qee cov cuab yeej koj yuav xav tau ntawm txoj kev:

Hlau Strippers (Amazon US / Amazon EU)

Cov Khoom Siv Soldering (Amazon US / Amazon EU)

Pab txhais tes (Amazon US / Amazon EU)

Thaum koj tau sau tag nrho cov ntaub ntawv peb tuaj yeem txav mus rau kauj ruam tom ntej.

Kauj Ruam 1: Tsim Web-App thiab Network Device:

Tsim Web-App thiab Network Device
Tsim Web-App thiab Network Device
Tsim Web-App thiab Network Device
Tsim Web-App thiab Network Device
Tsim Web-App thiab Network Device
Tsim Web-App thiab Network Device

Ua ntej peb yuav tsum tau mus rau Remoteme.org thiab kos npe rau hauv peb tus as khauj. Yog tias koj tsis muaj tus as khauj, tam sim no yog lub sijhawm los ua ib qho. Tam sim no peb tau kos npe rau hauv tus lej remoteme peb tuaj yeem tsim peb lub chaw nres tsheb huab cua, xa cov hauv qab no:

  1. Thaum peb kos npe rau hauv peb tus lej remoteme, peb raug xa mus rau nplooj ntawv uas peb yuav pom cov npe ntawm cov haujlwm. Ntawm no nqes mus thiab koj yuav pom "Chaw nres tsheb huab cua". Nyem rau nws.
  2. Lub qhov rai pop-up yuav tshwm, ntawm no nyem peb tuaj yeem pom txhua cov ntaub ntawv tsim nyog hais txog txoj haujlwm. Yog tias koj xav tau koj tuaj yeem nyeem tag nrho cov ntsiab lus lossis tsuas yog ua raws cov lus qhia no.
  3. Peb yuav tsum mus rau "tsim nws" tab thiab sau cov ntaub ntawv.

    • Ua ntej tshaj koj lub npe WiFi thiab Tus lej nkag. Qhov no yuav tso cai rau ESP pawg thawj coj los txuas rau koj li WiFi network.
    • Tom ntej no muaj qhov kev xaiv uas peb tuaj yeem xaiv hom board. Raws li peb tab tom siv Wemos D1 mini raws ESP8266, peb yuav xaiv lub rooj tsavxwm ntawd.
    • Tam sim no peb yuav tsum nkag mus rau qhov chaw, uas yog lub nroog uas koj nyob. Inter lub npe ntawm lub nroog thiab lub tebchaws. Piv txwv li: Raws li hauv daim duab "Warsaw, PL" nws txhais tau tias yog lub nroog Warsaw, Poland. Tom qab nkag mus rau koj lub nroog thiab lub tebchaws, Scroll cia. Ntawm no koj tuaj yeem hloov lub npe ntawm app thiab ntaus ntawv tab sis nws yog nyob ntawm yeem. Yog li koj tuaj yeem nyem ncaj qha rau "Cov kauj ruam tom ntej".
    • Nov yog cov kauj ruam kawg ntawm no tsuas yog nyem rau ntawm "Tsim qhov project". Tam sim no koj tuaj yeem rub tawm cov cai tsim tau los ntawm tus lej wizard.
    • Hauv qab no muaj 3 qhov kev xaiv, Qhib, QR code thiab Nruab. Nyem rau thawj qhov kev xaiv yuav qhib lub vev xaib nrog cov ntaub ntawv huab cua. Qhov kev xaiv thib ob yuav tau txais QR code uas tuaj yeem luam theej siv lub xov tooj smartphone twg los tau lub vev xaib ntawm mobile browser. Qhov kev xaiv thib peb tseem yuav muab lub vev xaib uas yuav teeb tsa lub vev xaib thov ntawm Android/iPhone.

Ntawm lub vev xaib koj yuav pom tias thawj ob qhov txau qhia cov ntaub ntawv tab sis qhov kawg yog khoob. Tias yog vim li cas peb yuav tsum tsim chav nyob chaw nres tsheb huab cua tsis tau. Yog li cia ua qhov Circuit Court rau peb qhov chaw nres tsheb huab cua.

Kauj Ruam 2: Tsim Circuit Court:

Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court

Tam sim no peb muaj cov cai, peb yuav tsum muab nws tso rau hauv pawg thawj coj saib. Tab sis ua ntej peb yuav tsum txuas lub Zaub, BME280 sensor thiab hloov mus rau Wemos D1 mini. Txhawm rau ua qhov no ua ntej xa daim duab qhia chaw saum toj no.

Ntawm no peb tau siv I2C raws tu qauv rau txuas cov qauv.

  • SDA to pin D2
  • SCL to pin D1
  • GND to pin GND
  • VIN to pin 3.3v

Nco tseg: Txuas SDA & SCL pins ntawm cov zaub thiab BME280 rau ESP. Txhua tus GND pins yuav tsum txuas nrog ua ke.

Ib lub davhlau ya nyob twg ntawm kev hloov pauv txuas nrog D3 thiab lwm qhov txuas nrog GND. Yog tias koj tsis paub yuav ua li cas thawb khawm ua haujlwm, Kuv qhia koj kom ua tib zoo saib ntawm kab lus no. Xa mus rau cov duab saum toj no kom nkag siab zoo dua.

Kauj Ruam 3: Xa Cov Cai:

Txhim Kho Txoj Cai
Txhim Kho Txoj Cai

Ua ntej koj tuaj yeem xa cov cai, nco ntsoov tias koj muaj tag nrho ESP cov laug cam tau teeb tsa hauv IDE Yog tias koj tsis paub yuav ua li cas, tom qab ntawd saib qhov YouTube Video no.

Kuj nruab cov tsev qiv ntawv hauv qab no:

  1. RemoteMe
  2. RemoteMeUtils
  3. SparkFun BME280
  4. esp8266-OLED-tus tswv
  5. RBD_Button
  6. RBD_Timer

Txhawm rau teeb tsa cov tsev qiv ntawv no. qhib IDE thiab tau txais Cov Cuab Yeej >> Tswj Cov Tsev Qiv Ntawv. Hauv qhov tshawb nrhiav nkag rau lub npe tsev qiv ntawv ib tus zuj zus thiab nruab nws.

Tam sim no rho tawm cov lej cov ntaub ntawv rub tawm los ntawm RemoteMe thiab qhib nws nrog Arduino IDE. Ua raws cov theem hauv qab no:

  1. Txuas koj lub wemos mus rau PC thiab xaiv hom pawg thawj coj saib (Wemos D1 R1 mini) thiab xaiv qhov chaw nres nkoj raug.
  2. Tam sim no upload cov cai thiab tos kom nws ua tiav.
  3. Tom qab tus lej tau muab tso rau, pawg thawj coj yuav txuas rau koj li WiFi thiab pib nthuav tawm cov ntaub ntawv ntawm OLED screen.
  4. Thawb lub pob yuav hloov ntawm 3 tus qauv. Koj tuaj yeem tshawb xyuas koj tus kheej.

Tam sim no qhov uas txhua yam ua haujlwm raws li qhov xav tau, peb tuaj yeem txav mus los ua kom lub voj voog no nyob ruaj khov thiab nyob nrog kom nws zoo dua.

Kauj Ruam 4: Txhim Kho PCB thiab Cov Ntaub Ntawv:

Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv
Tsev PCB thiab Cov Ntaub Ntawv

Txhawm rau ua kom peb txoj kev nyab xeeb ruaj khov thiab ruaj khov, peb yuav tsum tau muab cov khoom sib dhos ua ke tag nrho rau ntawm pawg thawj coj. Kuv tau qhia cov duab ntawm kuv txoj haujlwm los muab tswv yim zoo dua. Koj tuaj yeem tsim tus qauv sib txawv yog tias koj xav tau.

Rau lub thawv ntawv kuv siv ua npuas dej ua lub board nws yooj yim siv thiab ua haujlwm nrog. Hauv qab no kuv tau muab CAD koj tuaj yeem xa mus rau ua koj tus kheej lub thawv.

Kauj Ruam 5: Tutorial Video:

Yog tias koj nyiam qhov kev qhia no, thov pov npav.

Pom zoo: