Cov txheej txheem:

DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz: 3 Kauj Ruam
DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz: 3 Kauj Ruam

Video: DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz: 3 Kauj Ruam

Video: DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz: 3 Kauj Ruam
Video: 50 САМЫХ ИННОВАЦИОННЫХ ЛИЧНЫХ ТРАНСПОРТНЫХ СРЕДСТВ 2021–2022 гг. 2024, Kaum ib hlis
Anonim
DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz
DIY Yooj Yim Arduino Meter Zaus Txog 6.5MHz

Hnub no kuv yuav qhia koj yuav ua li cas kom yooj yim Zaus txee muaj peev xwm ntsuas cov zaus ntawm reactangular, sine lossis daim duab peb sab txog 6.5 MHz

Kauj ruam 1: Kev piav qhia

Image
Image

Cov cuab yeej nthuav tawm hauv cov vis dis aus yog lub ntsuas zaus siv ua Arduino Nano microcontroller. Nws tuaj yeem ntsuas qhov zaus ntawm cov cim nrog duab plaub, sinusoidal thiab daim duab peb sab.

Txoj haujlwm no tau txhawb nqa los ntawm NextPCB. Koj tuaj yeem pab txhawb kuv los ntawm kev txheeb xyuas lawv ntawm ib qho ntawm cov txuas no:

Tsuas yog $ 7 rau SMT xaj:

Txhim khu kev qha Multilayer Boards Chaw tsim tshuaj paus:

PCB Boards 10pcs dawb:

20% tawm - PCB xaj:

Nws qhov ntsuas ntau yog los ntawm ob peb hertz txog 6.5 Megahertz. Peb ntsuas sijhawm sib nrug kuj tseem muaj - 0.1, 1 thiab 10 vib nas this. Yog tias peb ntsuas tsuas yog cov duab plaub, tom qab ntawd tsis tas yuav muaj lub ntsej muag hloov pauv thiab lub teeb liab tau pub ncaj qha rau tus pin 5 los ntawm Arduino. Txoj cai yooj yim heev ua tsaug rau "FreqCount" lub tsev qiv ntawv uas koj tseem tuaj yeem rub tawm hauv qab no. Cov cuab yeej siv tau yooj yim heev thiab suav nrog ntau yam khoom siv:

- Arduino Nano microcontroller

- Hloov lub rooj tsav xwm amplifier

- LCD zaub

- Cov tswv yim teeb liab lub ntsej muag xaiv

- Nkag mus rau JACK

-thiab Lub Sijhawm Hloov Hloov: peb tuaj yeem xaiv peb ntu 0.1 -1 -and 10 vib nas this.

Kauj Ruam 2: Lub Tsev

Tsev
Tsev
Tsev
Tsev

Raws li koj tuaj yeem pom hauv daim vis dis aus, lub ntsuas ntsuas tau zoo heev hauv txhua qhov, thiab peb tseem tuaj yeem ntsuas qhov ntsuas zaus nrog cov txheej txheem yooj yim piav qhia hauv qab no:

Hauv Arduino cov tsev qiv ntawv qiv pom FreqCount lub tsev qiv ntawv, hauv FreqCount.cpp cov ntaub ntawv nrhiav kab: #if txhais (TIMER_USE_TIMER2) && F_CPU == 12000000L ntab raug = count_output * 0.996155; thiab hloov lawv nrog: #if txhais (TIMER_USE_TIMER2) && F_CPU == 16000000L ntab raug = count_output * 1.000000; qhov twg 1.000000 yog koj qhov kev hloov kho, kev kho yuav tsum tau ua los ntawm kev thov 1 MHz rau qhov ntsuas ntawm qhov ntsuas zaus. Tom qab hloov cov ntaub ntawv, xa daim duab tshiab rau Arduino board.

Kauj Ruam 3: Schematic thiab Arduino Code

Schematic thiab Arduino Code
Schematic thiab Arduino Code

Thaum kawg, lub ntsuas ntsuas tau tsim los rau hauv lub thawv yas uas tsim nyog thiab yog lwm yam cuab yeej muaj txiaj ntsig hauv chav kuaj hluav taws xob.

Pom zoo: