Cov txheej txheem:

Token Tshaj Tawm Txheej Txheem: 5 Cov Kauj Ruam
Token Tshaj Tawm Txheej Txheem: 5 Cov Kauj Ruam

Video: Token Tshaj Tawm Txheej Txheem: 5 Cov Kauj Ruam

Video: Token Tshaj Tawm Txheej Txheem: 5 Cov Kauj Ruam
Video: Yim laus yim do hau _phees lauj _fullmusic MV 2023 2024, Kaum ib hlis
Anonim
Token Tshaj Tawm System
Token Tshaj Tawm System

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

Sau Cov Khoom Siv
Sau Cov Khoom Siv
Sau Cov Khoom Siv
Sau Cov Khoom Siv
Sau Cov Khoom Siv
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 Circuit Court
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

Npaj Cov Ntaub Ntawv Suab
Npaj Cov Ntaub Ntawv Suab
Npaj Cov Ntaub Ntawv Suab
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

Coding
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

Ua haujlwm ntawm Txoj Haujlwm
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: