Cov txheej txheem:
- Kauj ruam 1:
- Kauj ruam 2: Configuration Register
- Kauj Ruam 3: Sau Cov Ntaub Ntawv
- Kauj ruam 4: Ib leeg-xaus ADC Hom
- Kauj ruam 5:
- Kauj Ruam 6: Hom ADC txawv
Video: Arduino thiab TI ADS1110 16-ntsis ADC: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv qhov kev qhia no peb tshuaj xyuas Arduino los ua haujlwm nrog Texas Instruments ADS1110-qhov tsis txaus ntseeg me me tab sis muaj txiaj ntsig 16-ntsis sib piv-rau-digital hloov IC.
Nws tuaj yeem ua haujlwm nruab nrab ntawm 2.7 thiab 5.5 V yog li nws kuj tseem zoo rau Arduino Due thiab lwm qhov qis-kev txhim kho cov laug cam. Ua ntej txuas ntxiv ib qho ntxiv, thov rub cov ntaub ntawv (pdf) raws li nws yuav muaj txiaj ntsig thiab xa mus rau thaum lub sijhawm qhia no. ADS1110 muab rau koj xaiv qhov tseeb ntawm ADC ntau dua li muab los ntawm Arduino's 10-ntsis ADCs-thiab nws yooj yim siv. Txawm li cas los xij nws tsuas yog muaj raws li qhov tsis muaj dab tsi hauv SOT23-6.
Kauj ruam 1:
Cov xov xwm zoo yog tias koj tuaj yeem xaj ADS1110 teeb tsa ntawm lub rooj sib tham yooj yim heev. ADS1110 siv I2C npav rau kev sib txuas lus. Thiab vim muaj tsuas yog rau tus pin koj tsis tuaj yeem teeb chaw nyob npav - hloov chaw, koj tuaj yeem xaiv los ntawm rau qhov sib txawv ntawm ADS1110 - txhua tus nrog lawv tus kheej qhov chaw nyob (saib nplooj ntawv ob ntawm cov ntaub ntawv).
Raws li koj tuaj yeem pom hauv daim duab saum toj no, peb lub cim "EDO" uas sib phim rau qhov chaw nyob npav 1001000 lossis 0x48h. Thiab nrog cov piv txwv kev sib tw peb tau siv 10kΩ rub tawm cov neeg tawm tsam ntawm I2C npav.
Koj tuaj yeem siv ADS1110 raws li ib leeg-qhov xaus lossis sib txawv ADC-Tab sis ua ntej peb yuav tsum tshuaj xyuas qhov teeb tsa sau npe uas yog siv los tswj ntau yam cwj pwm, thiab cov ntaub ntawv sau npe.
Kauj ruam 2: Configuration Register
Tig mus rau nplooj kaum ib ntawm cov ntaub ntawv. Kev teeb tsa sau npe yog ib byte hauv qhov loj me, thiab raws li ADS1110 rov pib dua ntawm lub zog-lub voj voog-koj yuav tsum rov pib sau npe yog tias koj xav tau sib txawv rau qhov tsis raug. Cov ntaub ntawv sau sau nws zoo heev … cov khoom 0 thiab 1 txiav txim siab qhov teeb tsa nce rau PGA (programmable nce lub suab nrov).
Yog tias koj tsuas yog ntsuas qhov ntsuas hluav taws xob lossis sim, tso cov no li xoom rau qhov nce ntawm 1V/V. Tom ntej no, cov ntaub ntawv tus nqi rau ADS1110 raug tswj nrog cov khoom 2 thiab 3. Yog tias koj muaj kev ntsuas txuas mus tas li, qhov no txiav txim siab tus naj npawb ntawm cov qauv piv txwv thib ob los ntawm ADC.
Tom qab qee qhov kev sim nrog Arduino Uno peb pom qhov txiaj ntsig rov qab los ntawm ADC tau tawm me ntsis thaum siv tus nqi nrawm tshaj plaws, yog li tso nws li 15 SPS tshwj tsis yog xav tau lwm yam. Ntsis 4 teeb tsa ib qho piv txwv txuas mus ntxiv (0) lossis ib qho piv txwv (1). Tsis quav ntsej cov khoom 5 thiab 6, txawm li cas los xij lawv ib txwm teeb tsa ua 0.
Thaum kawg me ntsis 7-yog tias koj nyob rau hauv ib qho piv txwv hom, teeb tsa nws rau 1 thov piv txwv-thiab nyeem nws yuav qhia koj yog tias cov ntaub ntawv xa rov qab yog tshiab (0) lossis qub (1). Koj tuaj yeem tshawb xyuas tias tus nqi ntsuas yog tus nqi tshiab - yog thawj zaug ntawm kev teeb tsa byte uas los tom qab cov ntaub ntawv yog 0, nws yog qhov tshiab. Yog tias nws rov 1 ADC kev hloov pauv tsis tau ua tiav.
Kauj Ruam 3: Sau Cov Ntaub Ntawv
Raws li ADS1110 yog 16-ntsis ADC, nws rov qab cov ntaub ntawv hla ob bytes-thiab tom qab ntawd ua raws nrog tus nqi ntawm kev teeb tsa sau npe. Yog li yog tias koj thov peb bytes tag nrho ntau rov qab los. Cov ntaub ntawv nyob hauv "ob qhov ua tiav", uas yog ib txoj hauv kev siv cov lej kos npe nrog binary.
Kev hloov pauv ob lub bytes no yog ua los ntawm qee qhov lej yooj yim. Thaum ua piv txwv ntawm 15 SPS, tus nqi xa rov qab los ntawm ADS1110 (tsis yog qhov hluav taws xob) ntog nruab nrab ntawm -32768 thiab 32767. Qhov siab dua byte ntawm tus nqi yog sib npaug los ntawm 256, tom qab ntawd ntxiv rau hauv qab byte -uas yog tom qab ntawd suav nrog 2.048 thiab thaum kawg faib los ntawm 32768. Tsis txhob poob siab, raws li peb ua qhov no hauv qhov piv txwv yav tom ntej kos duab.
Kauj ruam 4: Ib leeg-xaus ADC Hom
Hauv hom no koj tuaj yeem nyeem qhov hluav taws xob uas poob nruab nrab ntawm xoom thiab 2.048 V (uas tseem tshwm sim los ua qhov ntsuas hluav taws xob inbuilt rau ADS1110). Qhov piv txwv Circuit Court yog qhov yooj yim (los ntawm cov ntaub ntawv).
Tsis txhob hnov qab 10kΩ rub tawm cov neeg tawm tsam ntawm I2C npav. Cov duab kos hauv qab no siv ADS1110 hauv lub neej ua ntej, thiab tsuas yog rov ntsuas qhov ntsuas hluav taws xob:
// Piv txwv 53.1 - ADS1110 ib leeg -sab voltmeter (0 ~ 2.048VDC) #include "Wire.h" #define ads1110 0x48 ntab voltage, cov ntaub ntawv; byte highbyte, lowbyte, configRegister; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); Hlau.begin (); } void loop () {Wire.requestFrom (ads1110, 3); thaum (Wire.available ()) // xyuas kom tag nrho cov ntaub ntawv los hauv {highbyte = Wire.read (); // siab byte * B11111111 lowbyte = Wire.read (); // tsawg byte configRegister = Wire.read (); }
cov ntaub ntawv = highbyte * 256;
data = cov ntaub ntawv + lowbyte; Serial.print ("Cov ntaub ntawv >>"); Serial.println (cov ntaub ntawv, DEC); Serial.print ("Voltage >>"); voltage = cov ntaub ntawv * 2.048; qhov hluav taws xob = qhov hluav taws xob / 32768.0; Serial.print (qhov hluav taws xob, DEC); Serial.println ("V"); ncua (1000); }
Kauj ruam 5:
Ib zaug rub tawm, txuas lub teeb liab los ntsuas thiab qhib lub ntsuas saib - koj yuav raug nthuav qhia nrog qee yam zoo ib yam li cov duab saib hauv xov tooj uas qhia hauv theem no.
Yog tias koj xav hloov kho qhov tau txais ntawm qhov programmable nce lub suab nrov ntawm ADC - koj yuav tsum sau ib qho tshiab byte rau hauv kev teeb tsa sau npe siv:
Wire.beginTransmission (tshaj tawm 1110); Wire.write (teeb tsa byte); Wire.endTransmission ();
ua ntej thov cov ntaub ntawv ADC. Qhov no yuav yog 0x8D, 0x8E lossis 0x8F kom tau txais txiaj ntsig ntawm 2, 4 thiab 8 feem - thiab siv 0x8C los rov pib dua ADS1110 rov qab rau lub neej ntawd.
Kauj Ruam 6: Hom ADC txawv
Hauv hom no koj tuaj yeem nyeem qhov sib txawv ntawm ob qhov hluav taws xob uas txhua lub caij nplooj zeeg nruab nrab ntawm xoom thiab 5 V. Cov piv txwv piv txwv yog qhov yooj yim (los ntawm cov ntaub ntawv).
Peb yuav tsum nco ntsoov ntawm no (thiab hauv cov ntaub ntawv) tias ADS1110 tsis tuaj yeem lees txais qhov tsis zoo ntawm ib qho ntawm cov tswv yim. Koj tuaj yeem siv cov duab kos yav dhau los rau tib qhov txiaj ntsig- thiab qhov tshwm sim qhov hluav taws xob yuav yog tus nqi ntawm Vin- rho tawm los ntawm Vin+. Piv txwv li, yog tias koj muaj 2 V ntawm Vin+ thiab 1 V ntawm Vin- qhov tshwm sim qhov hluav taws xob yuav yog 1 V (nrog rau qhov nce mus rau 1).
Ib zaug ntxiv peb vam tias koj pom qhov kev txaus siab no, thiab tej zaum yuav muaj txiaj ntsig. Cov ntawv tshaj tawm no tau coj tuaj rau koj los ntawm pmdway.com - txhua yam rau cov kws tsim khoom thiab cov khoom siv hluav taws xob, nrog kev xa khoom dawb thoob ntiaj teb.
Pom zoo:
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
Yuav Tsim Li Cas thiab Ntxig Ib Lub Rooj Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: 11 Cov Kauj Ruam
Yuav Tsim Li Cas thiab Ntxig Cov Lus Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: Koj puas tau muaj cov ntaub ntawv ntau uas koj ua haujlwm nrog thiab xav rau koj tus kheej … " Kuv yuav ua li cas ntawm cov ntaub ntawv no saib zoo dua thiab nkag siab yooj yim dua? " Yog tias yog, tom qab ntawd lub rooj hauv Microsoft Office Word 2007 yuav yog koj cov lus teb
Nkag Mus Cov Ntaub Ntawv thiab Npaj Cov Duab Online Siv NodeMCU, MySQL, PHP thiab Chartjs.org: 4 Cov Kauj Ruam
Nkag Mus Cov Ntaub Ntawv thiab Npaj Cov Duab Online Siv NodeMCU, MySQL, PHP thiab Chartjs.org: Cov lus qhia no piav qhia yuav ua li cas peb tuaj yeem siv Node MCU pawg thawj coj los sau cov ntaub ntawv los ntawm ntau lub ntsuas, xa cov ntaub ntawv no mus rau tus tswv PHP cov ntaub ntawv uas tom qab ntawd ntxiv cov ntaub ntawv rau MySQL database. Cov ntaub ntawv tuaj yeem pom online hauv kab ntawv, siv chart.js.A ba
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau
Kaw Cov Suab rau Yeeb Yaj Kiab thiab Animations: Ob peb Cov Lus Qhia Ceev thiab Cov Lus Qhia: 8 Kauj Ruam
Kaw Cov Suab rau Yeeb Yaj Kiab thiab Animations: Ob peb Cov Lus Qhia Ceev thiab Ua Ntej: Yog tias koj yog tus kws kos duab, lossis tsuas yog menyuam yaus uas nyiam ua qee zaum ua cov yeeb yaj kiab rau youtube, tej zaum koj yuav muaj ob peb qhov teeb meem nrog kaw lub suab. Tsis muaj teeb meem li cas visually zoo cov vis dis aus lossis cov animation yuav yog, yog tias cov neeg saib nws tuaj yeem