Cov txheej txheem:

Ib Tus Neeg Saib Xyuas Hauv Tsev Yooj Yim: 9 Kauj Ruam (nrog Duab)
Ib Tus Neeg Saib Xyuas Hauv Tsev Yooj Yim: 9 Kauj Ruam (nrog Duab)

Video: Ib Tus Neeg Saib Xyuas Hauv Tsev Yooj Yim: 9 Kauj Ruam (nrog Duab)

Video: Ib Tus Neeg Saib Xyuas Hauv Tsev Yooj Yim: 9 Kauj Ruam (nrog Duab)
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Ib Qhov Yooj Yim Hauv Tsev Saib Xyuas
Ib Qhov Yooj Yim Hauv Tsev Saib Xyuas

Txoj haujlwm no yuav qhia koj yuav ua li cas ua qhov kev soj ntsuam yooj yim nrog qee qhov uas twb muaj lawm thiab nrhiav tau yooj yim. Qhov tseeb, kuv tau tsim qhov no rau ib tus ntawm kuv cov tub ntxhais kawm. Tus tub ntxhais kawm xav nrhiav seb lub hnub tshav cuam tshuam rau chav sov thiab av noo li cas. Qhov txaus siab rau lub cev ntau hauv qhov haujlwm no yog (1) lub teeb pom kev zoo, (2) av noo, (3) kub thiab (4) huab cua siab. Nrog cov ntaub ntawv no, koj yuav tuaj yeem ua lwm lub tshuab lossis khoom siv los tswj lub tshuab cua txias, lub tshuab ua kom txias lossis lub rhaub dej kom ua rau chav nyob xis nyob.

Kauj Ruam 1: Npaj Sensors

Npaj Sensors
Npaj Sensors

Koj tuaj yeem tsim lub Circuit Court nrog cov ntsuas hluav taws xob hauv qab no lossis yooj yim mus yuav cov laug cam ntawm cov sensors lossis pawg tswj hwm module.

1. Ambient Light Sensor TEMT6000 (Datasheet PDF)

2. Siab thiab Kub BMP085 lossis BMP180 (*lawv yog cov khoom qub, koj yuav xav nrhiav lwm txoj hauv kev) (kawm cov ntaub ntawv los ntawm Adafruit)

3. Kub thiab Vaum Sensor DHT11 (kawm ntaub ntawv los ntawm Adafruit)

4. UV lub teeb pom kev zoo GUVA-S12SD (Datasheet PDF)

Txog kev siv cov ntsuas, kuv tau txuas qee qhov txuas txuas. Koj tuaj yeem pom qee qhov kev qhia paub thiab cov ntaub ntawv hais txog hauv is taws nem.

Kauj Ruam 2: Npaj Tus Txheej Txheem Tseem Ceeb

Npaj Tus Txheej Txheem Tseem Ceeb
Npaj Tus Txheej Txheem Tseem Ceeb

Kuv tau xaiv Arduino Uno pawg thawj coj los ntsuas qhov system thiab coding. Txawm li cas los xij, kuv pom tias atmega328P tsis muaj lub cim xeeb txaus los khaws thiab khiav cov cai yog tias muaj ntau lub cim ntxiv. Yog li, kuv pom zoo tias koj tuaj yeem siv atmega2560 Arduino board thaum koj xav tau ntau dua 4 lub cim.

Micro tswj (MCU):

· Atmega328P board rau Arduino

· Los yog Atmega2560 board rau Arduino

Kauj Ruam 3: Npaj Qhov System

Npaj Txoj Haujlwm
Npaj Txoj Haujlwm
Npaj Txoj Haujlwm
Npaj Txoj Haujlwm

Kuv xav ntsuas qee yam yam ntxwv ntawm lub cev sab nraum zoov thiab sab hauv tsev. Thaum kawg, Kuv txuas cov ntsuas hauv qab no mus rau Atmega2560 pawg thawj coj.

Ib puag ncig hauv tsev:

1. Siab thiab Kub BMP180 x 1 pcs

2. Kub thiab Vaum Sensor DHT11 x 1 pcs

Ib puag ncig sab nraum zoov:

1. Ambient Light Sensor TEMT6000 x 1 pcs

2. Siab thiab Kub BMP085 x 1 pcs

3. Kub thiab Vaum Sensor DHT11 x 1 pcs

4. UV teeb sensor GUVA-S12SD x 1 pcs

Koj tuaj yeem pom tias kuv siv cov ntsuas sib txawv los ntsuas lub siab. Nws tsuas yog vim tias kuv tsis muaj BMP180 module board thaum kuv tab tom tsim lub Circuit Court. Kuv pom zoo tias koj yuav tsum siv tib lub ntsuas hluav taws xob yog tias koj xav tau kom ntsuas tau meej thiab sib piv ncaj ncees.

Kauj Ruam 4: Npaj Cov Ntaub Ntawv Nkag Mus

Ib qho ntxiv, Kuv xav kom lub cuab yeej khaws cov ntaub ntawv yam tsis txuas rau lub khoos phis tawj. Kuv tau ntxiv cov ntaub ntawv txiav cav nrog lub sijhawm tiag tiag. Cov hauv qab no yog cov khoom siv rau kev txiav cov ntaub ntawv thiab cov xov hlau txuas.

· SD daim npav

· CR1220 npib roj teeb

· Cov ntaub ntawv txiav tawm tus qauv rau Arduino (kawm ntaub ntawv los ntawm Adafruit)

Kauj Ruam 5: Npaj Cov Cuab Yeej

Cov hauv qab no yog qee cov cuab yeej lossis khoom siv uas yuav xav tau los tsim lub Circuit Court.

  • 30AWG Wrapping tool
  • Soldering hlau
  • Soldering hlau (Tsis muaj txhuas)
  • Cov qhob cij
  • 2.54 hli headers
  • Jumper xov hlau
  • Muab cov xov hlau (30AWG)
  • Kub kua nplaum
  • 3D luam ntawv (Yog tias koj xav tau rooj plaub rau koj lub cuab yeej)
  • Arduino IDE (Peb xav tau qhov no los ua haujlwm rau Micro board tswj hwm)

Kauj Ruam 6: Pib dua DS1307 Lub Sijhawm Tiag (RTC) ntawm Cov Ntaub Ntawv Teev Npe

Pib dua DS1307 Lub Sijhawm Tiag (RTC) ntawm Cov Ntaub Ntawv Teev Npe
Pib dua DS1307 Lub Sijhawm Tiag (RTC) ntawm Cov Ntaub Ntawv Teev Npe
Pib dua DS1307 Lub Sijhawm Tiag (RTC) ntawm Cov Ntaub Ntawv Teev Npe
Pib dua DS1307 Lub Sijhawm Tiag (RTC) ntawm Cov Ntaub Ntawv Teev Npe

Kuv xav siv cov ntaub ntawv rau kev sim tshawb fawb. Yog li, lub sijhawm ntsuas raug yog qhov tseem ceeb rau kev txheeb xyuas cov ntaub ntawv. Siv qhov ncua sijhawm () ua haujlwm hauv lub cajmeem yuav ua rau ntsuas ntsuas yuam kev hauv lub sijhawm hloov pauv. Ntawm qhov tsis sib xws, Kuv tsis paub yuav ua li cas ntsuas lub sijhawm tseeb ntawm Arduino platform nkaus xwb. Txhawm rau zam kev ntsuas lub sijhawm yuam kev lossis txo qhov ntsuas yuam kev, kuv xav ua txhua qhov ntsuas ntsuas nrog cov sijhawm teev tseg. Hmoov zoo, cov ntaub ntawv txiav cav muaj lub sijhawm tiag tiag (RTC). Peb tuaj yeem siv nws los tso tawm lub sijhawm rau kev ntsuas cov ntaub ntawv.

Txhawm rau siv RTC, Kuv ua raws cov lus qhia (txuas) kom rov pib RTC. Kuv pom zoo ua qhov no nrog Arduino Uno board thawj zaug. Nws yog vim tias koj yuav tsum hloov kho qhov Circuit Court thaum siv Atmega2560 board (I2C kev sib txuas sib txawv). Tom qab koj tau teeb tsa RTC, koj yuav tsum tsis txhob tshem lub roj teeb cr1220. Lub caij no, thov txheeb xyuas lub roj teeb ua ntej cov ntaub ntawv nkag mus.

Kauj ruam 7: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Kuv tau cais qhov ntsuas sab hauv tsev thiab sab nraum zoov. Yog li, Kuv tau ua ob lub taub hau rau txuas ob pawg sib txawv ntawm cov ntsuas. Kuv siv qhov chaw khoob ntawm cov ntaub ntawv txiav cav rau mounting headers. Txhawm rau ua kom tiav kev sib txuas hauv Circuit Court, Kuv siv ob qho tib si siv thiab qhwv. Cov txheej txheem ntawm kev qhwv yog huv thiab yooj yim, thaum siv cov khoom sib txuas ua kom muaj zog thiab ruaj ntseg. Koj tuaj yeem xaiv txoj hauv kev yooj yim los tsim lub Circuit Court. Yog tias koj tab tom siv Atmega2560 pawg thawj coj, nco ntsoov tias koj tau tsim kev sib txuas dhia rau SDA thiab SCL pins. Kev sib txuas ntawm RTC ntawm cov ntaub thaiv npog cov ntaub ntawv yuav tsum rov txuas dua.

Txhawm rau txuas cov ntsuas hluav taws xob, Kuv tau muab cov taub hau tso rau ntawm cov qauv ntsuas thiab tom qab ntawd kuv siv cov xaim qhwv los txuas txhua lub ntsuas hluav taws xob rau lub taub hau. Thaum koj tab tom siv qhov ntsuas qhov ntsuas tawm, kuv pom zoo tias koj yuav tsum tau tshuaj xyuas qhov ua haujlwm kom zoo. Qee qhov ntsuas qhov ntsuas tau lees txais ob qho 5V thiab 3.3 V tab sis qee qhov txwv tsis pub siv 5V lossis 3.3V nkaus xwb. Cov lus hauv qab no qhia pom cov qauv siv sensor thiab qhov ua haujlwm voltage.

Rooj. Sensor module thiab kev khiav hauj lwm voltage

Kauj Ruam 8: Programming MCU

Programming the MCU
Programming the MCU

Hmoov zoo, Kuv tuaj yeem pom cov ntawv thov piv txwv rau txhua lub ntsuas. Yog tias koj tshiab los siv lawv, koj tuaj yeem rub tawm lawv hauv is taws nem lossis koj tuaj yeem nruab lawv los ntawm kev siv tus thawj tswj tsev qiv ntawv hauv Arduino IDE.

Kuv programmed qhov system tso tawm ib txoj hlua rau txhua tus qauv. Txoj hlua yuav raug tso tawm thiab khaws cia rau hauv daim npav SD. Yog tias koj xav tau los saib cov ntaub ntawv, tua lub cuab yeej thiab tom qab tshem daim npav SD. Tom qab ntawd, koj tuaj yeem nce daim npav SD rau daim npav nyeem ntawv. Cov ntaub ntawv yuav raug khaws cia ua cov ntawv csv. Thaum koj tau rub cov ntaub ntawv xa mus rau lub khoos phis tawj, koj tuaj yeem pom nws los ntawm cov ntawv sau lossis cov haujlwm ua haujlwm.

(Koj tuaj yeem rub tawm qhov chaws hauv cov ntawv txuas nrog.)

Kauj Ruam 9: Xeem Nws thiab Siv Nws

Kuaj Nws thiab Siv Nws!
Kuaj Nws thiab Siv Nws!
Xeem Nws thiab Siv Nws!
Xeem Nws thiab Siv Nws!
Xeem Nws thiab Siv Nws!
Xeem Nws thiab Siv Nws!

Nws yog ib qho tseem ceeb uas koj nkag siab lub ntsiab lus ntawm cov ntaub ntawv. Sampling zaus yog ib qho tseem ceeb ntsuas. Lub sijhawm ntsuas sijhawm tam sim no yog 1 feeb, koj yuav xav hloov nws.

Ib qho ntxiv, koj yuav pom qhov ntsuas kub ntawm DHT11 tsis raug. Yog tias koj xav tau tus nqi tseeb dua, koj tuaj yeem siv qhov ntsuas kub ntawm BMP siab ntsuas.

Ua tsaug rau kev nyeem qhov no!

Pom zoo: