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: Particle Photon - HDC1000 Kub Sensor Qhia: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
HDC1000 yog lub ntsuas cua digital nrog cov ntsuas kub sib xyaw uas muab qhov ntsuas tau zoo heev ntawm lub zog qis heev. Cov cuab yeej ntsuas cov av noo raws li lub peev xwm tshiab sensor. Cov av noo thiab qhov ntsuas kub tau tsim los ntawm lub Hoobkas. Nws ua haujlwm tsis pub dhau -40 ° C txog +125 ° C kub ntau. Nov yog nws qhov ua piv txwv nrog particle photon.
Kauj Ruam 1: Yam Koj Xav Tau..
1. Particle Photon
2. HDC1000
3. I²C Cable
4. I²C Shield rau Particle Photon
Kauj Ruam 2: Kev Sib Txuas:
Nqa daim I2C daim ntaub thaiv rau cov photon me me thiab maj mam thawb nws hla cov pins ntawm cov khoom sib nqus.
Tom qab ntawd txuas ib kawg ntawm I2C cable rau HDC1000 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:
Cov lej me me rau HDC1000 tuaj yeem rub tawm los ntawm peb GitHub chaw cia khoom- Dcube Store.
Nov yog qhov txuas rau tib yam:
github.com/DcubeTechVentures/HDC1000…
Cov ntawv ntawm HDC1000 tuaj yeem pom ntawm no:
www.ti.com.cn/cn/lit/ds/symlink/hdc1000.pdf
Peb tau siv ob lub tsev qiv ntawv rau cov lej me me, uas yog application.h thiab spark_wiring_i2c.h. Spark_wiring_i2c lub tsev qiv ntawv xav tau los pab txhawb I2C kev sib txuas lus nrog lub sensor.
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.
// HDC1000
// Cov cai no tau tsim los ua haujlwm nrog HDC1000_I2CS I2C Mini Module muaj nyob hauv Dcube Store.
#suav nrog
#suav nrog
// HDC1000 I2C chaw nyob yog 0x40 (64)
#define Ntxiv 0x40
ntab cTemp = 0.0, fTemp = 0.0, av noo = 0.0;
int temp = 0, hum = 0;
void teeb tsa ()
{
// Teem sib txawv
Particle.variable ("i2cdevice", "HDC1000");
Particle.variable ("av noo", av noo);
Particle.variable ("cTemp", cTemp);
// Pib I2C kev sib txuas lus
Hlau.begin ();
// Initialise Serial Communication, teeb baud tus nqi = 9600
Serial.begin (9600);
// Pib I2C Kev Kis
Wire.beginTransmission (Addr);
// Xaiv cov npe sau npe
Hlau.write (0x02);
// Kub, ua kom cov av noo, daws teeb meem = 14-ntsis, rhaub rau
Hlau.write (0x30);
// Nres I2C Kev Kis
Wire.endTransmission ();
ncua (300);
}
void lub voj ()
{
unsigned int cov ntaub ntawv [2];
// Pib I2C Kev Kis
Wire.beginTransmission (Addr);
// Xa cov lus ntsuas ntsuas ntsuas
Hlau.write (0x00);
// Nres I2C Kev Kis
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
temp = ((cov ntaub ntawv [0] * 256) + cov ntaub ntawv [1]);
cTemp = (temp / 65536.0) * 165.0 - 40;
fTemp = cTemp * 1.8 + 32;
// Pib I2C Kev Kis
Wire.beginTransmission (Addr);
// Xa cov lus ntsuas ntsuas av noo
Hlau.write (0x01);
// Nres I2C Kev Kis
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
hum = ((cov ntaub ntawv [0] * 256) + cov ntaub ntawv [1]);
av noo = (hum / 65536.0) * 100.0;
// Tso tawm cov ntaub ntawv rau dashboard
Particle.publish ("Tus txheeb ze Vaum:", Txoj hlua (av noo));
Particle.publish ("Kub hauv Celsius:", String (cTemp));
Particle.publish ("Kub hauv Fahrenheit:", String (fTemp));
ncua (1000);
}
Kauj Ruam 4: Cov ntawv thov:
HDC1000 tuaj yeem ua haujlwm ua cua sov, tso cua thiab cua txias (HVAC), Ntse Thermostats thiab Chav Saib Xyuas. Qhov ntsuas no tseem pom nws daim ntawv thov hauv Cov Tshuab Luam Ntawv, Cov Ntsuas Hluav Taws Xob, Cov Khoom Siv Kho Mob, Kev Thauj Khoom Nkoj nrog rau Automotive Windshield Defog.
Pom zoo:
Particle Photon - TCN75A Kub Sensor Tutorial: 4 Kauj Ruam
Particle Photon-TCN75A Kub Sensor Tutorial: TCN75A yog ob-xaim hluav taws xob ntsuas kub sib xyaw nrog ntsuas kub-rau-digital hloov pauv. Nws tau suav nrog cov neeg siv cov ntawv sau npe uas muab kev hloov pauv rau kev thov ntsuas kub. Cov chaw teev npe tso cai rau cov neeg siv
Particle Photon - ADT75 Kub Sensor Qhia: 4 Kauj Ruam
Particle Photon - ADT75 Kub Sensor Qhia: ADT75 yog qhov tseeb, ntsuas kub digital. Nws suav nrog qhov sib txawv ntawm qhov ntsuas kub thiab 12-ntsis analog rau digital hloov pauv rau kev saib xyuas thiab digitizing qhov kub thiab txias. Nws qhov kev nkag siab zoo ua rau nws muaj peev xwm txaus rau kuv
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