Cov txheej txheem:
- Kauj ruam 1: Txoj kev xav
- Kauj Ruam 2: Cov Khoom Yuav Tsum Tau
- Kauj Ruam 3: Kev Sib Txuas
- Kauj ruam 4: Arduino Code
- Kauj ruam 5: Hwj chim !
Video: Automated Piano: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Kuv xav ua piano uas tuaj yeem ua si tau yooj yim los ntawm kev mloog kuv lub suab nkauj tam sim ntawd. Yog li kuv muab nws sim nrog arduino uno kuv tau dag ib puag ncig. ntawm lub sijhawm thiab kuv txuas ntxiv nrog uno.
Kauj ruam 1: Txoj kev xav
Tus ntaus piano yog ua los ntawm kev sib piv qhov zaus ntawm tus hu nkauj mus rau lub piano.so peb yuav tsum tau coj mus kuaj qhov zaus ntawm tus hu nkauj thiab rov ua nws hauv lub sijhawm tiag tiag. Kuv siv lub zog faib hluav taws xob tawm ntawm lub trimpot vim tias lub suab yog ac thiab arduino tsis tuaj yeem daws cov teeb meem tsis zoo yog li siv qhov hluav taws xob muab los ntawm qhov faib hluav taws xob raws li siv thiab teeb nws ntawm 2.5v. Cov tswv yim tau muab rau ntawm A0 tus pin ntawm arduino. Kuv tom qab ntawd tau npaj cov arduino los tshuaj xyuas thaum qhov hluav taws xob nyob ntawm qib siv uas kuv ntsuas thiab npe nws pib thiab tom qab ntawd ntsuas lub sijhawm sib nrug ntawm qhov txuas txuas mus txuas ntxiv thiab tom qab ntawd suav qhov zaus. qhov sib txawv tau siv los khaws lub suab nrov tam sim ntawd ntawm lub teeb liab kom tshem tawm lub suab nrov uas muaj qhov siab tshaj 15 adc tus nqi lossis 0.0733 volts. Ib qhov txwv tau muab tso rau hauv qhov ntau zaus kom qhov tseem ceeb tsis cuam tshuam zaj nkauj.
Kauj Ruam 2: Cov Khoom Yuav Tsum Tau
1) Arduino Uno lossis sib npaug
2) Passive piezo hluav taws xob buzzer lossis tus hais lus nrog lub tshuab hluav taws xob Circuit Court
3) Siab tsis kam trimpot (nco ntsoov tias tam sim no ntws los ntawm nws ntawm 5v yuav tsum me me hauv ob peb millamps)
4) jumper xov hlau
5) lub thawv ntawv
6) 3.5mm audio jack lossis mic nrog lub tshuab hluav taws xob Circuit Court (Kuv siv kuv lub xov tooj txawb ua lub tshuab hluav taws xob raws li kuv pom kuv tus kheej tub nkeeg los tsim ib qho)
7) Android Xov Tooj (Ua si suab)
8) arduino cable (Rau qhov program nws)
Kauj Ruam 3: Kev Sib Txuas
1) Mount trimpot ntawm lub rooj mov ci thiab muab nws hauv av thiab +5v los ntawm arduino siv cov xov hluav taws xob.
2) Txuas hauv av ntawm 3.5mm nkaus rau tus pin thib peb ntawm trimpot los ua haujlwm raws li kev faib hluav taws xob teeb tsa thiab channel rau A0 tus pin ntawm arduino.
3) Txuas hauv av ntawm buzzer rau arduino av thiab teeb liab rau tus pin 13 ntawm arduino.
Kauj ruam 4: Arduino Code
Nov yog qhov ua tiav
Kuv tau tawm tswv yim tawm qee nqe lus ntawm cov ntawv luam tawm uas siv rau kev sim
uint64_t curtime = 0, ltime = 0; uint32_t freq = 0; uint16_t pib, val, del = 0; bool kawg, curr; tsis muaj teeb tsa teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: ncua (1000); /*Serial.begin(115200); ncua (1000); Serial.println ("system pib");*/ initial = analogRead (A0); yog (analogRead (A0)
void loop () {// muab koj tus lej tseem ceeb ntawm no, kom rov ua dua: val = analogRead (A0); yog (val> = pib) curr = 1; lwm curr = 0; del = (int) val- (int) pib; yog (kawg == 0 && curr == 1) {curtime = micros (); freq = 1000000/(2*(sijhawm-sijhawm)); /*Serial.print(freq, DEC); Serial.print ("nqis"); Serial.println (del);*/ yog (freq> 50 && freq15) suab (13, freq, 500); ncua (100); ltime = micros (); kawg = 1; }
Kauj ruam 5: Hwj chim !
Txuas koj lub xov tooj los ua suab paj nruag thiab yog tias koj xav hu nkauj ces koj tuaj yeem siv txhua lub cuab yeej app uas tuaj yeem rub tawm ntawm play store. Ntau yog qhov txuas
play.google.com/store/apps/details?id=com.pradhyu.alltoolseveryutility&hl=en
Tom qab rub tawm, qhib qhov kev xaiv mike thiab hu nkauj!
Nov yog qhov nws ua haujlwm li cas!
Pom zoo:
Automated ECG Circuit Model: 4 Kauj Ruam
Automated ECG Circuit Model: Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau tsim cov qauv hluav taws xob nrog ntau yam khoom siv uas tuaj yeem ua kom muaj zog txaus thiab lim cov teeb liab ECG nkag. Peb lub Cheebtsam yuav raug ua qauv ib tus zuj zus: ib qho cuab yeej siv suab nrov, lub ntsej muag ua haujlwm lim, thiab
Automated ECG: Kev nthuav dav thiab lim Simulations Siv LTspice: 5 Cov Kauj Ruam
Automated ECG: Kev nthuav dav thiab lim Simulations Siv LTspice: Nov yog daim duab ntawm lub cuab yeej kawg uas koj yuav tsim thiab sib tham tob tob txog txhua feem. Kuj piav qhia txog kev suav rau txhua theem.Qhov duab qhia pom daim duab thaiv rau lub cuab yeej no Cov txheej txheem thiab cov ntaub ntawv: Lub hom phiaj ntawm qhov kev ntsuas no
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
Arduino Piano Piano: 10 Kauj Ruam (nrog Duab)
Arduino Piano Piano: Tshaj ib lub caij ntuj sov kuv tsim cov piano hauv pem teb no. Nws tau ua qauv me ntsis tom qab ntaus piano hauv zaj yeeb yaj kiab "Loj". Kuv siv yuav luag 100 teev tsim qhov no, tab sis kuv kwv yees nws tsuas siv sijhawm 30 teev yog tias kuv yuav rov ua dua. Muaj ntau dua 1
Piano Piano: 9 Kauj Ruam (nrog Duab)
Piano Piano: Kuv tau ua piano hauv pem teb no los ua txoj haujlwm. Peb tau txais kev tshoov siab, ntawm chav kawm, los ntawm cov yeeb yaj kiab BIG - koj paub qhov tshwm sim - qhov twg Tom Hanks thiab Robert Loggia ua si ntawm lub piano loj hauv pem teb ntawm FAO Schwarz. Nws ua rau kuv muaj teeb meem loj, thiab coj mus heev, tau