Cov txheej txheem:

Kev Noj Qab Haus Huv Hauv Tsev: 8 Kauj Ruam
Kev Noj Qab Haus Huv Hauv Tsev: 8 Kauj Ruam

Video: Kev Noj Qab Haus Huv Hauv Tsev: 8 Kauj Ruam

Video: Kev Noj Qab Haus Huv Hauv Tsev: 8 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Kev Noj Qab Haus Huv Tsev
Kev Noj Qab Haus Huv Tsev

Nyob zoo txhua tus, Vam tias koj txhua tus ua tau zoo. Raws li tau hais ua ntej kuv yuav tsum tshaj tawm lub ntsuas kev noj qab haus huv hauv tsev hauv ib qho ntawm kuv cov lus qhia yav dhau los. Yog li ntawm no nws yog:

Wearable thev naus laus zis ua txoj haujlwm zoo ntawm kev khaws cov tab ntawm koj tus kheej lub cev. Tab sis txhawm rau ntsuas kev noj qab haus huv ntawm qhov chaw koj nyob, koj xav tau cov cuab yeej sib txawv. Cov cuab yeej no saib xyuas qhov ntsuas kub, av noo, suab nrov, thiab teeb pom kev zoo rau txhua chav thiab tseem tuaj yeem ua qhov ntsuas nkag, teeb nyem thiab them xov tooj thiab siv 1W LED txhawm rau tsim cov txiaj ntsig stroboscopic kom tau txais kev nkag mus. Tsis pub dhau lub casing, sau los ntawm cov ntsuas xa cov ntaub ntawv mus rau Arduino, uas txhais cov lus nkag thiab qhia cov ntaub ntawv ntawm lub vijtsam OLED me me. Raws li cov cuab yeej nyeem ntawv, koj tuaj yeem qhib lub tshuab ua kom lub cev qhuav dej, txo qhov ntsuas cua sov, lossis tawg qhib lub qhov rais-xijpeem nws yuav siv los ua kom koj lub tsev ib puag ncig xis nyob.

Cov cuab yeej no ua cov hauv qab no:-

  1. Ntsuas thiab Zaub Kub (hauv *C lossis *F).
  2. Ntsuas thiab Zaub Zaub (hauv %).
  3. Xam thiab tso saib zoo li (Cov ntsuas cua sov) (hauv *C lossis *F).
  4. Ntsuas thiab Zaub Suab (hauv dB).
  5. Ntsuas thiab Zaub Teeb (hauv lux) (1 lux = 1 lumen/m^2).
  6. Ntsuas thiab Zaub Zaub los ntawm ib yam khoom tshwj xeeb. (Hauv cm lossis nti).
  7. Siv ua lub ntsuas ntsuas nkag (cais lub suab sib ntxiv tau ntxiv).
  8. Siv los tsim cov txiaj ntsig stroboscopic.
  9. Siv ua lub teeb nyem.
  10. Them xov tooj thaum muaj xwm ceev.

Kuv xav hais txog tias cov lus qhia no tau tshaj tawm ntxov vim yog hnub kawg ntawm kev sib tw hnab tshos. Li no cov ntawv qhia tseem tsis tiav. Cov cuab yeej no tuaj yeem muab txhua qhov kev nyeem ntawv tab sis tseem tsis tuaj yeem siv ua lub tswb ntes thiab teeb nyem zoo li kuv tseem tab tom sau cov cai rau Tus Neeg Siv Kev Sib Tham (UI) nrog cov nyees khawm. Yog li thov pov npav rau kuv tsawg kawg hauv kev sib tw hnab tshos raws li kuv txuas ntxiv ua haujlwm rau cov cai thiab koj hais mav sib sau ua ke thiab pib ntsuas lub ntsuas. Tom qab ntawv koj tuaj yeem pov npav kuv hauv kev sib tw Arduino raws li koj xav tau (Yog tias koj nyiam txoj haujlwm).

Tsis tas li thov tsis txhob hla cov kauj ruam yog tias koj xav kom txoj haujlwm tsis muaj qhov yuam kev (ntau tus neeg hais txog kev ua haujlwm tsis yog thiab tsis tau teeb tsa Arduino cov tsev qiv ntawv kom raug rau teeb meem). Lossis koj tuaj yeem hla qee cov kauj ruam thawj ntawm kev ntsuas ntsuas thiab pib nrog mic thiab ntsuas lub teeb.

Yog li cia peb sau cov ntu thiab pib:

Kauj Ruam 1: Sau Qhov Chaw:

Sau Qhov Chaw
Sau Qhov Chaw
Sau Qhov Chaw
Sau Qhov Chaw

Daim Ntawv Teev Npe:-

  1. Arduino Mega/Uno/Nano (Rau kev txheeb xyuas cov cim)
  2. Arduino Pro Mini
  3. Programmer rau Pro Mini (Koj tuaj yeem siv lwm Arduinos ib yam)
  4. OLED Zaub (Hom SSD1306)
  5. LDR + 5kΩ (Kuv siv 3x 15kΩ hauv Parallel) LOS YOG TEMT6000
  6. 3 x Push Button
  7. Swb Hloov
  8. Liab LED
  9. DHT22/DHT11 Kub Vaum Sensor (Siv nyob ntawm koj xav tau)
  10. Li Poly Roj Teeb nrog 5V nce qib thiab Li Po Charger.
  11. 1W LED nrog 100Ω (lossis ze)
  12. Raspberry Pi Case (Yog tias koj muaj 3D Tshuab Luam Ntawv koj tuaj yeem ua ib qho. Kuv tsuas yog tsis muaj ib puag ncig.)
  13. Condenser MIC nrog Circuit Circuit amplifier (Hais tom qab) LOS YOG ADMP401/INMP401
  14. Jumper cables (feem ntau FF, M-M zoo kom muaj qee qhov FM kuj)
  15. Zaj sawv Zaj los yog Ntau Cov Xov Tooj
  16. USB B LOS YOG USB B mini (nyob ntawm seb hom Arduino)
  17. Breadboard (rau kev sib txuas ib ntus, rau kev ntsuas ntsuas)

Cov cuab yeej:-

  1. Soldering hlau lossis chaw nres tsheb
  2. Solder
  3. Solder Ciab
  4. Ntsis Tshuaj Ntxhua Khaub Ncaws … (Txhua yam ntxiv uas xav tau rau kev siv tshuaj ntxiv tau ntxiv..)
  5. Rab phom rab phom nrog Sticks (Huag zoo.. lo nplaum)
  6. Riam riam (tsis xav tau xws li, tsuas yog tshem qee qhov yas ntawm RPI Case kom tau txais qhov chaw ntau dua thiab ua qhov rau LEDs, thawb khawm thiab LDR. Koj tuaj yeem siv lwm yam cuab yeej ib yam nkaus.)

Kauj Ruam 2: Kuaj HC-SR04 Ultrasonic Sensor

Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor
Kuaj HC-SR04 Ultrasonic Sensor

Ua ntej cia peb sim HC-SR04 yog tias nws ua haujlwm tau zoo lossis tsis yog.

1. Kev sib txuas:

Arduino HC-SR04

5V_VC

GND_GND

D10_Exo

D9_Tig

2. Qhib cov ntawv.ino txuas thiab xa cov cai rau Arduino board.

3. Tom qab rub tawm tso tus pas ntsuas ib sab ntawm lub sensor thiab tso cov khoom thiab txheeb xyuas qhov nyeem hauv cov ntawv ntsuas (ctrl+ua haujlwm+m). Yog tias kev nyeem yuav luag zoo, peb tuaj yeem mus rau kauj ruam tom ntej. Rau kev daws teeb meem mus ntawm no. Yog xav paub ntxiv mus saib ntawm no.

Kauj Ruam 3: Kuaj DHT11/DHT22 Sensor:

Kuaj DHT11/DHT22 Sensor
Kuaj DHT11/DHT22 Sensor
Kuaj DHT11/DHT22 Sensor
Kuaj DHT11/DHT22 Sensor
Kuaj DHT11/DHT22 Sensor
Kuaj DHT11/DHT22 Sensor

Tam sim no cia peb npaj mus sim DHT11/DHT22 sensor.

1. Kev sib txuas

Arduino DHT11/DHT22

VCC_Pin 1

D2_Pin 2 (tseem txuas rau Pin 1 ntawm 10k resistor)

GND_Pin 4

Nco tseg: Yog tias koj muaj daim ntaub thaiv ncaj qha txuas lub teeb liab mus rau D2 ntawm Arduino.

2. Nruab DHT Library los ntawm no thiab Adafruit_sensor lub tsev qiv ntawv los ntawm no.

3. Qhib.ino cov ntaub ntawv los ntawm cov piv txwv ntawm DHT lub tsev qiv ntawv sensor, hloov cov cai raws li cov lus qhia (DHT11/22) thiab xa cov cai rau Arduino board.

4. Qhib Serial Monitor (ctrl+ua haujlwm+M) thiab tshawb xyuas kev nyeem. Yog tias lawv txaus siab, txuas ntxiv mus rau theem tom ntej.

Lwm qhov kos ntawm no kom paub ntau ntxiv.

Kauj Ruam 4: Calibrate LDR lossis TEMT6000:

Calibrate LDR lossis TEMT6000
Calibrate LDR lossis TEMT6000
Calibrate LDR lossis TEMT6000
Calibrate LDR lossis TEMT6000

Cia peb mus txuas ntxiv txhawm rau ntsuas LDR/TEMT6000:

Txhawm rau ntsuas LDR koj tuaj yeem mus ntawm no. Koj yuav tsum muaj lossis qiv tus lej ntsuas rau ntsuas.

Rau TEMT6000 koj tuaj yeem rub tawm.ino cov ntaub ntawv rau Arduino code.

1. Kev sib txuas:

Arduino_TEMT6000

5V_VCC

GND_GND

A1_SIG

2. Upload cov duab kos rau Arduino thiab qhib Serial Monitor. Txheeb xyuas cov ntawv nyeem nrog kev hwm rau lub luxmeter.

3. Yog tias txhua yam zoo peb tuaj yeem ua mus ntxiv.

Kauj Ruam 5: Calibrate Condenser MIC/ADMP401 (INMP401):

Calibrate Condenser MIC/ADMP401 (INMP401)
Calibrate Condenser MIC/ADMP401 (INMP401)
Calibrate Condenser MIC/ADMP401 (INMP401)
Calibrate Condenser MIC/ADMP401 (INMP401)

Thaum kawg qhov kawg. Lub condenser microphone lossis ADMP401 (INMP401). Kuv xav kom mus rau ADMP401 raws li pawg thawj coj saib me me. Lwm tus koj tuaj yeem mus ntawm no rau lub condenser microphone thiab nws feem ntau yuav siv ntau qhov chaw hauv rooj plaub.

Txog ADMP401: (ceeb toom: Kuv tseem tsis tau ntsuas lub ntsuas kom pom dB qhov txiaj ntsig. Koj yuav pom ADC qhov tseem ceeb xwb.)

1. Kev sib txuas:

Arduino_ADMP401

3.3V _ VCC

GND_GND

A0_AUD

2. Xa cov duab kos mus rau Arduino. Qhib Serial Monitor. Txheeb xyuas kev nyeem ntawv. Nyeem ntawv yog qhov ntau thiab siab tsawg.

Kauj Ruam 6: Nqa Nws Ua Ke:

Image
Image
Coj Nws Los Ua Ke
Coj Nws Los Ua Ke
Coj Nws Los Ua Ke
Coj Nws Los Ua Ke

Thaum kawg nws txog sijhawm coj nws los ua ke.

  1. Koom nrog txhua yam raws li kev sib txuas ntawm lub khob cij.
  2. Nruab cov tsev qiv ntawv. Txuas hauv.ino cov ntaub ntawv.
  3. Rub nws mus rau Arduino.
  4. Txheeb xyuas yog tias txhua yam zoo thiab qhia pom kev nyeem raug.
  5. Yog tias txhua yam zoo peb tuaj yeem thaum kawg muab nws tso rau hauv rooj plaub.

Nco tseg: Cov kauj ruam no tseem tsis tiav raws li txoj cai tseem tsis tau tiav. Yuav muaj qhov ntxiv UI hauv cov ntawv tom ntej.

Kauj Ruam 7: Muab Txhua Yam Rau Hauv Cov Ntaub Ntawv:

Image
Image
Muab txhua yam rau hauv rooj plaub
Muab txhua yam rau hauv rooj plaub
Muab txhua yam rau hauv rooj plaub
Muab txhua yam rau hauv rooj plaub

Lub sijhawm los muab txhua yam rau hauv rooj plaub:

  1. Program cov pro mini. (Koj tuaj yeem google nws yuav ua li cas)
  2. Npaj yuav ua li cas tag nrho cov ntsuas, tso saib, Arduino, roj teeb thiab lub charger yuav haum rau hauv rooj plaub.
  3. Siv ntau (tsis ntau dhau) ntawm cov kua nplaum kub kom ruaj ntseg txhua yam hauv qhov chaw.
  4. Hlau txhua yam

Kuv thov txim uas kuv tsis suav nrog cov duab los pab koj li kuv tseem yuav tau hloov qee qhov hauv cov cai.

Kauj Ruam 8: Kuaj Cov Ntaus Kawg thiab Cov Kev Xav Kawg:

Kuaj Qhov Kawg Kawg thiab Qhov Kawg Kawg
Kuaj Qhov Kawg Kawg thiab Qhov Kawg Kawg

Nov yog peb mus… Peb tsim lub cuab yeej me me uas tuaj yeem ua ntau yam. Cov cuab yeej tseem tsis tau ua tiav thiab yuav xav tau qee lub sijhawm los tsim qhov kawg. Kuv xav kom koj pov npav rau kuv hauv kev sib tw txhawm rau txhawb kuv kom mus tom ntej kom ua tiav txoj haujlwm. Ua tsaug rau koj cov ntawv pov npav thiab nyiam thiab kuv yuav pom koj sai sai nrog qhov ua tiav nrog ntau cov duab thiab yeeb yaj kiab ntawm qhov haujlwm. Thiab tau kawg lub rooj sib txoos kawg

Pom zoo: