Cov txheej txheem:

Yuav Ua Li Cas Rau Arduino Weather Station: 4 Kauj Ruam
Yuav Ua Li Cas Rau Arduino Weather Station: 4 Kauj Ruam

Video: Yuav Ua Li Cas Rau Arduino Weather Station: 4 Kauj Ruam

Video: Yuav Ua Li Cas Rau Arduino Weather Station: 4 Kauj Ruam
Video: Tupao Xiong & Nhia Chang - Kuv Tsis Paub Yuav Ua Li Cas (Original) 2024, Kaum ib hlis
Anonim
Image
Image
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Hauv txoj haujlwm no, peb yuav ua lub chaw saib huab cua uas ntsuas kub thiab huab cua nyob hauv av siv Arduino uas qhia txog tus nqi ntawm qhov kub thiab txias tam sim no ntawm LCD Zaub

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Yog li, ntawm no yog daim ntawv teev cov khoom siv nrog kev yuav khoom txuas:

  • Arduino UAS
  • 16x2 LCD Zaub
  • DHT 22 Kub thiab av noo sensor
  • Cov qhob cij
  • 10k ohm potentiometer
  • txuas xov hlau

Kauj Ruam 2: Kev Txuas Hluav Taws Xob

Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob

Nov yog daim ntawv teev npe sib txuas tus pin:-

LCD Kev Sib Txuas:-

LCD PIN 1 ------------ GND

LCD PIN 2 ------------ VCC

LCD PIN 3 ------------ Tus pin nruab nrab ntawm lub lauj kaub

LCD PIN 4 ------------ D12 ntawm arduino

LCD PIN 5 ------------ GND

LCD PIN 6 ------------ D11 ntawm arduino

LCD PIN 7 ------------ NC

LCD PIN 8 ------------ NC

LCD PIN 9 ------------ NC

LCD PIN 10 ---------- NC

LCD PIN 11 ---------- D5 ntawm arduino

LCD PIN 12 ---------- D4 ntawm arduino

LCD PIN 13 ---------- D3 ntawm arduino

LCD PIN 14 ---------- D2 ntawm arduino

LCD PIN 15 ---------- VCC

LCD PIN 16 ---------- GND

DHT 22 Kev Sib Txuas:-

VCC ----------- +5V

GND -------------- NCO

DATA --------- Arduino tus pin 8

Kauj ruam 3: Code

#suav nrog

#suav nrog "DHT.h" #define DHTPin 8 LiquidCrystal lcd (12, 11, 5, 4, 3, 2); DHT dht;

void teeb tsa ()

{dht.setup (DHTPin); lcd.begin (16, 2); } void loop () {ntab temp = dht.getTemperature (); ntab humi = dht.getHumidity (); lcd.setCursor (0, 0); lcd.print ("Temp:"); lcd.print (kub); lcd.print ("C"); lcd.setCursor (0, 1); lcd.print ("Humi:"); lcd.print (humi); lcd.print (" %"); ncua (2000); }

Kauj Ruam 4: Xaus

Vam tias kuv tau muab txhua yam koj xav tau los ua txoj haujlwm no rau koj tus kheej. Yog koj nyiam kuv qhov project thov thov txiav txim siab tso npe rau kuv hauv youtube.. Thank ua tsaug rau koj lub sijhawm

www.youtube.com/creativestuff

Pom zoo: