Cov txheej txheem:
- Kauj ruam 1: Teeb Kho Vajtse
- Kauj Ruam 2: Kev Txhim Kho Software
- Kauj Ruam 3: Simulation
- Kauj ruam 4: Code
Video: Tone Generator "Jimikky Kammal" Siv Arduino Pro Mini: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Nov yog lub suab tsim hluav taws xob yooj yim uas siv Arduino Pro Mini. Ib feem ntawm super hit nkauj "Jimikky Kammal" ntawm zaj yeeb yaj kiab "Velipadinte Pusthakam" tau tsim nyob rau hauv monotonic.
Cov suab paj nruas sau tau tshwm sim zoo li du thiab ntxig rau sinusoidal nthwv dej. Hauv txoj haujlwm no, tsis txhob siv lub suab sine du, peb yuav tsim lub suab nrog cov duab plaub fab. Square tsis tsim cov suab tab sis nws yog nkig thiab xim hlau ntau dua li ib txwm sine yoj. Cov suab paj nruag tuaj yeem tsim los ntawm kev tsim zaus. Txhua zaus muaj lub suab txawv. Ntawm no Arduino tau siv los tsim qhov kev tsis txaus ntseeg no.
Kauj ruam 1: Teeb Kho Vajtse
Nws yog ib qho yooj yim heev rau teeb kho vajtse. Txhawm rau tsim txoj haujlwm no peb xav tau
- Arduino Pro Mini
- Hais lus
- FTDI USB rau Serial Adapter (rau rub tawm Txoj Haujlwm rau Arduino Pro Mini)
Interface FTDI USB rau Serial adapter rau Arduino Pro Mini rau Programming raws li pom hauv daim duab kos. Txuas ib tus pin ntawm tus hais lus rau tus lej digital 11 (koj tuaj yeem hloov tus lej tus lej hauv Txoj Haujlwm) ntawm Arduino Pro Mini thiab Lwm tus rau hauv av.
Hauv qhov kev sib tham no, peb tsis ntxiv ib qho Circuit Court amplifier, yog li lub ntim yuav qis heev. Koj tuaj yeem ntxiv txhua lub suab hais lus hauv Circuit Court yog li, koj yuav tau txais lub suab ntau rau qhov tso tawm lossis koj tuaj yeem siv PC hais lus muaj lub ntim tswj tau.
Kauj Ruam 2: Kev Txhim Kho Software
Cov ntawv sau nkauj tuaj yeem tsim los ntawm kev tsim kev sib hloov hauv Arduino. Zaus ntawm qhov oscillation yog lub suab ntawm lub suab nrawm ntawm cov suab paj nruag sau ua si Beats yog lub sijhawm ntawm txhua qhov qhib ua si. Yog li, peb yuav tsum ua lub suab meej, ntaus, nrawm rau txhua qhov cim suab paj nruag.
Hauv txoj haujlwm no, peb tsis tsim txhua zaus rau txhua lub suab. Tsuas yog lub suab xav tau rau lub suab paj nruag "Jimikky Kammal" ntxiv.
impacttechnolabz.com/fd1_jk.html
Peb yuav tsum hloov pauv cov zaus no mus rau lub sijhawm kom Arduino yuav tau txais lub sijhawm qhib thiab OFF tus lej digital. Kev suav ntawm cov tones tau ua tom qab kev ua lej:
timeHigh = 1 / (2 * toneFrequency) = sijhawm / 2
xws li:
Txhawm rau tsim 100 Hz oscillations, i.e. Sijhawm Sijhawm = 1/100 S = 0.01 S = 10000 uS
Yog li peb yuav tsum ua tus pin HIGH rau 5000 uS thiab LOW rau 5000 uS
xws li timeHigh = 1/(2*100)
= 0.005 TZS
= 5000 TZS
Download Full Code
Kauj Ruam 3: Simulation
Peb tau tsim kev sim sim nrog kev pab ntawm Proteus Proffessional software teeb tsa hauv Windows PC, yog li lub suab tso tawm tuaj yeem txheeb xyuas hauv PC ntawm daim npav suab. Koj yuav tsum tau qhia meej ntxiv Arduino Library rau Proteus.
Kauj ruam 4: Code
Download Full Code
Pom zoo:
Lub Tone Generator Yooj Yim: 7 Kauj Ruam (nrog Duab)
Ib Lub Tone Generator Yooj Yim: Arduino Tone Generator yog txheej ntawm cov hloov pauv sib koom ua ke dav dav rau GND thaum cov pins txuas tau txuas nrog 2, 3, 4, 5, 6, 7, 8, thiab 9 Arduino digital pins thiab nrog tus hais lus kuj teeb tsa nruab nrab ntawm GND thiab tus lej digital 11 los ntawm Arduino Uno
Generator - DC Generator Siv Reed Switch: 3 Kauj Ruam
Generator - DC Generator Siv Reed Hloov: Lub tshuab hluav taws xob yooj yim Dc Lub tshuab hluav taws xob tam sim no (DC) yog lub tshuab hluav taws xob uas hloov lub zog hluav taws xob mus rau hluav taws xob tam sim no. hloov
Arduino Synth / Tone Generator: 5 Cov Kauj Ruam
Arduino Synth / Tone Generator: Qhov no yog Synth / Tone Generator uas siv Tone hais kom ua uas yog ib txwm muaj rau Arduino. Nws muaj 12 tus yuam sij tus kheej uas tuaj yeem teeb tsa los ua si txhua zaus ntawm cov xwm txheej yoj. Nws muaj peev xwm nce thiab nqis octaves nrog lub pob. Nws tseem muaj cov
Arduino Tone Generator Tsis Muaj Lub Tsev Qiv Ntawv lossis Cov Haujlwm Ua Haujlwm (Nrog cuam tshuam): 10 Cov Kauj Ruam
Arduino Tone Generator Tsis Muaj Lub Tsev Qiv Ntawv lossis Cov Haujlwm Ua Haujlwm (Nrog cuam tshuam): Qhov no tsis yog ib yam uas kuv ib txwm ua qhia rau, Kuv nyiam kuv cov haujlwm hlau, tab sis raws li kuv yog cov tub ntxhais kawm hluav taws xob engineering thiab yuav tsum tau kawm ib chav ntawm microcontrollers ( Embedded Systems Design), Kuv xav tias kuv yuav ua tus qhia rau ntawm ib qho ntawm kuv li
HC - 06 (Slave Module) Hloov "Npe" Tsis Siv "Saib Serial Arduino" tias "Ua Haujlwm Yooj Yim": Txoj Kev Tsis Txaus!: 3 Cov Kauj Ruam
HC - 06 (Slave Module) Hloov "Npe" Tsis Siv "Saib Serial Arduino" … tias "Ua Haujlwm Yooj Yim": Txoj Kev Tsis Txaus!: Tom qab " Ntev Ntev " sim Hloov Lub Npe mus rau HC - 06 (qhev Module), siv " serial saib ntawm Arduino, tsis muaj " Ua tiav ", Kuv pom lwm txoj hauv kev yooj yim dua thiab koom nrog tam sim no! Muaj kev lom zem phooj ywg