Cov txheej txheem:

Tsim kom muaj Ib puag ncig Sab Hauv Tsev Sensor: 4 Kauj Ruam
Tsim kom muaj Ib puag ncig Sab Hauv Tsev Sensor: 4 Kauj Ruam

Video: Tsim kom muaj Ib puag ncig Sab Hauv Tsev Sensor: 4 Kauj Ruam

Video: Tsim kom muaj Ib puag ncig Sab Hauv Tsev Sensor: 4 Kauj Ruam
Video: HLUB KOJ IB LEEG TSIS MUAJ NQIS By Maiv Xis Xyooj Nkauj Tawm Tshiab Official 2022 2024, Kaum ib hlis
Anonim
Tsim kom muaj Ib Cheeb Tsam Sab Hauv Tsev Sensor
Tsim kom muaj Ib Cheeb Tsam Sab Hauv Tsev Sensor

Tam sim no, tib neeg muaj kev txhawj xeeb ntau ntxiv nrog kev ua haujlwm sab hauv tsev uas lawv nyob vim nws cuam tshuam nrog lawv kev noj qab haus huv. Qhov tseem ceeb ntawm kev muaj lub neej zoo dua suav nrog paub tias koj muaj lub neej nyob zoo dua.

Kuv ib yam tshwj xeeb heev nrog qhov chaw uas kuv nyob yooj yim vim tias kuv yooj yim mob. Feem ntau nws yog vim huab cua zoo.

Qee lub chaw haujlwm yuav muaj lawv tus kheej Sab Hauv Ib puag ncig cov cuab yeej teeb tsa txhawm rau muab chaw ua haujlwm zoo rau lawv cov neeg ua haujlwm. Tab sis yuav ua li cas kuv thiaj paub tias lub tsev uas kuv nyob lossis txawm tias ib chav uas kuv xaum tau muab kev nyob zoo?

Zoo, tam sim no koj tuaj yeem! Tsuas yog tsim koj li cuab yeej ib puag ncig sab hauv tsev uas tuaj yeem tshuaj xyuas qhov zoo ntawm sab hauv ntawm koj lub tsev ib puag ncig nrog Zio Qwiic Sab Hauv Tsev Ib puag ncig Sensors Kit.

Kauj ruam 1: Txheej txheem cej luam

2.1 Cov Txheej Txheem Txheej Txheem

Tsis muaj cov khoom siv lawm? Yuav lawv ntawm no!

Peb tau suav sau thiab muab peev txheej ua ke peb cov ntsuas hluav taws xob zoo tshaj plaws thiab cov qauv uas koj xav tau kom yooj yim pib tsim koj tus kheej Lub Tsev Sab Nraud Sab Nraud Sensor ntaus ntawv. Nrog rau cov khoom siv no, peb txawm coj kev ywj pheej los yooj yim rau koj li coding yog li txhua yam koj yuav tsum tau ua yog tsuas yog xa cov cai rau koj pawg thawj coj thiab pib saib xyuas koj ib puag ncig!

Dab tsi suav nrog hauv cov khoom siv yog qwiic sensors thiab cov qauv uas tuaj yeem pab koj tsim Lub Tsev Sab Nraud Sab Nraud Sensor ntaus ntawv rau koj lub tsev lossis chaw ua haujlwm lossis phiaj xwm kev kawm rau tsev kawm ntawv!

Cov khoom siv no tseem yog IOT sib xws thiab tuaj yeem teeb tsa tau yooj yim yog li koj tuaj yeem saib xyuas koj ib puag ncig cov ntaub ntawv ntawm koj lub desktop, ntsiav tshuaj lossis xov tooj ntawm tes.

Zio Qwiic Sensors:

  • Kub & Vaum Sensor SHT31
  • Barometric Siab & Siab Tshaj BMP280
  • Huab Cua Zoo Sensor CCS811
  • Lub teeb Sensor
  • Lub suab nrov Sensor
  • PM2.5 Sensor (PM1.0, PM2.5, PM10) nrog Adapter

Zio Qwiic Cov Qauv:

  • Zuino PsyFi32 Development Board
  • Hub
  • RGB LED
  • 0.91 "OLED Zaub
  • RTC Cov Qauv
  • LiPO Battery Manager

Lwm Cheeb Tsam:

  • Qws Kab
  • Micro USB Cable
  • Lub roj teeb tuav

2.2 Txheej txheem cej luam

Txoj haujlwm no yuav siv Zio cov qauv los tsim Cov Khoom Siv Sab Nraud Sab Hauv Tsev.

Zio yog kab tshiab ntawm kev qhib cov ntaub ntawv, kev cog lus, thiab daim phiaj txheej phiaj, ua tiav rau Arduino thiab Qwiic ecosystem. Tsim lub tswv yim zoo rau kev hnav, neeg hlau, txwv qhov chaw me me lossis lwm yam ntawm txoj haujlwm mus. Txheeb xyuas lwm yam khoom zoo Zio ntawm no.

Cov lus qhia hauv qab no tseem tuaj yeem siv los teeb tsa zoo sib xws qwiic cov qauv thiab cov ntsuas.

Qib Nyuaj:

Zoj Youngling

Cov peev txheej pab tau

Koj yuav tsum muaj kev nkag siab yooj yim ntawm yuav ua li cas rau nruab Zio cov laug cam txhim kho. Hauv qhov kev qhia no, peb xav tias koj lub rooj tsav xwm txhim kho twb tau teeb tsa thiab npaj tau teeb tsa. Yog tias koj tsis tau teeb tsa koj lub rooj tsav xwm tseem txheeb xyuas peb cov phiaj xwm txhim kho Qwiic Pib Qhia qhia hauv qab no kom pib:

Zio Zuino PsyFi32 Qwiic Pib Qhia

