Cov txheej txheem:

Dance Pad Nrog Xim LED Siv Arduino: 5 Kauj Ruam
Dance Pad Nrog Xim LED Siv Arduino: 5 Kauj Ruam

Video: Dance Pad Nrog Xim LED Siv Arduino: 5 Kauj Ruam

Video: Dance Pad Nrog Xim LED Siv Arduino: 5 Kauj Ruam
Video: Leej Muam Dai Siab official audio by Dang Thao & J Vang 2024, Kaum ib hlis
Anonim
Dance Pad Nrog Xim LED Siv Arduino
Dance Pad Nrog Xim LED Siv Arduino
Dance Pad Nrog Xim LED Siv Arduino
Dance Pad Nrog Xim LED Siv Arduino

Nov yog kuv thawj qhov kev qhia. Kuv tau ua cov khaub ncaws ua las voos uas muaj xim siv Arduino board ua cov ntawv txuas rau lub khoos phis tawj.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv

Cov khoom siv hluav taws xob: 1. 6 LED nrog cov xim sib txawv los qhia tias cov nyees khawm raug nias down2. 6 220 Ohm resistor tiv thaiv LEDs3. lub hom phiaj dav dav laug lub rooj tsavxwm 4. qee cov xov hlau thiab cov txuas sib txuas Dance ncoo ntu: 1. Aluminium Ntawv Nyiaj (Uas yog siv los ci cov khoom) 2. Lub thawv ntawv loj (koj tuaj yeem ua tus Ntoo Ntoo)

Kauj ruam 2: Lub Circuit Court thiab Test

Circuit Court thiab Test
Circuit Court thiab Test
Circuit thiab Test
Circuit thiab Test
Circuit Court thiab Test
Circuit Court thiab Test
Circuit Court thiab Test
Circuit Court thiab Test

Lub Circuit Court tau qhia hauv thawj daim duab. Cov seev cev seev cev yooj yim siv rau lub khawm qhia nyob rau hauv Circuit Court. Peb thaum peb thawb txhua khawm, LED yuav teeb, thiab ua tus pin sib xws los ntawm LOW mus rau HIGH. Cov lus no yuav raug xa mus rau lub khoos phis tawj raws li cov ntawv xov xwm, thiab ntes tau los ntawm ib qhov kev pab cuam nab hab sej uas tom qab ntawd simulate cov lus no mus rau qhov xov xwm tseem ceeb. Kuv tau ua lub Circuit Court ntawm lub hom phiaj dav siv cov laug cam siv qee qhov txuas me me, yog li kuv tuaj yeem yooj yim ntsaws nws rau hauv pawg thawj coj saib Arduino uas tuaj yeem txuag rau lwm txoj haujlwm. Koj tuaj yeem ua tus saib zoo dua li kuv tau ua, vim nws yooj yim dua, Kuv tau siv qee lub xov hlau los txuas ib puag ncig. Koj thaum koj ua lub Circuit, koj tuaj yeem txuas qee cov xov hlau ua ke kom pom tias LEDs teeb pom kev raug. Thiab tom qab ntawd koj tuaj yeem mus rau theem tom ntej, teeb tsa software.

Kauj Ruam 3: Txoj Haujlwm

Qhov program arduino xa tawm tsab ntawv raug rau lub computer thaum puas tau hloov pauv qhov xwm txheej. Yog li yog tias koj thawb ib lub pob, nws yuav xa tawm ob tsab ntawv sib xws, ib qho, thiab Ib Zaug. Phthon program tau txais cov lus, thiab tom qab ntawd txhais cov no rau cov keyboard tshwm sim. Yog tias nws tau txais tsab ntawv 'l', tom qab ntawv qhov program tsim LEFT qhov tseem ceeb hauv xov. Tam sim no, txoj haujlwm no tsuas yog ua haujlwm ntawm lub tshuab Windows, txij li cov nab npawb sej SendKeys tsuas yog ua haujlwm ntawm lub qhov rais. Koj yuav pom txoj hauv kev los sim cov ntaub ntawv keyboard hauv Mac thiab linux. Koj yuav tsum tau teeb tsa Serial thiab SendKeys module rau koj tus nab nab los khiav qhov program. Qhov kev seev cev kuv siv yog StepMania, koj yuav tsum teeb tsa cov ntaub ntawv qhia chaw tseem ceeb kom thaum koj seev cev qhov program yuav raug. Qhov no zoo li teeb tsa Joystick thaum koj ua si.

Kauj Ruam 4: Dance Pad

Dance Pad
Dance Pad
Dance Pad
Dance Pad
Dance Pad
Dance Pad

Muaj ob peb lwm cov lus qhia zoo txog yuav ua li cas thiaj ua tau Dance Dance. Ntawm no, kuv yuav qhia koj yuav ua li cas ua ib yam nrog yam uas koj tuaj yeem tau txais yooj yim. Lub seev cev hauv ncoo yog tsim los ntawm rau khawm. Lub tswv yim yog siv ob daim Aluminium Foils uas tau muab lo rau ntawm cov ntawv tawv, thiab tom qab ntawd muab tso ua ke nrog qee yam khoom sab hauv kom cais lawv sib nrug. Tsuas yog thaum koj muab ob daim ntawv tawv tawv rau ntawv, lawv yuav tiv tauj nrog ib leeg. Muaj rau ntawm cov nyees khawm no, thiab muab tso rau ntawm daim ntawv loj dua. Tom qab ntawd txuas cov nyees khawm no rau hauv Circuit Court peb ua ua ntej kawg koj tuaj yeem ua lub npog, thiab kos qee yam ntawm nws.

Kauj Ruam 5: Npaj Kom Tiav

Koj yuav tsum khiav txoj haujlwm Python ua ntej koj qhib Stepmania. Tom qab ntawd koj yuav tsum muaj peev xwm siv koj lub ncoo seev cev los tswj txoj haujlwm. Thaum kuv ua cov vis dis aus hauv qab no, Kuv tau qhib lub hau, kom koj tuaj yeem pom meej tias muaj dab tsi sab hauv.

Pom zoo: