Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Xav Tau
- Kauj Ruam 2: Txuas lub Rooj Tswjhwm Saib thiab Buzzer
- Kauj Ruam 3: Tshaj Tawm Txoj Haujlwm thiab Ua tiav
- Kauj ruam 4: Tsis txhob hnov qab Ua Raws
Video: Arduino Uno Tutorial #2 - Buzzer Song: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo txhua tus, raws li kuv tau pom tias kuv thawj qhov kev qhia tau yog kev twv txiaj zoo, Kuv txiav txim siab tias kuv yuav ua ntu ntawm Arduino Uno cov lus qhia rau koj!
Kauj Ruam 1: Yam Koj Xav Tau
Rau lub suab nrov nrov, koj yuav xav tau:
-Arduino Uno Board;
-A Buzzer (Kuv tsis muaj lub khob cij, yog li kuv tau kho nrog cov xov hluav taws xob) -Usb cable;
-Arduino IDE hauv koj lub computer;
Kauj Ruam 2: Txuas lub Rooj Tswjhwm Saib thiab Buzzer
Tam sim no txuas koj lub rooj tsav xwm hauv computer thiab txuas lub suab nrov zoo li cov phiaj xwm ntawm daim duab.
Yog tias koj tsis muaj tus tiv thaiv koj tuaj yeem txuas tus buzzer yam tsis muaj nws, tab sis ceev faj nrog lub polarity ntawm lub buzzer, yog li koj tsis hlawv nws.
Kauj Ruam 3: Tshaj Tawm Txoj Haujlwm thiab Ua tiav
Kauj ruam kawg dhau los rub cov program hauv qab no rau koj Arduino IDE thiab rau koj pawg thawj coj.
#define BUZZER 9int notes = {524, 588, 660, 699, 785, 881, 989};
void teeb tsa ()
{
tus pinMode (BUZZER, OUTPUT);
}
void lub voj ()
{
rau (int i = 0; i <7; i ++)
{
suab (BUZZER, sau ntawv , 1000); ncua (1000);
}
ncua (1000);
}
Thiab koj ua tiav.
Txaus siab rau!
Kauj ruam 4: Tsis txhob hnov qab Ua Raws
Ua raws ntau qhov kev chim Arduino!
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: Cov ntawv qhia no yuav qhia koj qee qhov pib ntawm kev siv Sparkfun RGB Led WS2812B nrog Arduino UNO
Tutorial Yuav ua li cas 4-Zauv Zaub Interface Nrog Arduino UNO: 6 Cov Kauj Ruam (nrog Duab)
Tutorial Yuav Ua Li Cas 4-Zauv Zaub Interface Nrog Arduino UNO: Qhov kev qhia no yuav qhia koj qee qhov pib ntawm kev siv 4- Zaub Zaub nrog Arduino UNO
Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Tutorial to Interface OLED 0.91inch 128x32 Nrog Arduino UNO: Cov ntawv qhia no yuav qhia koj qee qhov pib ntawm kev siv OLED 0.91inch LCD128x32 nrog Arduino UNO