Cov txheej txheem:
- Kauj Ruam 1: Sau cov khoom siv
- Kauj Ruam 2: Daim duab Circuit Court
- Kauj Ruam 3: Npaj Cov Ntaub Ntawv Suab
- Kauj ruam 4: Coding
- Kauj Ruam 5: Ua Haujlwm ntawm Txoj Haujlwm
Video: Token Tshaj Tawm Txheej Txheem: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv cov lus qhia yav dhau los peb tau pom yuav ua li cas kom koj Arduino Hais Lus. Hnub no peb yuav tshawb xyuas me ntsis ntxiv ntawm tib lub ncauj lus. Peb txhua tus yuav tsum muaj qee lub sijhawm hauv lub neej tau hla Txoj Kev Tshaj Tawm tej zaum hauv txhab nyiaj lossis chaw nres tsheb ciav hlau. Koj puas tau xav tsis thoob tias cov ntawv tshaj tawm no ua haujlwm li cas? Zoo lawv ua haujlwm ntawm cov hauv paus ntsiab lus zoo ib yam li peb txoj haujlwm kawg. Yog li hnub no hauv qhov kev qhia no peb yuav ua Token Announcement System muaj peev xwm tshaj tawm tokens los ntawm 1 txog 999 piv txwv li tag nrho 999 tokens (1000 yog tias koj suav nrog 0). Yog li cia peb mus rau txheej txheem tsim tsev !!!
Kauj Ruam 1: Sau cov khoom siv
Hav yog tias koj tab tom nrhiav rau lub khw hauv online kom yuav cov khoom siv ces UTSource.net yog lub xaib koj yuav tsum txheeb xyuas. Lawv muaj ntau yam loj ntawm cov khoom siv hluav taws xob thiab cov khoom siv ntawm tus nqi pheej yig. Lawv kuj muab PCB Cov Kev Pabcuam mus txog 16 txheej. Txheeb xyuas lawv lub vev xaib.
Cia peb saib cov qauv peb xav tau rau txoj haujlwm no -
1. Arduino Uno Board
2. 4 * 4 Matrix Keypad
3. SD Card Module
4. 3.5 hli Suab Jack
5. Tus neeg hais lus nrog lub tshuab ua kom nrov nrov thiab ib qho AUX cable
6. Qee Lub Taub Hau Hluav Taws Xob
Feem ntau ntawm cov khoom siv no tau siv hauv peb cov phiaj xwm yav dhau los.
Kauj Ruam 2: Daim duab Circuit Court
Daim duab qhia chaw rau txoj haujlwm no zoo ib yam nkaus li hauv Talking Arduino project. Qhov txawv tsuas yog Keypad. Kev sib txuas ntawm cov keyboard yog yooj yim heev. Tsuas yog txuas kab kab sib dhos rau tus pin ntawm Arduino raws li qhia saum toj no.
(Lawv cov keyboard uas kuv siv hauv txoj haujlwm no tsis zoo ib yam li hauv Circuit Court vim tias kuv tsis pom qhov raug nyob hauv Fritzing cov npe ib feem. Yog li tsis quav ntsej thawj zaug thiab zaum kawg ntawm cov keyboard hauv Circuit.)
Txuas sab laug thiab sab xis ntawm Audio Jack mus rau tus lej digital 10 ntawm Arduino. Thiab tus pin hauv av rau Arduino av.
Ua raws daim duab kom ua tiav qhov kev sib txuas.
Kauj Ruam 3: Npaj Cov Ntaub Ntawv Suab
Tam sim no koj yuav tsum nco ntsoov qhov no thaum siv daim npav SD daim npav thiab TMRpcm lub tsev qiv ntawv koj tsuas tuaj yeem siv.wav audio format. Tsis muaj lwm hom suab yuav ua haujlwm.
Yog li txhawm rau hloov koj cov ntaub ntawv kaw suab lossis cov ntaub ntawv uas koj npaj siab yuav teeb tsa ntawm SD daim npav, koj yuav tsum siv lub suab hloov pauv online no >> NYEM QHOV NO
Khaws qhov chaw rau kev hloov pauv raws li qhia hauv daim duab saum toj no.
Thiab yog tias koj xav tau lub suab digitized txias uas peb tau hnov ntawm cov kab ke tiag, tom qab ntawv txheeb xyuas lub vev xaib no uas hloov cov ntawv sau rau kev hais lus. Thiab tom qab ntawd peb tuaj yeem rub nws hauv hom mp3 uas tom qab ntawd tuaj yeem hloov pauv mus ua.wav hom los ntawm lub xaib hais los saum no.
NYEEM NTAWV SITE SITE
Koj tseem tuaj yeem rub tawm cov ntaub ntawv audio uas kuv siv los ntawm hauv qab no. Yog li nrog qhov ua tiav nws lub sijhawm los tsim cov phiaj xwm.
Kauj ruam 4: Coding
Rub tawm cov ntawv.ino los ntawm hauv qab no. Sau thiab xa cov program rau koj Arduino Board. Yog tias koj ntsib teeb meem uploading cov cai ces xav tiv tauj kuv lossis tso tawm cov lus hauv qab no. Kuv yuav zoo siab los pab koj.
#include #include "SD.h" #define SD_ChipSelectPin 4 #include "TMRpcm.h" #include "SPI.h" TMRpcm tmrpcm; char myNum [4]; koj i; const byte ROWS = 4; // plaub kab const byte COLS = 4; // plaub kab char char [ROWS] [COLS] = {{'1', '2', '3', 'A'}, {'4', '5', '6', 'B'}, {'7', '8', '9', 'C'}, {'*', '0', '#', 'D'}}; byte rowPins [ROWS] = {A0, A1, A2, A3}; // txuas rau kab pinouts ntawm cov keyboard byte colPins [COLS] = {9, 8, 7, 6}; // txuas mus rau kab ntawv pinouts ntawm cov keyboard Keypad keypad = Keypad (uaKeymap (cov yawm sij), rowPins, colPins, ROWS, COLS); teeb tsa tsis muaj dabtsis () {tmrpcm.speakerPin = 10; Serial.begin (9600); yog (! SD.begin (SD_ChipSelectPin)) {Serial.println ("SD tsis ua hauj lwm"); rov qab; } /* tmrpcm.setVolume (5); tmrpcm.play ("peb.wav"); // Siv rau kev sim (Tsis suav nrog hauv cov lej kawg) ncua (1000);*/} khoob khoob khoob () {Serial.println ("Sau peb tus lej -"); rau (i = 0; i <4; ++ i) {thaum ((myNum = keypad.getKey ()) == NO_KEY) {ncua (1); // Tsuas yog tos tus yuam sij} // Tos kom tus yuam sij raug tso tawm thaum (keypad.getKey ()! = NO_KEY) {ncua sijhawm (1); } Serial.print (myNum [kuv]); } yog (myNum [3] == 'A') {Serial.println ("Token Sent"); tmrpcm.setVolume (5); tmrpcm.play ("tokenno.wav"); ncua (2000); kos (); } yog (myNum [3] == 'B') {Serial.println ("Token Tsis Xa"); kuv = 0; } yog (myNum [3] == '*') {Serial.println ("Reg lub rooj"); tmrpcm.setVolume (5); tmrpcm.play ("star.wav"); kuv = 0; } yog (myNum [3] == '#') {Serial.println ("kaw"); tmrpcm.setVolume (5); tmrpcm.play ("hash.wav"); kuv = 0; } yog (myNum [3] == 'D') {Serial.println ("Sub"); tmrpcm.setVolume (5); tmrpcm.play ("D.wav"); kuv = 0; }} void check () {rau (int c = 0; c <3; c ++) {if (myNum [c] == '0') {tmrpcm.setVolume (5); tmrpcm.play ("zero.wav"); ncua (1000); } yog (myNum [c] == '1') {tmrpcm.setVolume (5); tmrpcm.play ("one.wav"); ncua (1000); } yog (myNum [c] == '2') {tmrpcm.setVolume (5); tmrpcm.play ("two.wav"); ncua (1000); } yog (myNum [c] == '3') {tmrpcm.setVolume (5); tmrpcm.play ("peb.wav"); ncua (1000); } yog (myNum [c] == '4') {tmrpcm.setVolume (5); tmrpcm.play ("four.wav"); ncua (1000); } yog (myNum [c] == '5') {tmrpcm.setVolume (5); tmrpcm.play ("tsib.wav"); ncua (1000); } yog (myNum [c] == '6') {tmrpcm.setVolume (5); tmrpcm.play ("six.wav"); ncua (1000); } yog (myNum [c] == '7') {tmrpcm.setVolume (5); tmrpcm.play ("xya.wav"); ncua (1000); } yog (myNum [c] == '8') {tmrpcm.setVolume (5); tmrpcm.play ("yim.wav"); ncua (1000); } yog (myNum [c] == '9') {tmrpcm.setVolume (5); tmrpcm.play ("nine.wav"); ncua (1000); }} tmrpcm.setVolume (5); tmrpcm.play ("star.wav"); }
Yog tias koj hloov cov npe ntawm cov ntaub ntawv audio ces xyuas kom koj hloov kho lawv hauv cov cai ib yam nkaus. Nrog qhov ntawd ua tiav koj txoj haujlwm tau npaj los sim. Cia peb pom nws ua haujlwm li cas.
Kauj Ruam 5: Ua Haujlwm ntawm Txoj Haujlwm
Kuv tau tso daim vis dis aus ntawm qhov haujlwm hauv qab no. Koj tuaj yeem tshawb xyuas qhov ntawd. Txoj haujlwm tau ua haujlwm raws li qhov kuv xav tau. Tsuas yog qhov txwv kuv tau ntsib yog qhov tsis muaj cov khoom sib cais rau txoj haujlwm. Peb tsis tuaj yeem khaws lub laptop txuas txhua lub sijhawm. Nws lwm qhov xwm txheej yog tias koj ua haujlwm ntawm lub laptop txhua hnub thiab muaj ntau lub USB chaw nres nkoj muaj.
Yog li kuv xav kom koj hais ntxiv lcd (ib qho yuav ua) hauv txoj haujlwm no thiab xa kuv qhov txuas ntawm qhov haujlwm ntawd.
Txoj haujlwm no tuaj yeem siv hauv koj lub chaw haujlwm ntawm lub rooj txais tos yog tias koj muaj neeg coob tuaj ntsib txhua hnub.
Ntxiv cov khoom siv hluav taws xob cais thiab lcd yuav ua rau txoj haujlwm no sawv ib leeg. Kuv tso siab rau txoj haujlwm ntawd rau koj.
Yog tias koj nyiam kuv txoj haujlwm ces pab kuv los ntawm kev qhia kuv cov phiaj xwm ntawm koj li social media lis haujlwm. Qhov ntawd yog tam sim no. Pom koj sai sai nrog lwm txoj haujlwm sai sai no.
Pom zoo:
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: 8 Kauj Ruam
Xim Txheej Txheem Txheej Txheem: Arduino Raws Li Txheej Txheem Nrog Ob Txoj Siv: Kev thauj mus los thiab/lossis ntim khoom ntawm cov khoom thiab cov khoom hauv thaj chaw ua haujlwm tau ua tiav siv cov kab ua siv siv txoj siv thauj khoom. Cov menyuam no pab txav cov khoom ntawm ib kis mus rau lwm qhov nrog qhov nrawm. Qee qhov kev ua lossis kev qhia paub ua haujlwm yuav yog
Cov Txheej Txheem Hluav Taws Xob rau FTC Robots - Cov Txheej Txheem thiab Cov Lus Qhia: 4 Cov Kauj Ruam
Muaj Cov Txheej Txheem Hluav Taws Xob rau FTC Neeg Hlau - Cov Txheej Txheem thiab Cov Lus Qhia: Ntau pawg FTC tso siab rau cov txheej txheem thaiv yooj yim thiab cov cuab yeej los teeb tsa hluav taws xob rau lawv cov neeg hlau. Txawm li cas los xij, cov txheej txheem yooj yim no thiab cov ntaub ntawv yuav tsis txaus rau cov kab hluav taws xob xav tau ntau dua. Txawm hais tias koj pab neeg tab tom siv kev paub ntau dua
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): 9 Cov Kauj Ruam (nrog Duab)
D4E1: Kev nyeem ntawv-cuab yeej 2.0 (Txheej Txheem Txheej Txheem Txheej Txheem): Cov ntaub ntawv:-Ob tus tub ntxhais kawm Muaj cov khoom lag luam tsim qauv hauv Kortrijk (Belgium) tuaj nrog cov cuab yeej nyeem ntawv no. Peb pib raws qhov tsim qauv uas twb muaj lawm thiab tau txhim kho nws mus rau lwm qhov kev tsim. Kev nyeem ntawv-cuab yeej thaum xub thawj tau raug txhim kho rau cli & nte
Nthuav Tawm Cov Txheej Txheem Qhia Ntawv rau Tus Tsim-Media Loading thiab Txheej Txheem: 13 Kauj Ruam
Nthuav Tawm Cov Txheej Txheem Txheej Txheem rau Tus Tsim-Media Loading thiab Txheej Txheem: Kev ua haujlwm tuaj yeem thauj ntau cov ntaub ntawv sab nraud, ntawm cov uas muaj peb hom uas nquag siv. Lawv yog cov duab, suab thiab yees duab sib cais. Hauv tshooj lus no, peb yuav tham txog yuav ua li cas thauj lub suab thiab yees duab kom ntxaws, suav nrog qhov tshwm sim
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim Qauv-Txheej Txheem Txheej Txheem Tswj- Loop Nqe Lus: 8 Kauj Ruam
Nthuav nthuav Cov Txheej Txheem Qhia rau Tus Tsim-Txheej Txheem Txheej Txheem- Loop Nqe Lus: Cov Txheej Txheem Txheej Txheem- Loop Nqe Lus Los ntawm tshooj no, koj yuav ntsib nrog qhov tseem ceeb thiab muaj zog paub txog-Loop Nqe Lus. Ua ntej nyeem tshooj no, yog tias koj xav kos 10,000 lub voj voos hauv txoj haujlwm, koj tsuas tuaj yeem ua nrog lub suab