Cov txheej txheem:
- Kauj Ruam 1: Yuav Tsum Tau:
- Kauj Ruam 2: Txuas Cov Khoom Siv rau Nano
- Kauj Ruam 3: Suav nrog Lub Tsev Qiv Ntawv
- Kauj Ruam 4: Luam theej I2C thiab Nrhiav Qhov Chaw Nyob
- Kauj ruam 5: CODE
Video: DISPLAY HUMIDITY THIAB TEMPERATURE ntawm LCD nrog ARDUINO NANO: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Cov lus qhia hauv qab no qhia nrog ua qhov yooj yim lcd interface nrog arduino nano.
Kauj Ruam 1: Yuav Tsum Tau:
Yuav tsum muaj
- DTH11 Vaum thiab Kub Sensor
- Arduino Nano Cov
- 16*2 LCD zaub
- I2C qhov module
- Txuas xov hlau
Thiab
- Arduino IDE Cov
- Arduino tsev qiv ntawv
I2c tsev qiv ntawv (LiquidCrystal_I2C)
DHT tsev qiv ntawv (DHT.h)
Kauj Ruam 2: Txuas Cov Khoom Siv rau Nano
Txuas cov khoom siv rau nano raws li kev tshuaj ntsuam, DTH11 Rau Arduino Nano
3.3v kwv
GND GND
Tawm D4 I2C
Lcd to Nano
GND NWG
SDA AW 4
SWB A5
Vc5v wb
Kauj Ruam 3: Suav nrog Lub Tsev Qiv Ntawv
Rub tawm thiab suav nrog Cov tsev qiv ntawv hauv qab no, DHT sensor tsev qiv ntawv (DHT.h)
I2c tsev qiv ntawv (LiquidCrystal_I2C.h)
Xws li cov duab saum toj no.
Mus rau ketch suav nrog Lub Tsev Qiv Ntawv Ntxiv Zip Cov Ntaub Ntawv thiab tom qab ntawd xaub daim nplaub tshev, Kaw IDE thiab qhib nws dua, Koj tuaj yeem rub tawm cov tsev qiv ntawv los ntawm cov kab ntawv txuas hauv qab no, bitbucket.org/fmalpartida/new-liquidcrysta…
codeload.github.com/adafruit/DHT-sensor-li…
Kauj Ruam 4: Luam theej I2C thiab Nrhiav Qhov Chaw Nyob
Rub lub I2C scanner thiab nrhiav koj qhov chaw nyob i2c thiab tom qab ntawd nkag mus rau tus lej;
Koj tuaj yeem pom tus lej scanner los ntawm no thiab.
www.mediafire.com/file/f7oaa4et779yaaz/i2c_…
Kauj ruam 5: CODE
// Sau thiab xa cov cai rau arduino nano
#suav nrog "DHT.h" #define SensorPin 4 // txuas tus pin ntawm dht sensor rau D4 tus pin ntawm arduino nano
#Txhais Dht DHT11
DHT dht (SensorPin, Dht);
#suav nrog
#suav nrog
LiquidCrystal_I2C lcd (0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // teeb I2C Chaw Nyob raws li 0x3F
void teeb tsa () {
Serial.begin (9600);
lcd.begin (16, 2);
Serial.println ("Kev Ntsuas Kub thiab Vaum");
dht.begin ();
}
void voj () {
int hum = dht.readHumidity ();
int temp = dht.readTemperature ();
lcd.setCursor (0, 0);
lcd.print ("Temp:");
lcd.print (kub);
lcd.print ("C");
lcd.setCursor (0, 1);
lcd.print ("Vaum:");
lcd.print (hwm);
lcd.print ("%");
Serial.print ("\ n Tam sim no Kub:");
Serial.print (temp);
Serial.print ("C");
Serial.print ("\ n Tam sim no Vaum:");
Serial.print (hum);
Serial.print ("%");
ncua (2500);
}
Cov txiaj ntsig tau pom nrog cov duab saum toj no.
Ua tsaug, Diav.
Pom zoo:
THINGSPEAK TEMPERATURE THIAB HUMIDITY APP Siv ESP8266: 9 Cov Kauj Ruam
THINGSPEAK TEMPERATURE THIAB HUMIDITY APP Siv ESP8266: Thaum tinkering nrog kuv cov khoom siv hluav taws xob, Kuv tau txais lub tswv yim no los ua web-based huab cua app. Lub vev xaib no siv SHT31 lub ntsuas kom tau txais cov ntaub ntawv ntsuas kub thiab av noo lub sijhawm. Peb tau xa peb txoj haujlwm ntawm ESP8266 WiFi module. Online los yog tawm
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: 5 Kauj Ruam (nrog Duab)
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: Tswj 8 qhov hloov pauv hloov siv nodemcu thiab ir tus txais tshaj wifi thiab ir chaw taws teeb thiab hauv app.the ir tej thaj chaw deb ua haujlwm ywj pheej ntawm wifi txuas. NTUJ
Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: 5 Cov Kauj Ruam
Tsim thiab Ua kom tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Cev Los Ntawm Accelerometer thiab Gyroscope MPU6050 I2C Sensor: 8 Kauj Ruam (nrog Duab)
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Accelerometer thiab Gyroscope MPU6050 I2C Sensor: Ib pliag dhau los kuv tau tshaj tawm cov lus qhia yuav ua li cas koj tuaj yeem txuas MPU9250 Accelerometer, Gyroscope thiab Compass Sensor rau Arduino Nano thiab teeb tsa nws nrog Visuino kom xa cov ntaub ntawv pob thiab tso saib nws ntawm Scope thiab Visual Instruments.The Accelerometer xa X, Y