Cov txheej txheem:
- Kauj Ruam 1: Qhov Teeb Meem Teeb Tsawg
- Kauj Ruam 2: Ntxiv OLED
- Kauj Ruam 3: Kev Tsim Kho Yav Tom Ntej
Video: Teeb liab Generator AD9833: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Lub tshuab hluav taws xob teeb liab yog ib qho tseem ceeb heev ntawm cov iav ntsuas. Qhov no siv tus qauv AD9833 thiab Arduino Nano - qhov ntawd yog, tsis yog PCB. Koj tuaj yeem xaiv qhov ntxiv OLED zaub. AD9833 tuaj yeem hloov pauv sine, daim duab peb sab thiab cov duab plaub fab ntawm 0.1 Hz txog 12.5 MHz - software hauv txoj haujlwm no txwv rau 1Hz txog 100kHz.
Muaj lwm Cov Lus Qhia uas siv Arduino thiab AD9833, ntawm no thiab ntawm no. Qhov no yooj yim dua thiab tuaj yeem siv ua lub tshuab hluav taws xob. Cov tshuab hluav taws xob cheb pab ntsuas cov lus teb ntawm cov ntxaij lim dej, lub tshuab hluav taws xob thiab lwm yam. Tsis zoo li lwm qhov Kev Qhia Qhia, qhov no tsis suav nrog lub suab nrov lossis kev tswj qhov dav tab sis koj tuaj yeem ntxiv lawv yog tias koj xav tau.
Kauj Ruam 1: Qhov Teeb Meem Teeb Tsawg
Rau qhov yooj yim tshaj plaws Lub Tshuab Hluav Taws Xob, koj tsuas yog siv lub tshuab AD9833 mus rau sab nraum qab ntawm Arduino Nano. Tsis xav tau PCB.
AD9833 tus qauv kuv tau xaiv zoo ib yam rau qhov no. Kuv tsis tau hais tias yog tus muab khoom zoo tshaj lossis pheej yig tshaj tab sis koj yuav tsum yuav ib qho uas zoo li daim duab ntawd (lossis daim duab saum toj no).
Cov kev sib txuas ntawm cov modules yog:
- thaj chaw txuas ua ke
- D2 = FSync
- D3 = TxK
- D4 = Cov ntaub ntawv
- D6 = Vcc ntawm AD9833
AD9833 yog siv los ntawm cov ntaub ntawv tus pin D6 ntawm Arduino - Arduino tuaj yeem muab cov khoom txaus tam sim no. Kuv tau ntxiv 100n decoupling capacitor vim tias kuv xav tias kuv "yuav tsum" rau tab sis kuv tsis tuaj yeem pom qhov sib txawv - twb muaj lub tshuab txiav txiav txiav tawm ntawm AD9833 pawg thawj coj saib.
Yog tias koj tau zoo nkauj, koj yuav txhawj xeeb txog "sib piv hauv av" vs "digital ground" tab sis yog tias koj tab tom zoo nkauj, koj yuav siv ntau dua £ 4.
Qhov yooj yim tshaj plaws Cov Hluav Taws Xob Hluav Taws Xob tau tswj hwm thiab siv hluav taws xob dhau USB ua los ntawm lub PC. USB ua raws li qhov chaw nres nkoj ua haujlwm ntawm 115200bps (8-ntsis, tsis muaj qhov sib npaug). Cov lus txib yog:
- '0'.. '9': hloov tus lej rau hauv "min" zaus array
- 'S': teeb tsa AD9833 zaus thiab tsim hluav taws xob sine
- 'T': teeb tsa zaus thiab tsim daim duab peb sab
- 'Q': teeb tsa zaus thiab tsim cov duab plaub fab
- 'R': rov pib dua AD9833
- 'M': theej "min" zaus array rau hauv "max" array
- 'G': cheb los ntawm "min" mus rau "max" tshaj 1 thib ob
- 'H': cheb los ntawm "min" mus rau "max" dhau 5 vib nas this
- 'Kuv': cheb los ntawm "min" mus rau "max" tshaj 20 vib nas this
Qhov program Arduino muaj ob 6 tus cim "min" thiab "max. Yog tias koj xa tus lej tom qab nws tau hloov mus rau" min "array. longint zaus thiab xa mus rau AD9833. Yog li xa txoj hlua
00 25 00 Nws
yuav teeb tsa AD9833 cov zis mus rau 2500Hz sine wave. Koj yuav tsum ib txwm xa tag nrho 6 tus lej. Qhov tsawg kawg nkaus zaus yog 000001 thiab qhov siab tshaj plaws yog 999999.
Yog tias koj xa 'M' ces qhov "min" array tau theej rau hauv "max" array. Yog tias koj xa tus 'H' tom qab ntawd AD9833 rov ua dua ib zaug zuj zus zuj zus li 5 vib nas this. Nws pib ntawm "min" zaus thiab 5 vib nas this tom qab yog "max" zaus. Yog li
020000M000100SH
sweeps los ntawm 100Hz txog 20kHz. Qhov hloov pauv zaus yog logarithmic yog li tom qab 1 vib nas this zaus yuav yog 288Hz, tom qab 2 vib nas this 833Hz tom qab ntawd 2402, 6931 thiab 20000. Qhov hloov pauv txhua txhua milliSecond.
Lub voj nres thaum Arduino tau txais lwm tus cim yog li ceev faj tsis txhob xa cov lus txib tom qab nqa tsheb rov qab lossis kab noj. Tus cim ntxiv ntawd yuav xaus lub voj. Yog tias koj siv Serial Monitor, muaj lub npov nyob hauv qab txoj cai uas yuav hais piv txwv li "Ob NL & CR" uas (Kuv xav tias) xa cov cim tom qab koj hais kom ua. Teeb nws rau "Tsis muaj kab xaus".
Koj tuaj yeem rub tawm Windows EXE program hauv qab no uas yuav xa cov lus txib xav tau lossis koj tuaj yeem sau koj tus kheej. Arduino INO cov ntaub ntawv tseem nyob ntawm no.
Kauj Ruam 2: Ntxiv OLED
Yog tias koj ntxiv OLED thiab ob lub khawm, lub tshuab hluav taws xob tuaj yeem ua haujlwm ib leeg yam tsis muaj PC.
Cov ntawm koj uas tau nyeem kuv cov oscilloscope Qhia paub yuav paub qhov zoo sib xws. AD9833 tus qauv tuaj yeem muab ntxiv rau kuv oscilloscope los tsim "Oscilloscope thiab Lub Cim Hluav Taws Xob hauv Lub Matchbox".
Cov zaub yog 1.3 OLED khiav ntawm 3.3V uas yog tswj los ntawm SH1106 nti ntawm I2C npav.
Tshawb nrhiav eBay rau 1.3 "OLED. Kuv tsis xav kom tus neeg muag khoom tshwj xeeb raws li txuas mus sai sai.. (Qee qhov pom zoo li muaj tus pin nyob rau hauv qhov kev txiav txim sib txawv. Txheeb xyuas lawv. Lub npe raug rau lub moos ntawm I2C yog "SCL" tab sis ntawm eBay cov laug cam tuaj yeem sau lo lus "SCK" zoo li kuv ib qho hauv daim duab.)
Cov lus piav qhia ntau ntxiv ntawm lub tsev qiv ntawv OLED nyob hauv kuv oscilloscope Qhia hauv Kauj Ruam 8. Koj yuav tsum rub tawm thiab teeb tsa lub tsev qiv ntawv tsav tsheb SimpleSH1106.zip uas yog hauv Kauj Ruam 8. (Kuv tsis xav muab lwm daim ntawv luam ntawm no thiab yuav tsum khaws ob daim ntawv theej..)
Cov ntaub ntawv INO tuaj yeem rub tawm hauv qab no. Tus lej tus lej siv rau OLED tau tshaj tawm nyob ib ncig ntawm kab 70. Yog tias koj tau tsim kuv li "Oscilloscope thiab Lub Cim Hluav Taws Xob hauv Cov Matchbox" thiab xav sim cov ntawv INO no nrog nws, lwm tus lej lej tau qhib ntawm #define.
Kuv tau qhia cov kab teeb tsa rau kab hluav taws xob. Muaj ob daim kab xev - ib qho rau Nano thiab AD9833 thiab ib qho rau cov zaub. Lawv yuav tsum tsim cov qhaub cij. Cov laug cam tau qhia los ntawm sab tivthaiv. Cov xov hlau zoo hloov tau yooj yim koom nrog ob lub rooj tsavxwm. Txuas cov laug cam ua ke nrog cov khoom muag sawv ntsug. Hauv kuv daim duab, cov tooj liab ntawm daim kab xev tau pom hauv cyan. Cov kab liab yog cov xov hlau txuas rau ntawm kab txaij lossis cov xov hlau hloov tau yooj yim koom nrog cov laug cam ua ke. Kuv tsis tau qhia lub zog thiab "teeb liab" coj.
AD9833 tus qauv tau muab muag rau ntawm sab tooj liab ntawm kab txaij - ntawm sab nraud los ntawm Nano. Cov kab laug sab laug rau ntawm daim kab xev tooj liab ces haum rau AD9833 rau lawv thiab muab tshuaj txhuam rau.
Cov zaub qhia pom ib qho zaus lossis "min" thiab "max" zaus.
Muaj ob lub khawm: khawm "Kab rov tav" los xaiv tus lej ntawm cov zaus thiab "Vertical" khawm kom hloov tus lej ntawd.
Kuv siv lub tshuab hluav taws xob teeb liab los ntawm Circuit Court Kuv tab tom txhim kho - Kuv ib txwm muaj 5V muaj nyob ntawm kuv lub chaw ua haujlwm.
Kauj Ruam 3: Kev Tsim Kho Yav Tom Ntej
Nws puas tuaj yeem siv roj teeb? Yog, tsuas yog ntxiv 9V PP3 txuas nrog RAW tus pin ntawm Nano. Feem ntau nws siv 20mA.
Nws puas tuaj yeem siv hluav taws xob ib leeg ntawm tes? Kuv tsis pom vim li cas tsis. Koj yuav tsum txuas OLED Vdd thiab nws cov rub tawm mus rau 3.7V roj teeb (Kuv tsis ntseeg yog tias 3.3V cov zis ntawm Arduino yuav ua haujlwm tau zoo).
Lub tshuab hluav taws xob cheb yog qhov muaj txiaj ntsig ntau dua thaum ntsuas qhov ntsuas cov lus teb ntawm lub lim yog tias koj tuaj yeem teeb duab qhov dav thiab qhov zaus. Ntsuas qhov dav ntawm lub teeb liab yog qhov nyuaj - koj yuav tsum pauv pauv qhov lwj ntawm koj lub hnab ntawv ntes vs ripple rau qis zaus thiab lub sijhawm teb rau ntau zaus. Thaum tsim koj lub ntsuas hluav taws xob loj, koj tuaj yeem pub nws cov zis rau hauv ADC ntawm Arduino ntawm "Simplest Signal Generator" ces xa qhov tshwm sim, nrog rau qhov tam sim no mus rau PC.
Nplooj ntawv no yog lub hauv paus pib muaj txiaj ntsig lossis tshawb nrhiav Google rau "lub hnab ntawv ntes" lossis "lub ncov ntes". Hauv qhov kev qhia pom saum toj no, koj yuav teeb tsa lub teeb liab ntau zaus, tos kom nws ruaj khov, teeb tsa Arduino A0 tus pin kom tso tawm digital qis, tos kom tso tawm C, teeb A0 rau kev tawm tswv yim, tos, tom qab ntawd ntsuas nrog ADC. Qhia rau kuv paub tias koj mus li cas.
Pom zoo:
RF Teeb liab Generator 100 KHz-600 MHZ ntawm DDS AD9910 Arduino Shield: 5 Kauj Ruam
RF Lub Teeb Hluav Taws Xob 100 KHz-600 MHZ ntawm DDS AD9910 Arduino Shield: Yuav ua li cas thiaj tsis muaj suab nrov, raug siab, ruaj khov RF generator (nrog AM, FM Modulation) ntawm Arduino
Kev daws teeb meem siab PWM teeb liab rau RC Servos Nrog STM32 Cov Khoom Siv: 3 Kauj Ruam
Kev daws teeb meem siab PWM Cov Cim rau RC Servos Nrog STM32 Cov Khoom Siv: Tam sim no, Kuv tab tom tsim RC xa khoom/txais raws li SX1280 RF nti. Ib lub hom phiaj rau txoj haujlwm yog tias kuv xav tau 12 ntsis kev pabcuam servo daws teeb meem los ntawm cov pas nrig tawm mus rau servos. Ib nrab vim tias cov digital servos niaj hnub muaj 12 ntsis reso
RF Teeb liab Generator: 8 Kauj Ruam (nrog Duab)
RF Lub Teeb Hluav Taws Xob: Lub tshuab hluav taws xob teeb liab RF yog qhov yuav tsum muaj cuab yeej thaum ua si nrog cov txais xov tooj cua. Nws yog siv los kho cov kab hluav taws xob sib txuas thiab kho qhov nce ntawm theem sib txawv RF. Cov txiaj ntsig zoo heev ntawm RF Lub Teeb Hluav Taws Xob yog nws lub peev xwm hloov kho. Yog tias nws
RGB LED Teeb Liab (rau Hmo Hmo Kev Yees Duab thiab Lub Teeb): 4 Kauj Ruam (nrog Duab)
RGB LED Lub Teeb Liab (rau Hmo Sijhawm Koob Yees Duab thiab Freezelight): RGB LED teeb duab lo yog dab tsi? Yog tias koj nyiam kev yees duab thiab tshwj xeeb tshaj yog kev yees duab thaum hmo ntuj, tom qab ntawd kuv zoo nkauj heev, koj twb paub tias qhov no yog dab tsi! Yog tias tsis yog, Kuv tuaj yeem hais tias nws yog lub cuab yeej txaus txaus uas tuaj yeem pab koj tsim qhov zoo kawg
Tsheb kauj vab teeb liab teeb: 10 Kauj Ruam (nrog Duab)
Tsheb kauj vab teeb lub teeb: Lub hom phiaj ntawm txoj haujlwm no yog tsim kom muaj lub teeb pom kev zoo ntawm lub hnab looj tes tsheb kauj vab thiab cov ntsiab lus nyob rau hauv kev taw qhia ntawm lub hom phiaj tig, txhawm rau kom pom kev thaum hmo ntuj. Nws yuav tsum yog lub teeb yuag, siv tau yooj yim, thiab koom ua ke nrog cov lus tsa suab uas twb muaj lawm rau kos npe