Yog tias koj xav paub ntau ntxiv txog tus kheej cov qauv thiab cov teeb tsa teeb tsa teeb tsa koj tuaj yeem tshawb xyuas cov lus qhia hauv qab no rau koj qhov kev siv:

Cov Qauv:

  • 0.91 "OLED Zaub Qwiic Pib Qhia
  • RTC Module Qwiic Pib Qhia

Sensors:

  • Zio Kub & Vaum Sensor SHT31 Qwiic Pib Qhia
  • Zio Barometric Siab & Qhov Siab BMP280 Qwiic Pib Qhia
  • Zio Cua Zoo Sensor CCS811 Qwiic Pib Qhia
  • Zio Lub Teeb Sensor Qwiic Pib Qhia
  • Zio Loudness Sensor Qwiic Pib Qhia
  • Zio PM2.5 Sensor (PM1.0, PM2.5, PM10) nrog Adapter Qwiic Pib Qhia

Kauj ruam 2: Schematics

Schematics
Schematics

Kauj ruam 3: Teeb

Teeb
Teeb
Teeb
Teeb
Teeb
Teeb

4.1 Zio Modules Teeb

Teem cov khoom siv yog ncaj nraim rau pem hauv ntej. Peb xav tau cov qauv hauv qab no, cov ntsuas thiab cov khoom siv txhawm rau teeb tsa cov khoom kom raug. Feem ntau ntawm cov khoos phis tawj thiab cov ntsuas tau twb tau suav nrog hauv Cov Khoom Siv Sab Nraud Sab Hauv Tsev. Yog tias koj ua raws qhov kev qhia no yam tsis tau yuav khoom, koj xav tau cov khoom hauv qab no txhawm rau pib tinkering:

Ua raws daim duab qhia chaw, txuas txhua Zio cov qauv thiab cov cim ua ke nrog qwiic cables.

Nco tseg: Tsis muaj qhov kev txiav txim tshwj xeeb uas koj xav tau txuas cov qauv thiab cov ntsuas hluav taws xob ua ke. Txawm li cas los xij, rau qhov yooj yim ntawm qhov kev qhia no, koj tuaj yeem xa mus rau daim duab qhia chaw kom tso koj lub cim xeeb thiab cov qauv teeb tsa.

4.2 Arduino IDE Teeb

Ua ntej koj tuaj yeem sau koj li Khoom Siv Hauv Ib Cheeb Tsam, koj yuav tsum teeb tsa cov tsev qiv ntawv xav tau rau koj Arduino IDE. Rub tawm thiab teeb tsa Arduino IDE rau koj lub khoos phis tawj yog tias koj tsis tau los ntawm Arduino lub vev xaib.

Qhib Arduino IDE thiab txuas koj li PsyFi32 Development board rau koj lub PC. Koj yuav tsum tau teeb tsa koj li PsyFi32 rau Arduino. Yog tias koj tsis muaj, tshawb xyuas phau ntawv qhia no ntawm no.

Nruab cov tsev qiv ntawv hauv qab no:

  • Adafruit Sensor Library
  • Adafruit BMP280 Lub Tsev Qiv Ntawv
  • Adafruit TSL2561 Arduino Library
  • Adafruit RTC Lub Tsev Qiv Ntawv
  • Adafruit SHT31 Lub Tsev Qiv Ntawv
  • Adafruit GFX Lub Tsev Qiv Ntawv
  • Adafruit SSD1306 Lub Tsev Qiv Ntawv
  • Sparkfun CCS811 Lub Tsev Qiv Ntawv
  • Sparkfun Qwiic LED Stick Library

Txhawm rau teeb tsa lub tsev qiv ntawv qhib koj Arduino IDE, mus rau Sketch tab, xaiv suav nrog Lub Tsev Qiv Ntawv -> Ntxiv. Zip Library. Xaiv cov tsev qiv ntawv saum toj no kom suav nrog koj li IDE. Xwb, Arduino lub vev xaib muaj cov lus qhia yooj yim yuav ua li cas rau nruab cov tsev qiv ntawv rau koj li IDE. Koj tuaj yeem tshawb xyuas tus ncej ntawm no.

Kauj ruam 4: Code

Code
Code

5.1 Rub tawm txoj haujlwm Code

Thaum koj tau teeb tsa cov tsev qiv ntawv xav tau, rub tawm Cov Khoom Siv Sab Nraud Sab Nraud Sab Nraud Sab Nraud los ntawm peb nplooj Github ntawm no.

5.2 Upload thiab Khiav Code

Unzip cov ntaub ntawv thiab upload thiab khiav koj cov cai. Thaum koj tau ua tiav koj cov cai, koj lub cuab yeej yuav tuaj yeem nyeem cov ntaub ntawv xav tau los tshuaj xyuas thiab ntsuas koj ib puag ncig. Qhib cov ntawv saib xyuas ntawm koj li IDE thiab koj tuaj yeem pom cov ntaub ntawv sau los ntawm koj lub cuab yeej.

Tswv yim: Ua kom nws nqa tau

Tshem lub USB cable los ntawm koj lub PsyFi32 pawg thawj coj thiab txuas lub roj teeb rau LiPo Tus Thawj Saib Xyuas Roj Teeb. Tam sim no koj tuaj yeem muaj lub tshuab nqa Sab Nraud Sab Nraud Sab Nraud uas koj tuaj yeem nqa ncig koj lub tsev lossis chaw ua haujlwm.

Kuv tau ua rooj plaub me me rau kuv lub cuab yeej tawm ntawm lub thawv ntawv yog li kuv tuaj yeem tuaj yeem tshuaj xyuas thiab nyeem kuv cov ntaub ntawv ib puag ncig nyob txhua qhov chaw uas kuv ntaus ntawv tso.

Pom zoo: