Cov txheej txheem:

Chaw Tiv Thaiv Huab Cua Nrog Atmega328P-PU Microcontroller: 5 Kauj Ruam
Chaw Tiv Thaiv Huab Cua Nrog Atmega328P-PU Microcontroller: 5 Kauj Ruam

Video: Chaw Tiv Thaiv Huab Cua Nrog Atmega328P-PU Microcontroller: 5 Kauj Ruam

Video: Chaw Tiv Thaiv Huab Cua Nrog Atmega328P-PU Microcontroller: 5 Kauj Ruam
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
Chaw nres tsheb huab cua Nrog Atmega328P-PU Microcontroller
Chaw nres tsheb huab cua Nrog Atmega328P-PU Microcontroller

Tsis ntev los no kuv tau kawm online dawb nrog edx (Founded by Harvard University and MIT in 2012, edX is a online learning destination and MOOC provider, offering high-quality courses from the world's best universities and institution to learners everywhere), nrog lub npe: Backyard Meteorology: Kev Tshawb Fawb Txog Huab Cua, thiab nws yog cov ntaub ntawv zoo heev thiab kuv qhia nws rau txhua tus neeg uas xav paub txog kev nyiam huab cua huab cua, hauv thawj lossis thib ob kev qhia, xibfwb John Edward Huth- tus kws qhia- pom zoo yuav lub chaw ntsuas huab cua uas tuaj yeem ntsuas qhov siab ntawm thaj chaw ib puag ncig thiab huab cua ntsuas huab cua, kuv xav tias tsis txhob yuav lub ntsuas cua lossis lub chaw ntsuas huab cua qhov kev xav zoo tshaj plaws yog ua ib qho nrog cov khoom uas pheej yig tshaj nyob ib puag ncig kuv thiab hauv kuv lub thawv tsis zoo, kuv tau tshawb hauv lub vev xaib, thiab kuv pom ob peb txoj haujlwm, qee qhov chaw qhia, kuv qhov teeb meem tau siv lub microcontroller liab qab tsis yog Arduino lossis Raspberry pi uas yog thiab kim dua, tus nqi ntawm AtmegaP-PU, Arduino Uno, thiab Reaspberry Pi xoom- Pheej yig tshaj Pi- yog: $ 4, $ 12 thiab $ 21 yog li AtmegaP-PU yog qhov pheej yig tshaj. Cov cuab yeej uas kuv tau siv hauv txoj haujlwm no yog, DHT22 (Cov Kub Kub thiab Kev Ntsuas Cov Ntsuas Kub) uas ze li $ 8 - qhov no muaj tseeb dua li DHT11 sensor, kuj kuv tau siv BMP180 Kub Barometric Siab, Qhov Siab Tshaj Plaws Sensor, uas yog $ 6 thiab kuv tau sivNokia 5110 LCD Zaub Module ntsuab rov qab teeb nrog PCB hloov pauv rau Arduino, uas tsuas yog $ 5, yog li nrog pob nyiaj ntawm $ 23 thiab qee qhov xov hlau thiab lwm qhov ntawm kuv lub thawv tawg kuv tuaj yeem ua qhov chaw nres tsheb huab cua zoo no uas Kuv yuav piav qhia rau koj hauv kab lus hauv qab no.

Kauj Ruam 1: KAUJ RUAM 1: DESIGN THIAB CIRCUIT DIAGRAM

KAUJ RUAM 1: DESIGN THIAB CIRCUIT DIAGRAM
KAUJ RUAM 1: DESIGN THIAB CIRCUIT DIAGRAM

Txij li thaum kuv lub hom phiaj yog, ntsuas ntsuas kub thiab txheeb ze cov av noo thiab ntsuas qhov siab thiab qhov siab, yog li cov ntsuas uas kuv yuav tsum siv yog, DHT22 thiab BMP180, Kuv siv DHT22, rau qhov ntsuas kub thiab txheeb ze qhov ntsuas cua thiab BMP180, rau qhov ntsuas siab thiab qhov siab, txawm li cas los xij BMP180 tuaj yeem ntsuas kub ib yam nkaus, tab sis ntsuas kub los ntawm DHT22 yog qhov tseeb dua li BMP180 sensor. thiab Nokia 5110 rau kev nthuav qhia qhov ntsuas qhov ntsuas thiab raws li kuv tau piav qhia hauv kev qhia, Atmega328P-PU li microcontroller, koj tuaj yeem pom cov qauv tsim ntawm cov kab ke thiab daim duab kos duab hauv daim duab saum toj no.

Kauj Ruam 2: KAUJ RUAM 2: Cov cuab yeej xav tau

KAUJ RUAM 2: Cov cuab yeej xav tau
KAUJ RUAM 2: Cov cuab yeej xav tau
KAUJ RUAM 2: Cov cuab yeej xav tau
KAUJ RUAM 2: Cov cuab yeej xav tau
KAUJ RUAM 2: Cov cuab yeej xav tau
KAUJ RUAM 2: Cov cuab yeej xav tau

Cov cuab yeej xav tau yog qhia hauv cov duab saum toj no, thiab muaj raws li hauv qab no:

1- Cov cuab yeej siv tshuab:

1-1- txhais tes pom

1-2- laum me me

1-3- tus txiav

1-4-hlau stripper

1-5-ntsia hlau tsav tsheb

1-6-soldering hlau

2-Cov cuab yeej siv hluav taws xob:

2-1-multimeter

2-2-fais fab mov, saib kuv cov lus qhia rau kev ua me me:

2-3-khob cij board

2-4-Arduino Uno

Kauj Ruam 3: Kauj Ruam 3: Cheeb Tsam thiab Cov Khoom Xav Tau

Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau
Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau
Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau
Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau
Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau
Kauj Ruam 3: Cov Khoom Siv thiab Cov Khoom Xav Tau

1-Cov khoom siv kho tshuab:

1-1-casing hauv txoj haujlwm no kuv tau siv rooj plaub uas tau hais los saum no, uas kuv tau ua rau kuv cov haujlwm yav dhau los (thov mus saib:

2-Cov khoom siv hluav taws xob:

2-1-ATMEGA328P-PU:

2-2- Graphic LCD 84x48-Nokia 5110:

2-3- 16 MHz Crystal + 20pF capacitors:

2-4- BMP180 Barometric Siab, Kub thiab Qhov Siab Sensor: https://www.amazon.com/JBtek-Barometric- Siab-T…

2-5- DHT22/AM2302 Digital Kub thiab Vaum Sensor:

2-6- Jumper hlau:

2-7- Rechargeable 9 volt Roj teeb:

2-8-LM317 linear regulator nrog qhov hloov pauv qhov hluav taws xob:

Kauj Ruam 4: Kauj Ruam 4: Ua Haujlwm ATMEGA328P-PU

Kauj Ruam 4: Lub Hom Phiaj ATMEGA328P-PU
Kauj Ruam 4: Lub Hom Phiaj ATMEGA328P-PU

Ua ntej, kos duab Arduino yuav tsum tau sau, Kuv tau siv cov ntawd hauv lwm qhov chaw thiab hloov kho nws nrog kuv qhov haujlwm, yog li koj tuaj yeem rub nws yog tias koj xav siv nws, rau cov tsev qiv ntawv cuam tshuam koj tuaj yeem siv cov chaw tshwj xeeb tshwj xeeb tshaj yog github.com, qee qhov chaw nyob hauv tsev qiv ntawv muaj raws li hauv qab no:

Nokia 5110:

BMP180:

Qhov thib ob, txoj haujlwm saum toj no yuav tsum tau muab tso rau hauv ATMEGA328P-PU, yog tias lub tshuab microcontroller no yuav nrog bootloader, tsis tas yuav rub cov program boot loader rau hauv, tab sis yog tias ATMEGAP-PU microcontroller tsis thauj khoom nrog bootloader, peb yuav tsum ua nws raws sijhawm, muaj ntau cov lus qhia siv rau cov txheej txheem no, koj tseem tuaj yeem siv Arduino qhov chaw: https://www.arduino.cc/en/Tutorial/ArduinoToBreadb…, thiab cov lus qhia zoo li: https:// www.instructables.com/id/hlawv-atmega328…

Qhov thib peb, tom qab koj tau ua tiav nrog kev xa cov bootloader rau hauv ATMEGA328P-PU, koj yuav tsum pib xa cov duab tseem ceeb tso rau hauv lub microcontroller, txoj hauv kev tau sau hauv Arduino qhov chaw, raws li tau hais los saum no, koj yuav tsum siv 16 Mhz siv lead ua raws li qhia hauv qhov chaw, kuv lub voj voog tau qhia saum toj no.

Kauj Ruam 5: Kauj Ruam 5: Ua Qhov Project

Kauj Ruam 5: Ua Qhov Project
Kauj Ruam 5: Ua Qhov Project
Kauj Ruam 5: Ua Qhov Project
Kauj Ruam 5: Ua Qhov Project
Kauj Ruam 5: Ua Qhov Project
Kauj Ruam 5: Ua Qhov Project

Txhawm rau ua txoj haujlwm, koj yuav tsum ntsuas lub Circuit Court ntawm lub khob cij, yog li siv lub khob cij thiab lub xov hlau txuas raws li pom hauv daim duab thiab ntsuas qhov project kom pom cov zaub, yog tias koj pom dab tsi koj xav ntsuas ntawm NOKIA 5110 tso tawm, tom qab ntawd nws yog lub sijhawm zoo los ua raws li cov txheej txheem ntawm kev ua chaw nres tsheb huab cua, yog tias tsis yog, koj yuav tsum txheeb xyuas qhov teeb meem uas yog software lossis kho vajtse, feem ntau nws yog los ntawm qhov tsis zoo lossis tsis raug txuas ntawm jumper xov hlau, ua raws daim duab qhia chaw kom ze li sai tau.

Cov kauj ruam tom ntej yog ua qhov haujlwm, yog li txhawm rau ua txuas txuas mus tas li rau lub microcontroller, koj yuav tsum siv IC qhov (socket) thiab muab nws txuas rau ib qho me me ntawm cov tshuaj tsw qab. board thiab ob daim ntawm tus poj niam tus pin header raws li tau qhia hauv cov duab saum toj no, vim muaj ntau lub IC ntsawb pins uas yog 28 thiab tus pin headers kawg uas yog 14+14, yog li koj yuav tsum tau solder 56 tus neeg muag khoom thiab koj yuav tsum ntsuas tag nrho cov laug cov ntsiab lus rau kev sib txuas raug thiab rau qhov tsis txuas ntawm cov ntsiab lus nyob ib sab, ua ntej tau txais kev lees paub ntawm txoj haujlwm zoo ntawm daim ntawv ntawd tsis txhob pib siv nws rau kev tso lub microcontroller. yog tias txhua yam mus zoo, tam sim no koj yuav tsum mus txuas rau ntu tom ntej.

Lwm qhov tseem ceeb los xav txog yog qhov tseeb tias cov khoom siv xav tau 5V los ua haujlwm tab sis lub teeb rov qab ntawm NOKIA 5110 zaub, xav tau 3.3 V, yog tias koj siv 5 V rau lub teeb rov qab, nws yuav cuam tshuam tsis zoo rau lub neej ncua ntawm cov zaub, yog li kuv tau siv ob LM317 tus tswj hwm txoj kab nrog hloov pauv qhov hluav taws xob, thiab kuv tau hloov kho ib qho rau 5V cov zis thiab lwm qhov rau 3.3 V tso tawm, qhov tseeb kuv tau ua ib qho nrog 5V tso tawm kuv tus kheej thiab yuav lwm nrog 3.3V tso tawm. Tam sim no yog lub sijhawm los kho cov khoom siv rau hauv lub casing, koj tuaj yeem pom cov duab, DHT22 lub ntsuas yuav tsum tau kho nyob rau hauv ib txoj hauv kev uas nws lub ntsej muag nkag mus tawm ntawm rooj plaub kom nkag siab qhov ntsuas kub thiab txheeb ze cov av, tab sis BMP180 Barometric Siab, Kev ntsuas kub thiab qhov siab, tuaj yeem sab hauv lub casing tab sis txaus qhov yuav tsum tau drilled ntawm lub casing kom nws nyob rau hauv kev sib cuag nrog huab cua sab nraud, raws li koj tuaj yeem pom hauv cov duab saum toj no. Lwm qhov tseem ceeb yog muab qhov me me. board, uas koj tuaj yeem pom ntawm daim duab, thiab ua ob kab ntawm tus poj niam tus pin headers ib qho rau lub ntiaj teb lossis kev sib txuas tsis zoo thiab ib qho rau qhov zoo 5V, tawm.

Tam sim no, yog lub sijhawm rau txuas cov khoom sib dhos thiab sib dhos, txuas txhua lub xov hlau raws li daim duab qhia chaw thiab nco ntsoov tias tsis muaj dab tsi tawm, txwv tsis pub muaj teeb meem nrog qhov kawg.

Pom zoo: