Cov txheej txheem:
- Kauj ruam 1: Txheej txheem cej luam
- Kauj ruam 2: Yam Koj Xav Tau / Txuas
- Kauj Ruam 3: Daim duab Circuit Court
- Kauj ruam 4: Programming
- Kauj ruam 5:
Video: Sib cuam tshuam TMP-112 Nrog Arduino Nano (I2C): 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo, Nyob zoo os.. !!
Kuv (Somanshu Choudhary) sawv cev ntawm Dcube thev naus laus zis kev lag luam mus ntsuas qhov ntsuas kub siv Arduino nano, nws yog ib qho ntawm daim ntawv thov I2C raws tu qauv los nyeem cov ntaub ntawv sib piv ntawm qhov kub Sensor TMP-112.
Kauj ruam 1: Txheej txheem cej luam
- TMP-112 yog qhov ntsuas kub.
- DATASHEET Txuas:
Kauj ruam 2: Yam Koj Xav Tau / Txuas
- Arduino Nano Cov
- I²C Shield rau Arduino Nano
- USB Cable Hom A rau Micro Hom B 6 Taw Ntev
- I²C Kab
- TMP112 I²C Kub Sensor ±.5 ° C 12-ntsis I²C Mini Module
Kauj Ruam 3: Daim duab Circuit Court
Kauj ruam 4: Programming
#suav nrog
void teeb tsa ()
{
// I2C chaw nyob ntawm TMP112
#txhais TMP_ADDR 0x48
// Koom nrog I2c Bus li tus tswv
Hlau.begin ();
// Pib kev sib txuas lus
Serial.begin (9600);
// Pib kis
Wire.beginTransmission (TMP_ADDR);
// Xaiv ENABLE sau npe
Hlau.write (0x01);
// Xaiv ib txwm ua haujlwm
Hlau.write (0x60A0);
// Xaus kev kis thiab tso I2C npav
Wire.endTransmission ();
}
void lub voj ()
{
// Pib kis
Wire.beginTransmission (TMP_ADDR);
// Xaiv Cov Ntaub Ntawv Sau Npe
Hlau.write (0X00);
// Kawg Kis
Wire.endTransmission ();
ncua (500);
// Thov 2 bytes, Msb ua ntej
Wire.requestFrom (TMP_ADDR, 2);
// Nyeem ob lub bytes
thaum (Wire.available ())
{
// tshem cov khib nyiab
Serial.flush ();
int msb = Hlau.read ();
int lsb = Wire.read ();
Wire.endTransmission ();
// Cov ntaub ntawv hloov pauv hauv qhov tseem ceeb
int rawtmp = msb << 8 | lsb;
int tus nqi = rawtmp >> 4;
ob xyoos = tus nqi * 0.0625;
// Luam tawm
Serial.print ("tus nqi Celsius:");
Serial.println (ans);
}
}
Kauj ruam 5:
Kuv tau ua qhov zoo tshaj plaws ua koj li;-)
Yog xav paub ntxiv thov mus saib peb lub xaib:
www.dcubetechnologies.com
Pom zoo:
Pib Nrog I2C Sensor Interface ?? - Sib cuam tshuam Koj MMA8451 Siv ESP32s: 8 Kauj Ruam
Pib Nrog I2C Sensor Interface ?? - Sib cuam tshuam Koj MMA8451 Siv ESP32s: Hauv qhov kev qhia no, koj yuav kawm txhua yam txog Yuav pib li cas, txuas thiab tau txais I2C ntaus ntawv (Accelerometer) ua haujlwm nrog tswj (Arduino, ESP32, ESP8266, ESP12 NodeMCU)
Arduino Lux Meter - Sib cuam tshuam OPT3001 Nrog Arduino: 4 Cov Kauj Ruam
Arduino Lux Meter - Sib cuam tshuam OPT3001 Nrog Arduino: Peb feem ntau ntsib qhov xwm txheej, qhov uas peb xav tau los ntsuas kev siv lub teeb. Yog li kuv txiav txim siab ua qhov haujlwm me me uas yuav pab peb daws qhov teeb meem no. Txoj haujlwm no qhia txog yuav ua li cas peb tuaj yeem siv OPT3001 nrog Arduino li Lux meter. Hauv qhov haujlwm no, kuv muaj
Sib cuam tshuam Servo Tsav Nrog NodeMCU: 6 Cov Kauj Ruam (nrog Duab)
Interfacing Servo Motor Nrog NodeMCU: Nyob Zoo Txhua Tus, Nov yog kuv thawj qhov haujlwm Qhia. Yog li koj xav pib nrog NodeMCU? Zoo, kuv nyob ntawm no los qhia rau koj. Hnub no, kuv yuav qhia koj yuav pib li cas nrog NodeMCU. Cia peb mus! NodeMCU muaj nyob hauv nkoj ESP8266-12E ua rau
Sib cuam tshuam 8051 Microcntroller Nrog 16*2 Lcd hauv Proteus Simulation: 5 Kauj Ruam (nrog Duab)
Sib cuam tshuam 8051 Microcntroller Nrog 16*2 Lcd hauv Proteus Simulation: Qhov no yog qhov haujlwm yooj yim heev ntawm 8051. Hauv qhov haujlwm no peb yuav qhia koj txog yuav ua li cas peb tuaj yeem cuam tshuam 16*2 lcd rau 8051 microcontroller. Yog li ntawm no peb siv tag nrho 8 ntsis hom. Hauv qhov kev qhia tom ntej peb yuav qhia txog 4 ntsis hom ib yam nkaus
Tus Cuam Tshuam Cuam Tshuam (ntsuas phoo Cam Cuam Tshuam Cuam Tshuam): 4 Cov Kauj Ruam
Solder Saver (txhav tas Cam Cuam Tshuam Cuam Tshuam): "Yuav ua li cas kuv thiaj yuav tsum qhia ua ntej Cov Lus Qhia no?" Kuv nug kuv tus kheej. Zoo li, txij li thaum pib ntawm lub sijhawm, tus txiv neej muaj qhov xav kom lo lo rau hauv tus cwj mem thiab tshaj tawm cov duab online. Zoo, Kuv tau txiav txim siab luv luv delving rau hauv keeb kwm loj dua ntawm tus cwj mem yaj, b