Cov txheej txheem:

Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Nta Zoo: 10 Kauj Ruam (nrog Duab)
Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Nta Zoo: 10 Kauj Ruam (nrog Duab)

Video: Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Nta Zoo: 10 Kauj Ruam (nrog Duab)

Video: Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Nta Zoo: 10 Kauj Ruam (nrog Duab)
Video: Best Oscilloscope In 2023 - Top 10 New Oscilloscopes Review 2024, Kaum ib hlis
Anonim
Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Cov Ntais Zoo
Txhim kho DIY Mini DSO rau Oscilloscope Tiag Nrog Cov Ntais Zoo

Lub sijhawm kawg kuv tau qhia yuav ua li cas thiaj ua Mini DSO nrog MCU.

Txhawm rau paub yuav tsim nws ib qib zuj zus, thov mus saib kuv cov lus qhia yav dhau los:

www.instructables.com/id/Make-Your-Own-Osc…

Txij li ntau tus neeg txaus siab rau txoj haujlwm no, Kuv tau siv qee lub sijhawm txhim kho nws tag nrho. Tom qab kho dua tshiab, Mini DSO muaj zog dua.

Kev qhia tshwj xeeb:

  • MCU: STC8A8K64S4A12 @27MHz Tau txais los ntawm AliExpress
  • Zaub: 0.96 "OLED nrog 128x64 daws teeb meem Tau txais los ntawm AliExpress
  • Xws li: Ib tus EC11 Encoder Tau txais nws los ntawm AliExpress
  • Cov tswv yim: Tib Channel
  • Sec/div: 500ms, 200ms, 100ms, 50ms, 20ms, 10ms, 5ms, 2ms, 1ms, 500us, 200us, 100us 100us tsuas yog muaj nyob rau hauv Auto Trigger Mode
  • Voltage Ntau: 0-30V
  • Kev Ntsuas Tus Qauv: 250kHz @100us/div

Tshiab nta:

  1. Qhia zaus ntawm kev yoj yoj
  2. Customize qib theem
  3. Pib, Ib txwm thiab Ib Hom Ua Rau
  4. Scroll waveform raws kab rov tav lossis ntsug
  5. Kho OLED qhov ci ci hauv qhov chaw

Kauj ruam 1: Saib Video

Image
Image

Hauv daim vis dis aus no, kuv yuav qhia koj qhov kev hloov pauv, kev ua haujlwm thiab kev ua haujlwm txog qhov tshiab Mini DSO.

Kauj Ruam 2: Npaj Koj Qhov

Scheme thiab Circuit!
Scheme thiab Circuit!

Peb yuav tsum ntxiv qhov ntsuas rau cov haujlwm tshiab.

Cov Khoom Siv:

  • LED x 1 Tau txais los ntawm AliExpress
  • Resistor 5k x 1 Tau nws los ntawm AliExpress

Kauj ruam 3: Scheme thiab Circuit

Scheme thiab Circuit!
Scheme thiab Circuit!
Scheme thiab Circuit!
Scheme thiab Circuit!
Scheme thiab Circuit!
Scheme thiab Circuit!

Cov kev hloov pauv hauv Circuit Court tsuas yog ntxiv LED ua qhov taw qhia.

Kuv yuav qhia koj siv qhov ntsuas tom qab.

Kev tiv thaiv ntawm Circuit: zaum kawg kuv tau ua rooj plaub nrog ua npuas ncauj. Lub npuas tuaj yeem tsim hluav taws xob zoo li qub. Qhov teeb meem no yuav tsum tau them sai sai. Lub sijhawm no, Kuv siv daim kab xev ntsuas kub kom tiv thaiv.

Kauj ruam 4: Rub tawm Txoj Cai

Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!

Rub lub pob hauv qab no. Muaj qhov chaws thiab suav ua cov ntaub ntawv hex.

Tsis tas li, muaj nyob ntawm GitHub:

Yog tias koj tsis xav nyeem cov lej, tsuas yog hlawv lub hex rau hauv MCU.

Siv USB rau TTL downloader thiab STC-ISP software rub tawm cov cai rau MCU.

Txuas TXD, RXD thiab GND.

Rub tawm STC-ISP software ntawm no:

Yog tias lub interface ntawm STC-ISP yog Suav, koj tuaj yeem nyem lub cim sab laug sab saud kom hloov cov lus rau lus Askiv.

Txog qhov teeb tsa kev teeb tsa ntawm STC-ISP thov xa kuv cov vis dis aus dhau los.

Cov lej tau sau rau hauv C. Siv Keil software txhawm rau kho thiab sau nws.

Kauj Ruam 5: Qhia Txog Kev Sib Tham

Taw qhia ntawm Interface!
Taw qhia ntawm Interface!
Taw qhia ntawm Interface!
Taw qhia ntawm Interface!

Parameters hauv Main Interface:

