Cov txheej txheem:

Huab cua-Chaw Nres Tsheb: 10 Kauj Ruam
Huab cua-Chaw Nres Tsheb: 10 Kauj Ruam

Video: Huab cua-Chaw Nres Tsheb: 10 Kauj Ruam

Video: Huab cua-Chaw Nres Tsheb: 10 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Huab cua-Chaw Nres Tsheb
Huab cua-Chaw Nres Tsheb
Huab cua-Chaw Nres Tsheb
Huab cua-Chaw Nres Tsheb
Huab cua-Chaw Nres Tsheb
Huab cua-Chaw Nres Tsheb

Hauv txoj haujlwm no peb yuav ua lub chaw saib huab cua uas yuav ntsuas qhov ntsuas kub, av noo thiab UV ntsuas los ntawm kev siv Raspberry Pi, Python (coding), MySQL (database) thiab Flask (web server).

Khoom siv

Cov khoom xav tau rau txoj haujlwm no

yog:

- Npog lub hau

- DHT11 av noo sensor

- DS18B20 ntsuas kub

- GUVA-S12SD UV sensor

- LCD Zaub

- Servo tsav

PIB 3008

Raspberry Pi 3

- Trimmer

- Tus nqi tag nrho nyob ib puag ncig € 110.

Cov cuab yeej kuv siv:

- Conical laum

- Ob daim sided nplaum daim kab xev

Kauj ruam 1: Circuit Court

Circuit Court
Circuit Court
Circuit Court
Circuit Court
Circuit Court
Circuit Court

Circuit Court:

LCD:

- VSS rau Raspberry Pi hauv av

- VDD rau Raspberry Pi's 5V

- V0 rau nruab nrab tus pin trimmer

- RS to GPIO pin

- R / W rau Raspberry Pi hauv av

- E rau GPIO tus pin

D4 rau GPIO tus pin

D5 rau GPIO tus pin

D6 rau GPIO tus pin

D7 rau GPIO tus pin

- A rau Raspberry Pi's 5V

- K rau Raspberry Pi av Trimmer

- Rau Raspberry Pi's 5V

- Rau LCD tus pin V0

- Rau Raspberry Pi av

HLB 11:

- VCC rau Raspberry Pi's 3V3

- GND rau Raspberry Pi av

- DAT rau Raspberry Pi's GPIO tus pin 4

- 470 ohms ntawm VCC thiab DAT

DS18B20:

- VCC rau Raspberry Pi's 3V3

- GND rau Raspberry Pi av

- DAT rau Raspberry Pi's GPIO tus pin 4

-470 ohms ntawm VCC thiab DAT

Servo tsav:

- VCC rau Raspberry Pi's 5V

- GND rau Raspberry Pi av

- DAT rau Raspberry Pi tus GPIO tus pin

YWB 3008:

- VDD rau Raspberry Pi's 3V3

- VREF rau Raspberry Pi's 3V3

AGND rau Raspberry Pi hauv av

CLK rau GPIO tus pin 11 SCLK

DOUT rau GPIO tus pin 9 MISO

- DIN rau GPIO tus pin 10 MOSI

CS to GPIO pin 8 CE0

- DGND rau Raspberry Pi hauv av

CH0 rau GUVA-S12SD (UV sensor)

Kauj ruam 2: DHT11

DHT11
DHT11

DHT11 yog digital

kub thiab av noo sensor. Tso tawm rau tus lej digital.

DHT11 kev qhia tshwj xeeb:

- Ua haujlwm ntawm: 3.3 - 6V.

Kub ntau: -40 - +80 ºC.

- Kev ntsuas kub: ± 0.5 ºC.

- Cov av noo ntau: 0-100% RH.

- Cov av noo raug: ± 2.0% RH.

- Lub sijhawm teb: sec.

Kauj Ruam 3: DS18B20

DS18B20
DS18B20
DS18B20
DS18B20

DS18B20 Sensor Tshwj Xeeb

- Programmable Digital Kub Sensor.

- Sib txuas lus siv 1-Wire txoj kev.

Ua haujlwm voltage: 3V txog 5V.

- Kub Ntau Yam: -55 ° C txog +125 ° C.

- Qhov tseeb: ± 0.5 ° C.

- Cim 64-ntsis chaw nyob ua rau muaj kev sib txuam.

Kauj ruam 4: LCD

LCD
LCD

LCD tswj nrog 16 × 2 cim cim qauv nrog xiav

backlight thiab cov cim dawb. 2 kab, 16 tus cim ib kab. Siab sib txawv thiab pom lub kaum ntse ntse loj. Qhov sib piv tau kho tau los ntawm kev kho qhov hloov pauv tau (potentiometer / trimmer).

LCD 16 × 2 qhov tshwj xeeb xiav:

- Ua haujlwm: 5V

- Kho qhov sib txawv.

- Qhov ntev: 80mm x 35mm x 11mm.

- Pom pom pom: 64.5mm x 16mm.

Kauj Ruam 5: MCP3008

YWB 3008
YWB 3008
YWB 3008
YWB 3008
YWB 3008
YWB 3008

Ib qho piv txwv-rau-digital hloov pauv lossis AD-hloov pauv (ADC) hloov pauv cov lus sib piv, piv txwv li hais lus teeb liab, rau hauv cov cim digital. MCP3008 muaj 8 cov tswv yim sib piv thiab tuaj yeem nyeem nrog SPI interface ntawm Arduino, Raspberry Pi, ESP8266 MCP hloov pauv qhov hluav taws xob sib piv rau tus lej ntawm 0 thiab 1023 (10 ntsis).

Thaum siv MCP3008 koj yuav tsum tau pab kom SPI, koj tuaj yeem ua qhov no los ntawm (cov duab ntxiv nrog cov kauj ruam):

  1. Ntaus hauv lub console: sudo raspi-config
  2. Qhov no yuav tshaj tawm cov txiaj ntsig raspi-teeb tsa. Xaiv "Interfacing Options"
  3. Nyeem qhov kev xaiv "SPI" thiab qhib.
  4. Xaiv thiab qhib.
  5. Highlight thiab qhib.
  6. Thaum hais kom rov pib dua qhov tseem ceeb thiab qhib.
  7. Raspberry Pi yuav rov pib dua thiab lub interface yuav raug qhib.

Kauj Ruam 6: Servo Motor

Servo Tsav
Servo Tsav

Loj: 32 × 11.5 × 24mm (Tabs suav nrog) 23.5 × 11.5 × 24mm (Tab tsis suav nrog)

Qhov hnyav: 8.5g (Cable thiab txuas tsis suav nrog) 9.3g (Cable thiab txuas txuas nrog)

Ceev: 0.12sec/60degrees (4.8V) 0.10sec/60degrees (6.0V)

Torque: 1.5kgf-cm (4.8V) 2.0kgf-cm (6.0V)

Voltage: 4.8V-6.0V

Hom txuas: JR hom (Daj: Teeb liab, Liab: VCC, Xim av: GND)

Kauj Ruam 7: UV-SENSOR GUVA-S12SD

UV-SENSOR GUVA-S12SD
UV-SENSOR GUVA-S12SD

GUVA-S12SD Sensor Cov Lus Qhia Tshwj Xeeb

- Ua haujlwm voltage: 3.3 V txog 5 V

- Cov zis hluav taws xob: 0 V txog 1 V (0-10 UV ntsuas)

Lub sijhawm teb: 0.5 s

- Qhov tseeb: ± 1 UV ntsuas

Wavelength: 200-370 nm

- Kev siv: 5 mA

- Qhov ntev: 24 x 15 hli

Kauj Ruam 8: Rooj plaub

Case
Case

Kuv siv lub hau npog rau lub hull uas kuv tau hlais 2 qhov rau qhov ntsuas kub thiab lub ntsuas cua uv, qhov ntsuas qhov ntsuas cua, lub tshuab servo thiab lcd tau teeb tsa hauv 1 ntawm lub qhov nyob rau sab saum toj. Lub hau npog tau teeb tsa ntawm lub rooj tsavxwm kom pom zoo dua

Kauj ruam 9: Database

Database
Database

Kauj ruam 10: Code

github.com/NMCT-S2-Project-1/nmct-s2-project-1-QuintenDeClercq.git

Pom zoo: