Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Xav Tau..
- Kauj Ruam 2: Kev Sib Txuas:
- Kauj ruam 3: Code:
- Kauj Ruam 4: Cov ntawv thov:
Video: Arduino Nano - SI7050 Kub Sensor Qhia: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
SI7050 yog lub ntsuas kub digital uas ua haujlwm ntawm I2C cov txheej txheem kev sib txuas lus thiab muab qhov tseeb siab tshaj qhov ua haujlwm tag nrho thiab qhov kub thiab txias. Qhov kev ntsuas siab ntawm qhov ntsuas tau yog los ntawm qhov tshiab teeb liab ua thiab analog tsim. Cov ntsuas no tau kos nrog lub cim xeeb on-chip uas khaws cov ntaub ntawv hu xov tooj uas pab txhawb nws txoj kev siv thoob plaws. Nov yog nws qhov ua qauv qhia nrog Arduino Nano.
Kauj Ruam 1: Yam Koj Xav Tau..
1. Arduino Nano
2. SI7050
3. I²C Cable
4. I²C Shield rau Arduino Nano
Kauj Ruam 2: Kev Sib Txuas:
Siv daim I2C daim thaiv rau Arduino Nano thiab maj mam thawb nws hla tus pin ntawm Nano.
Tom qab ntawd txuas ib kawg ntawm I2C cable rau SI7050 sensor thiab lwm qhov kawg rau I2C daim ntaub thaiv.
Kev sib txuas tau qhia hauv daim duab saum toj no.
Kauj ruam 3: Code:
Tus lej arduino rau SI7050 tuaj yeem rub tawm los ntawm peb qhov chaw cia khoom github-DCUBE Store.
Nov yog qhov txuas rau tib yam:
github.com/DcubeTechVentures/SI7050/blob/master/Arduino/SI7050.ino
Peb suav nrog tsev qiv ntawv Wire.h los pab txhawb I2c kev sib txuas lus ntawm lub sensor nrog Arduino board.
Koj tseem tuaj yeem luam cov cai los ntawm no, nws tau muab raws li hauv qab no:
// Faib nrog daim ntawv tso cai yuav dawb.
// Siv nws txhua txoj hauv kev uas koj xav tau, muaj txiaj ntsig lossis pub dawb, muab nws haum rau hauv daim ntawv tso cai ntawm nws cov haujlwm ua haujlwm.
TSI 7050
// Tus lej no yog tsim los ua haujlwm nrog SI7050_I2CS I2C Mini Module
#suav nrog
// SI7050 I2C chaw nyob yog 0x40 (64)
#define Ntxiv 0x40
void teeb tsa ()
{
// Pib I2C kev sib txuas lus li MASTER
Hlau.begin ();
// Initialise serial communication, teeb baud tus nqi = 9600
Serial.begin (9600);
// Pib I2C kis tau tus mob
Wire.beginTransmission (Addr);
// Nres I2C kev xa mus
Wire.endTransmission ();
ncua (300);
}
void lub voj ()
{
unsigned int cov ntaub ntawv [2];
// Pib I2C kis tau tus mob
Wire.beginTransmission (Addr);
// Xa cov lus ntsuas ntsuas kub, TSIS MUAJ TSEV KAWM NTAWV
Hlau.write (0xF3);
// Nres I2C kev xa mus
Wire.endTransmission ();
ncua (500);
// Thov 2 bytes ntawm cov ntaub ntawv
Wire.requestFrom (Addr, 2);
// Nyeem 2 bytes ntawm cov ntaub ntawv
// temp msb, kub lsb
yog (Wire.available () == 2)
{
cov ntaub ntawv [0] = Wire.read ();
cov ntaub ntawv [1] = Wire.read ();
}
// Hloov cov ntaub ntawv
ntab temp = ((data [0] * 256.0) + data [1]);
ntab ctemp = ((175.72 * temp) / 65536.0) - 46.85;
ntab ftemp = ctemp * 1.8 + 32;
// Cov ntaub ntawv tso tawm rau tus saib xyuas
Serial.print ("Kub hauv Celsius:");
Serial.print (ctemp);
Serial.println ("C");
Serial.print ("Kub hauv Fahrenheit:");
Serial.print (ftemp);
Serial.println ("F");
ncua (500);
}
Kauj Ruam 4: Cov ntawv thov:
SI7050 tuaj yeem suav nrog hauv ntau lub tshuab suav nrog cov khoos phis tawj khoom siv, cov cuab yeej siv tau yooj yim thiab cov cuab yeej siv kho mob. Qhov ntsuas no tuaj yeem ua haujlwm nyob rau hauv cov thawv txias txias, cov khoom muaj nqis nrog rau ntau yam kev tswj hwm kev lag luam. Nws ua lub luag haujlwm tseem ceeb hauv kev tiv thaiv roj teeb ib yam.
Pom zoo:
Ua Koj Tus Kheej Txuas Cov Cua Kub Kub thiab Txuag Nrog Cua Kub: 53 Cov Kauj Ruam (nrog Duab)
Ua Koj Tus Kheej Txuas Cov Cua Kub Kub thiab Txuag Nrog Cua Kub: Lub hom phiaj yog dab tsi? Ua kom yooj yim dua los ntawm kev ua kom sov koj lub tsev raws nraim qhov koj xav Ua kom txuag nyiaj thiab txo cov pa roj carbon tsev tso cua sov los ntawm cua sov koj lub tsev tsuas yog thaum koj xav tau Kev tswj hwm koj cov cua sov nyob txhua qhov chaw koj zoo siab koj tau ua nws y
Arduino cuam tshuam nrog Ultrasonic Sensor thiab Kev Sib Txuas Kub Kub Sensor: 8 Kauj Ruam
Arduino cuam tshuam nrog Ultrasonic Sensor thiab Kev Sib Ntsib Kub Kub Sensor: Niaj hnub no, Cov Tsim, Cov tsim tawm xav tau Arduino rau kev txhim kho sai ntawm cov qauv ntawm cov phiaj xwm. Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Arduino muaj zej zog neeg siv zoo heev. Hauv qhov haujlwm no
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 - Saib Xyuas Qhov Kub Kub & Qhov Kub Kub ntawm M5stick-C Nrog DHT11: 6 Cov Kauj Ruam
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 | Saib Xyuas Qhov Kub thiab Qhov Ntsuas Kub ntawm M5stick-C Nrog DHT11: Nyob zoo cov neeg, hauv cov lus qhia no peb yuav kawm paub yuav ua li cas cuam tshuam DHT11 ntsuas kub nrog m5stick-C (pawg tswj hwm kev txhim kho los ntawm m5stack) thiab tso tawm ntawm cov zaub ntawm m5stick-C. Yog li hauv qhov kev qhia no peb yuav nyeem qhov ntsuas kub, av noo & heat kuv
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: 5 Kauj Ruam
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: Lub DHT11 sensor tau siv los ntsuas kub thiab av noo. Lawv yog cov khoom siv hluav taws xob nrov tshaj plaws.Qhov DHT11 cov av noo thiab ntsuas kub ua rau nws yooj yim ntxiv cov av noo thiab ntsuas kub rau koj li DIY cov phiaj xwm hluav taws xob. Nws yog rau
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Kub Kub Nrog Steinhart-Hart Kho thiab Tswb Kub: 7 Kauj Ruam (nrog Duab)
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Ntsuas Kub nrog Steinhart-Hart Kev Kho thiab Tswb Kub: Tseem tab tom taug kev kom ua tiav "qhov haujlwm yuav los tom ntej", "ESP32 NTP Kev Ntsuas Kub Kev Ntsuas Kub Ua Noj Nrog Steinhart-Hart Kev Kho thiab Tswb Kub" yog Cov Ntawv Qhia qhia yuav ua li cas kuv ntxiv NTP ntsuas kub, piezo b