Cov txheej txheem:
- Kauj ruam 1: Txuas rau Lub Hwj Chim
- Kauj ruam 2: Txuas mus rau hauv av
- Kauj ruam 3: Lub Buzzer
- Kauj ruam 4: Qhib Buzzer
- Kauj ruam 5: Fais fab Buzzer
- Kauj Ruam 6: Tus Photoresistor
- Kauj Ruam 7: Txuas tus Photoresistor rau Lub Hwj Chim
- Kauj Ruam 8: Hauv av Photoresistor
- Kauj Ruam 9: Kauj Ruam 9: Txuas Tus Kws Tshaj Lij Duab rau Arduino
- Kauj Ruam 10: Kauj Ruam 10: Sau Koj Li Code
Video: Optical Theremin Nrog Arduino Uno: 11 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Ib qho me me yog cov cuab yeej siv hluav taws xob uas ob lub tshuab oscillators muaj suab nrov tswj thaum lub suab paj nruag txhais tes txav txav tswj lub suab.
Hauv Cov Lus Qhia no, peb yuav tsim cov cuab yeej zoo sib xws, uas txhais tes txav txav tswj lub teeb uas lub ntsuas ntsuas tau txais, thiab ntsuas lub teeb tau hloov pauv mus rau hauv lub suab los ntawm lub buzzer.
Qhov koj yuav xav tau:
Arduino microcontroller
Cov qhob cij
10 K Ohm resistor
Jumper xov hlau
1 Piezo Buzzer
Photoresistor
Kauj ruam 1: Txuas rau Lub Hwj Chim
Pib los ntawm kev txuas koj daim ntawv qhia zaub mov kab zoo rau 5V tus pin ntawm Arduino Uno.
Kauj ruam 2: Txuas mus rau hauv av
Tom qab ntawd txuas ib qho ntawm GND pins rau kab tsis zoo ntawm koj Arduino.
Kauj ruam 3: Lub Buzzer
Ntxig koj lub buzzer. Nws yuav muaj ceg ntev dua, lossis me me "+" kos npe rau saum. Khaws taug qab ntawm sab twg ntev dua txhais ceg lossis "+" kos npe rau.
Kauj ruam 4: Qhib Buzzer
Txuas lub luv luv ceg ntawm lub buzzer rau hauv av los ntawm kev xaim hlau hauv tib kab ib yam li cov ceg luv ntawm lub buzzer, thiab hauv kab tsis zoo ntawm lub khob cij.
Kauj ruam 5: Fais fab Buzzer
Ua kom tiav cov xov tooj cua sib txuas los ntawm kev txuas nws mus rau tus pin 12 ntawm Arduino.
Kauj Ruam 6: Tus Photoresistor
Pib tsim lub tshuab hluav taws xob photoresistor los ntawm kev tso lub photoresister kom nws muaj ib txhais ceg ntawm txhua sab ntawm cov channel nqis nruab nrab ntawm lub khob cij.
Kauj Ruam 7: Txuas tus Photoresistor rau Lub Hwj Chim
Siv xaim txuas txuas ib sab ntawm tus kws yees duab mus rau kab zoo ntawm koj lub khob cij uas koj txuas rau 5V ua ntej.
Kauj Ruam 8: Hauv av Photoresistor
Txuas tus photoresistor lwm tus ceg rau hauv av, txuas 10K Ohm resistor rau kab tsis zoo ntawm koj lub khob cij.
Kauj Ruam 9: Kauj Ruam 9: Txuas Tus Kws Tshaj Lij Duab rau Arduino
Peb yuav nyeem qhov kev hloov pauv tam sim no los ntawm tus tiv thaiv los ntawm kev txuas cov xov hlau ntawm lub tshuab hluav taws xob thiab nws cov xaim av, rov qab rau tus pin A0 ntawm Arduino.
Kauj Ruam 10: Kauj Ruam 10: Sau Koj Li Code
int analogPin = A0;
koj noteToPlay;
int suab; tus neeg hais lus = 7;
void teeb tsa () {
Serial.begin (9600);
pinMode (analogPin, INPUT);
}
void voj () {
suab = analogRead (analogPin);
ncua (200);
int ntawv [21] = {65, 73, 82, 87, 98, 110, 123, 131, 147, 165, 175, 196, 220, 247, 262, 294, 330, 349, 392, 440, 494};
noteToPlay = daim ntawv qhia (suab, 0, 1023, 0, 21);
suab nrov (hais lus, sau ntawv [noteToPlay]); ncua (10);
}
Pom zoo:
Tswj DC Tsav Nrog Encoder Optical Sensor Module FC-03: 7 Cov Kauj Ruam
Tswj DC Tsav Nrog Encoder Optical Sensor Module FC-03: Hauv qhov kev qhia no peb yuav kawm paub yuav suav qhov kho qhov muag cuam tshuam cuam tshuam li cas siv DC lub cev muaj zog, OLED zaub thiab Visuino.Watch cov vis dis aus
Ntxiv Arduino-based Optical Tachometer rau CNC Router: 34 Cov Kauj Ruam (nrog Duab)
Ntxiv Arduino-based Optical Tachometer rau CNC Router: Tsim qhov ntsuas qhov pom pom RPM rau koj lub tshuab CNC nrog Arduino Nano, IR LED/IR Photodiode sensor thiab OLED zaub rau tsawg dua $ 30. Kuv tau txais kev tshoov siab los ntawm eletro18 Kev Ntsuas RPM - Kev Siv Lub Tshuab Tachometer Qhia tau thiab xav ntxiv lub tachometer
Optical Rain Sensor: 6 Kauj Ruam (nrog Duab)
Optical Rain Sensor: Ntsuas nag nrog lub laser? Nws ua tau. Ua raws li Cov Lus Qhia no kom ua rau koj tus kheej heev Opical Rain Sensor
Ntxiv Qhov hnyav rau Koj Microsoft Log Mouse Optical 1.1a: 3 Kauj Ruam
Ntxiv Qhov hnyav rau Koj Microsoft Log Mouse Optical 1.1a: Zoo, cov lus qhia no yog khoom plig rau cov neeg uas tsis nyiam cov pheej yig zoo li nas. Kuv tau ua qhov no thaum tsis ntev los no nas wireless kuv tau qiv los ntawm ib tus phooj ywg (Qhov zoo logitech media center ib qho ntawm qhov ntawd), nws yuav lub khoos phis tawj tshiab thiab
Sib nrug ib qho Optical Mouse: 7 Kauj Ruam
Sib nrug ib qho Optical Mouse: Dr Destruct-o sib nrug ob peb Microsoft Explorer Optical "IntelleMice", los saib seb puas muaj cov txiaj ntsig zoo nyob hauv