Thib Ob Rau Ib Cheeb Tsam:

"500ms", "200ms", "100ms", "50ms", "20ms", "10ms", "5ms", "2ms", "1ms", "500us", "200us", "100us"

100us tsuas yog muaj nyob hauv Auto Trigger Mode

Voltage Ntau Yam:

Voltage yog 0-30V.

Qib Qib:

Ua kom muaj zog theem.

Ua kom nqes hav:

Ua rau Rising lossis Ntog Ntog.

Hom Hom:

Hom pib, Hom Ib txwm, Hom Ib Leeg.

Raws li txoj cai hauv Interface loj:

'Khiav': Sampling Running.

'Nres': Sampling Nres.

'Ua tsis tiav': Qib Qib dhau ntawm qhov kev hloov pauv hauv Auto Trigger Mode.

'Pib': Pib Voltage Ntau Yam.

Parameters hauv Chaw Sib Txuas:

PMode (Lub Hom Phiaj): Qhia cov duab yoj hauv Vector lossis Dots.

LSB: Sampling Coefficient. Txheeb ntsuas qhov ntsuas qhov ntsuas los ntawm kev kho LSB.

100 zaug ntawm qhov faib hluav taws xob coefficient. xws li resistor rau qhov faib hluav taws xob yog 10k thiab 2k, suav qhov faib hluav taws xob faib coefficient (10+2)/2 = 6. Tau txais LSB = 6 x 100 = 600.

BRT (Brightness): Kho OLED Brightness.

Kauj Ruam 6: Qhia Txog Kev Ua Haujlwm

Taw qhia ntawm Kev Ua Haujlwm!
Taw qhia ntawm Kev Ua Haujlwm!

Txhua txoj haujlwm tau ua tiav los ntawm EC11 Encoder. Cov tswv yim suav nrog ib zaug nyem, ob npaug nias, nias ntev, tig thiab tig thaum nias. Nws zoo li nyuaj me ntsis, tsis txhob txhawj xeeb, muaj cov ntsiab lus hauv qab no. Cov peev txheej ntawm tus encoder no yuav luag tag nrho. Yog tias muaj cov yam ntxwv tshiab, yuav xav tau cov khoom siv ntxiv.

Lub ntsiab sib cuam tshuam - Parameter hom:

  • Ib Nyem Nyem Encoder: Khiav/Nres sampling
  • Ob Nyem Nyem Encoder: Nkag Mus Rau Wave Scroll Mode
  • Ntev Xovxwm Encoder: Nkag Mus Rau Qhov Chaw Sib Tham
  • Rotate Encoder: Kho qhov ntsuas
  • Rotate Encoder Thaum Nias: Hloov ntawm kev xaiv
  • Hloov Pib thiab Phau Ntawv Cuam Tshuam: Tig Encoder clockwise txuas ntxiv kom nkag mus rau ntau yam pib. Rotate Encoder tig rov qab rau hauv phau ntawv ntau.

Lub Ntsiab Lus Sib Tham - Wave Scroll Mode:

  • Ib Nyem Nyem Encoder: Khiav/Nres sampling
  • Ob Nyem Nyem Encoder: Nkag Siab Hom
  • Ntev Xovxwm Encoder: Nkag Mus Rau Qhov Chaw Sib Tham
  • Rotate Encoder: Scroll waveform horizontally (tsuas yog muaj thaum piv txwv nres)
  • Rotate Encoder Thaum Nias: Scroll waveform ntsug (tsuas yog muaj thaum sampling nres)

Chaw Interface:

  • Nyem Nyem Encoder: N/A
  • Ob Nyem Nyem Encoder: N/A
  • Ntev Xov Xwm Encoder: Rov Qab Mus Rau Lub Hauv Paus Loj
  • Rotate Encoder: Kho qhov ntsuas
  • Rotate Encoder Thaum Nias: Hloov ntawm kev xaiv

Kauj Ruam 7: Qhia Txog Kev Ua Haujlwm

Qhia txog Kev Ua Haujlwm!
Qhia txog Kev Ua Haujlwm!
Qhia txog Kev Ua Haujlwm!
Qhia txog Kev Ua Haujlwm!
Qhia txog Kev Ua Haujlwm!
Qhia txog Kev Ua Haujlwm!

Qib Qib:

Txog kev rov ua dua lub teeb liab, qib ntsuas tuaj yeem ua rau nws ruaj khov ntawm cov zaub. Rau ib qho kev txhaj tshuaj ib zaug, qib qib tuaj yeem ntes nws.

Ua kom nqes hav:

Ua kom nqes hav txiav txim siab seb lub ntsiab lus ua rau nce lossis nqis ntog ntawm lub teeb liab.

Hom Hom:

  • Hom Pib: Cheb txuas ntxiv mus. Ib zaug nias lub encoder kom nres lossis khiav sampling. Yog tias ua rau pom, cov duab yoj yuav pom ntawm lub vijtsam thiab txoj haujlwm ua haujlwm yuav muab tso rau hauv nruab nrab ntawm daim duab. Txwv tsis pub, cov yoj yoj yuav txav tsis xwm yeem, thiab 'Ua tsis tau' yuav pom ntawm lub vijtsam.
  • Hom Ib txwm: Thaum ua tiav qhov ua piv txwv ua ntej, koj tuaj yeem nkag mus teeb liab. Yog tias ua rau pom, cov duab yoj pom ntawm lub vijtsam thiab tos rau qhov tshwm sim tshiab. Yog tias tsis muaj qhov tshwm sim tshiab, yuav ua kom muaj cov nthwv dej.
  • Hom Ib Leeg: Thaum ua tiav qhov ua piv txwv ua ntej, koj tuaj yeem nkag mus teeb liab. Yog tias muaj tshwm sim, cov duab yoj tau pom ntawm cov zaub thiab tsum tsis txhob ua piv txwv. Tus neeg siv yuav tsum tau nyem ib zaug Encoder txhawm rau pib ua piv txwv tom ntej.

Rau Hom Ib Leeg thiab Ib Leeg Ib Leeg, nco ntsoov qib ntsuas tau raug kho kom raug, txwv tsis pub yuav tsis muaj cov qauv nthwv dej tshwm rau ntawm lub vijtsam.

Qhov Ntsuas:

Feem ntau, qhov ntsuas ntawm qhov txhais tau tias kev piv txwv tau ua. Kev siv tseem ceeb dua yog nyob hauv Ib Leeg thiab Ib Leeg Hom Ua Haujlwm, ua ntej nkag mus rau theem pib, yuav tsum tau ua piv txwv ua ntej. Qhov ntsuas yuav tsis nyob rau theem ua ntej ua piv txwv. Peb yuav tsum tsis txhob muab lub teeb liab nkag mus kom txog thaum qhov ntsuas pom los. Lub sijhawm teev sijhawm ntev dua, lub sijhawm tos ntev dua ntawm kev kuaj ua ntej.

Txuag Chaw:

Thaum tawm chaw teeb tsa interface, txhua qhov tsis nyob hauv kev teeb tsa thiab lub ntsiab interface yuav raug cawm hauv EEPROM.

Kauj Ruam 8: Xeem Nws

Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!
Kuaj Nws!

Kuaj 1:

Kev ntes cov nthwv dej thaum lub sijhawm hloov pauv lub zog siv hluav taws xob rau.

Cov nthwv dej ntawm Mini DSO zoo ib yam li ntawm DS1052E. Kev hloov pauv me me hauv cov duab yoj yuav pom meej. Qhov tseeb ntawm qhov hluav taws xob yog qhov tsim nyog.

Xeem 2:

Nqa cov ntawv yoj hauv qhov ntsuas ntsuas hluav taws xob thiab ntsuas tam sim no.

The Trigger Level is only 0.1V thiab sec/div is 200us. Rau qhov teeb meem me me tuaj yeem ua rau, qhov ntawd zoo heev.

Kauj Ruam 9: Txwv thiab Teeb Meem

Txwv thiab Teeb Meem!
Txwv thiab Teeb Meem!
Txwv thiab Teeb Meem!
Txwv thiab Teeb Meem!

1. Zoo ib yam li thawj zaug, nws tsis tuaj yeem ntsuas qhov tsis zoo. Cov duab yoj yuav nres ntawm 0V.

2. Yog tias nkag mus PWM teeb liab ntawm kev ntsuas nrawm, qhov ua piv txwv yuav dhia mus rau qhov siab tshaj plaws. Kuv nug STC engineer txog qhov teeb meem no, tab sis tsis tau txais lus piav qhia meej. Qhov teeb meem dhia no tseem cuam tshuam txog qhov zoo ntawm txhua MCU. Ib daim ntawm kuv txhais tes yog qhov hnyav heev, thiab lwm daim yog qhov zoo dua. Tab sis txhua tus ntawm lawv muaj teeb meem piv txwv piv txwv.

Kauj Ruam 10: Npaj Ntxiv

Txoj Kev Npaj Ntxiv!
Txoj Kev Npaj Ntxiv!

Txij li thaum muaj qhov piv txwv qhov teeb meem dhia hauv STC8A8K, thiab nws tsis nrov li uas nyuaj nrhiav. Kuv txiav txim siab hloov qhov haujlwm no mus rau STM32. Lub caij no, kuv yuav sim nrhiav txoj hauv kev yooj yim los ntsuas qhov tsis zoo.

Yog tias koj muaj lus qhia lossis xav tau txog txoj haujlwm no, thov ua siab zoo qhia kuv.

Vam tias koj nyiam.

Zoo siab los tshuaj xyuas kuv li YouTube Channel:

Pom zoo: