Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Siv
- Kauj Ruam 2: Pine Siv
- Kauj Ruam 3: ESP32 Code - Wave Matrix
- Kauj Ruam 4: Tus Kws Tshaj Lij Ua Haujlwm
- Kauj Ruam 5: Hantek DSO 4102C 100mhz Oscilloscope Nrog Kev Txiav Txim Siab Ua Haujlwm Generator
- Kauj Ruam 6: Tau Txais Cov Oscilloscope:
- Kauj ruam 7: Rub tawm Cov Ntaub Ntawv:
Video: ESP32: Koj Puas Paub DAC Yog Dab Tsi?: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hnub no, peb yuav tham txog ob qhov teeb meem. Thawj qhov yog DAC (Digital-to-Analog Converter). Kuv xav tias nws yog qhov tseem ceeb, vim tias dhau los ntawm nws, piv txwv li, peb ua lub suab tso tawm hauv ESP32. Qhov teeb meem thib ob uas peb yuav hais txog niaj hnub no yog oscilloscope. Peb mam li suav sau cov lej DAC yooj yim hauv ESP32, thiab pom kev nrog oscilloscope cov teeb liab zoo sib xws tsim los ntawm lub microcontroller.
Lub rooj sib txoos niaj hnub no yooj yim heev, yog li ntawd kuv thiaj li tsis kaw qhov ua qauv qhia. Nws yooj yim txaus kom nkag siab nrog tsuas yog cov duab tso rau ntawm no. Yeej, peb muaj ESP32 uas, los ntawm txoj haujlwm, yuav tsim ntau hom kev hloov pauv.
Peb siv GPIO25 raws li kev tso tawm, thiab GND raws li kev siv.
Kauj Ruam 1: Cov Khoom Siv
• ESP32
• Oscilloscope
• Protoboard (yeem)
• Cov dhia
Kauj Ruam 2: Pine Siv
Hauv qhov piv txwv no, peb yuav siv GPIO 25, uas sib haum rau DAC_1.
Lwm qhov piv txwv uas tuaj yeem siv tau yog GPIO 26, uas sib haum rau DAC_2.
Kauj Ruam 3: ESP32 Code - Wave Matrix
Peb muaj qhov chaws uas yuav tsim plaub hom kev hloov pauv.
Ua ntej tshaj plaws, peb sib sau ua ke ob daim duab.
Ntawm no, kuv hais qhia qhov zoo ntawm lub sine thiab daim duab peb sab voos.
Hauv cov duab, kuv tso saib cov duab ntawm cov hniav pom thiab lub xwmfab.
Raws li rau qhov chaws, tsis muaj qhov yuav tsum tau ua hauv Teeb. Hauv Loop, Kuv txiav txim siab txoj haujlwm matrix sib xws rau hom yoj thiab siv cov piv txwv ib puag ncig. Peb sau cov ntaub ntawv khaws tseg hauv cov lej ntawm tus pin 25. Txheeb xyuas yog tias "i" nyob hauv kab lus kawg ntawm kab ntawv. Yog tias yog, "i" tau rov pib dua thiab peb rov qab mus rau qhov pib.
Kuv xav ua kom pom tseeb tias DAC no sab hauv ESP32 ntawm STM32, uas yog, ntawm cov chips, feem ntau, yog lub peev xwm me. Lawv yog cov siv dav dav. Txhawm rau tsim kom muaj cov nthwv dej ntau, muaj DAC nti nws tus kheej, muab los ntawm Texas lossis Cov Khoom Siv Sib Piv, piv txwv.
teeb tsa tsis muaj dab tsi () {//Serial.begin(115200); } // TESTE SEM POSICIONAMENTO (MAIOR FREQUENCIA) /* void loop () {dacWrite (25, 0xff); // 25 lossis 26 dacWrite (25, 0x00); // 25 ou 26 // delayMicroseconds (10); } */// TESTE COM POSICIONAMENTO (MENOR FREQUENCIA) void loop () {byte wave_type = 0; // Sine // byte wave_type = 1; // Daim duab peb sab // byte wave_type = 2; // Sawtooth // byte wave_type = 3; // Square dacWrite (25, WaveFormTable [wave_type] ); // 25 lossis 26 i ++; yog (i> = Num_Samples) i = 0; }
Siv tus lej:
Kauj Ruam 4: Tus Kws Tshaj Lij Ua Haujlwm
Kuv coj qhov piv txwv ntawm lub tshuab hluav taws xob tshaj lij, tsuas yog muab tswv yim rau koj txog tus nqi ntawm cov cuab yeej no. Nws tuaj yeem siv tau, piv txwv li, txhawm rau sim qhov chaw thiab tsim kev sib tsoo. Peb tuaj yeem txhaj tshuaj hluav taws xob nrov rau hauv STM microcontroller, txheeb xyuas ntau npaum li cas lub suab nrov yuav cuam tshuam lub nti. Cov qauv no tseem muaj lub luag haujlwm tsis siv neeg los tsim hluav taws xob nrov.
Kauj Ruam 5: Hantek DSO 4102C 100mhz Oscilloscope Nrog Kev Txiav Txim Siab Ua Haujlwm Generator
Nov yog cov lus qhia hais txog kev xaiv cov cuab yeej pheej yig dua. Nws raug nqi ib ncig $ 245 ntawm Aliexpress. Kuv nyiam nws, vim tias nws muaj lub tshuab hluav taws xob ua haujlwm, tsis txhob hais tias nws pab txhawb qhov chaw ntawm qhov ua yuam kev hauv Circuit Court.
Kauj Ruam 6: Tau Txais Cov Oscilloscope:
Peb xub ntes nthwv dej hauv daim duab sinusoidal, Daim duab peb sab, Sawtooth, thiab, thaum kawg, Square.
Kauj ruam 7: Rub tawm Cov Ntaub Ntawv:
INO
Pom zoo:
DRC yog dab tsi?: 9 Kauj Ruam
DRC yog dab tsi?: Kev Tsim Txoj Cai Txheeb Xyuas (DRC) yog txheej txheem siv los txheeb xyuas qhov ua yuam kev thiab tsis sib xws xws li kev sib nrug & taug qab qhov dav hauv PCB tsim/teeb tsa. Cov txheej txheem ntawm PCB pawg thawj coj tau tsim los siv software, txhua tus tsim PCB muaj cov cai uas lawv tshaj tawm
Dab tsi yog PSM (Txuag Lub Zog Txuag) hauv LTE Cat.M1?: 3 Cov Kauj Ruam
Dab tsi yog PSM (Kev Txuag Lub Zog) hauv LTE Cat.M1?: LTE Cat.M1 (Cat.M1) yog tus qauv los ntawm 3GPP uas yog Lub Koom Haum Txuj Ci Txuj Ci Thoob Ntiaj Teb thiab tau pab thoob tebchaws los ntawm SKT. Tsis tas li, Cat.M1 yog tus sawv cev LPWAN (Tsawg-Lub Hwjchim Loj Hauv Cheeb Tsam Network) thev naus laus zis thiab tshwj xeeb hauv IoT daim ntawv thov d
Koj Puas Paub Li Cas Koj Cov Tsob Ntoo Xav? [Particle+Ubidots]: 6 Kauj Ruam
Koj Puas Paub Li Cas Koj Cov Tsob Ntoo Xav? [Particle+Ubidots]: Tsis muaj dab tsi yuav hloov kev taug kev thiab tuav av rau koj tus kheej, tab sis kev siv thev naus laus zis niaj hnub no tau ua rau nws tuaj yeem tshuaj xyuas cov av nyob deb thiab taug qab qhov tsis tuaj yeem ua rau kuv qhov kev nkag siab tib neeg. Kev soj ntsuam av zoo li SHT10 tam sim no tsis raug thiab muab
CPU yog Dab Tsi, Nws Ua Dab Tsi, thiab Yuav Ua Li Cas Thiaj Li Kho Nws: 5 Kauj Ruam
CPU yog Dab Tsi, Nws Ua Dab Tsi, thiab Yuav Ua Li Cas Thiaj Teeb Meem: Txhua hnub koj nyob ntawm no cov lus " CPU " los yog "Processor" raug pov tseg, tab sis koj puas paub tiag nws txhais li cas?
Cov Dots Daj Tsis Paub: Puas Yog Koj Lub Tshuab Luam Ntawv Spying rau Koj?: 5 Kauj Ruam (nrog Duab)
Dots Daj Tsis Paub: Puas Yog Koj Lub Tshuab Luam Ntawv Spying rau Koj?: Xav txog tias txhua lub sijhawm koj luam cov ntawv, nws cia li suav nrog tus lej zais uas tuaj yeem siv los txheeb xyuas lub tshuab luam ntawv - thiab, muaj peev xwm, tus neeg siv nws. Suab zoo li ib yam dab tsi los ntawm cov yeeb yaj kiab neeg soj xyuas, txoj cai? Hmoov tsis zoo, qhov xwm txheej