Cov txheej txheem:

Ntse Tsev Cuam Tshuam Ntseg: 5 Kauj Ruam
Ntse Tsev Cuam Tshuam Ntseg: 5 Kauj Ruam

Video: Ntse Tsev Cuam Tshuam Ntseg: 5 Kauj Ruam

Video: Ntse Tsev Cuam Tshuam Ntseg: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Ntse Tsev Cuam Tshuam
Ntse Tsev Cuam Tshuam

Cov Lus Qhia no yog tam sim no hauv kev sib tw Microcontroller, thov pov npav rau nws: D

Nyob zoo sawv daws, Hnub no kuv yuav qhia koj kuv qhov haujlwm me me uas kuv tau ua rau ob peb hnub.

Cov teeb no yog ua los ntawm 4 (plaub) sib txawv sensors thiab kuv xav tias txhua tus tswv tsev cog khoom yuav tsum muaj nws, thiab nws yuav tsum ua rau nws lub neej yooj yim dua.

LCD cov khoom tso tawm yog nyob hauv Bosnian, tab sis kuv yuav txhais nws rau koj hauv cov cai thiab ntawm no.:)

Tus nqi tag nrho ntawm txoj haujlwm no: $ 16 lossis € 13, 5 (tsis suav nrog cov cuab yeej thiab koj tuaj yeem mus tau yog tias koj khaws qee qhov chaw).

Kuv yuav tshaj tawm cov khoom uas kuv yuav los ntawm Aliexpress, thiab lawv yog cov uas pheej yig tshaj thiab zoo tshaj plaws uas koj tuaj yeem pom ntawm Aliexpress.

Zoo siab!:)

Ceev faj: Kuv tsis muaj lub luag haujlwm yog tias koj ua rau koj tus kheej lossis lwm tus nyob ib puag ncig koj!

Kauj Ruam 1: Sau Cov Khoom thiab Cov Cuab Yeej

Rau qhov haujlwm no koj yuav xav tau:

Arduino board (Kuv siv "Nano"):

LCD I2C npo:

Photoresistor rau lub teeb pom kev:

Cov av noo noo:

DHT11 ntsuas kub thiab av noo:

Mini Solar vaj huam sib luag

3.7V roj teeb (zoo tshaj los siv los ntawm lub xov tooj qub lossis LiPo vim qhov chaw nyob)

TP4056 roj teeb them/tiv thaiv kev them nyiaj:

Boost buck converter 3.7V rau 5V (kho tus kheej):

LEDs:

Tactile hloov rau rov pib dua (yeem):

Hloov (koj tuaj yeem siv ib qho, kuv siv cov no):

Heatshrink tubing, kab xev kab xev, xaim thiab lub thawv teeb uas koj tuaj yeem yuav hauv khw koj lub khw.

Kauj ruam 2: Schematics

Schematics
Schematics

Kuv tau ua cov ncauj lus ntxaws ntxaws rau koj, Kuv vam tias nws tsis nyuab heev, tab sis kuv yuav sau txhua qhov kev sib txuas.

Yog tias koj tsis tuaj yeem pom, kuv tau tshaj tawm kuv cov.fzz Fritzing schematics lossis koj tuaj yeem rub kuv cov ntsiab lus daws teeb meem siab:

- I2C LCD npo

SDA --- Arduino A4

SCL --- Arduino A5

VCC --- Arduino 5V

GND --- Arduino GND

- DHT11/DHT22 ntsuas kub thiab av noo

Los ntawm sab laug mus rau sab xis

Thawj tus pin --- 5V

Tus pin thib ob --- D4

Tus pin thib peb --- tsis muaj dab tsi

Plaub tus pin --- GND

- Av noo noo sensor

VCC --- Arduino 5V

GND --- Arduino GND

D0 --- tsis muaj dab tsi

A0 --- Arduino A1

(+ thiab -) --- sojntsuam (polarity tsis muaj teeb meem)

- 6V 1W hnub ci vaj huam sib luag

Cov xov hlau zoo (+) --- TP4056 INPUT (+) (nws nyob ib sab ntawm Micro USB chaw nres nkoj)

Cov hlau tsis zoo (-) --- TP4056 INPUT (-) (tib yam)

- 3.7V roj teeb rov tau (tsis txhob ua yuam kev ntawm no)

Cov hlau zoo (+) --- TP4056 (B+)

Cov hlau tsis zoo (-) --- TP4056 (B-)

- Boost buck converter

(VIN+) --- TP4056 (Tawm+)

(VIN-) --- TP4056 (Tawm-)

(VOUT+) --- Arduino VIN

(VOUT-) --- Arduino GND

Rau lub teeb pom kev zoo thov saib schematics-

Kauj Ruam 3: Tshaj Tawm Txoj Cai rau Arduino

Koj yuav tsum rub qee lub tsev qiv ntawv:

DHT sensor tsev qiv ntawv:

LCD I2C lub tsev qiv ntawv:

LIB SENSOR LIBRARY:

Luam lawv rau: … / Arduino / tsev qiv ntawv

Thiab xa cov cai rau Arduino

Kauj Ruam 4: Txuas Txhua Yam

Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam

Nco ntsoov siv cov xov hlau luv thiab cov khoom siv zoo zoo.

Txog rau ntawm lub npov ib sab, Kuv tau tshaj tawm daim duab uas qhia koj yuav ua li cas txuas cov teeb liab LEDs.

Desolder me me SMD LEDs los ntawm kev hloov pauv thiab TP4056 tus qauv, lo koj tus kheej LEDs rau hauv lub thawv thiab muab lawv tso rau hauv cov qauv.

Pib dua khawm yog nyob ntawm yeem, txuas ib kawg ntawm kev hloov pauv mus rau GND thiab lwm qhov rau RST tus pin ntawm Arduino.

Nco ntsoov tig lub photoresistor rau saum ntuj.

Lub thawv zoo tshaj los siv yog lub thawv teeb rau cov kab hluav taws xob. Lawv tuaj yeem tiv taus qhov kub siab thiab yuav tiv thaiv hluav taws xob hauv nws. (Koj tuaj yeem siv cov kua nplaum kub los lo txhua yam thiab nws yuav tsis sov txawm nyob hauv lub thawv no)

Ntsuas lub vijtsam LCD thiab txiav lub thawv teeb kom haum rau lub vijtsam LCD. Tom qab ntawd lo nws nruj nreem nrog kua nplaum kub lossis epoxy.

Kaw lub hnub ci vaj huam sib luag nrog syntelan lossis epoxy (tsis txhob siv cov kua nplaum kub ntawm no vim tias nws yuav yaj ntawm lub hnub) rau saum thiab nqa cov xov tooj los ntawm nws hla lub thawv thiab rau hauv lub thawv.

Kauj ruam 5: Ua tiav

Image
Image
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!

Muab nws tso rau qhov twg hauv koj lub tsev cog khoom. Qhov chaw zoo tshaj plaws tso nws yog qhov chaw nyob nruab nrab ntawm lub tsev cog khoom.

Yog tias koj saib ze rau hauv qab ntawm tus ncej ntoo koj tuaj yeem pom tias kuv tau ua cov hlua hlau uas txuas nrog rau qhov ntsuas av noo, yog li kuv tuaj yeem so nws thiab ntsuas cov dej noo nyob txhua qhov chaw hauv tsev cog khoom.

Txhais cov vis dis aus:

Temperature - kub

Vlaznost zraka - av noo

Vlaznost tla - Av noo noo

Svjetlost - Lub teeb

Pom zoo: