Cov txheej txheem:

Yooj Yim Arduino Drum Robot: 5 Kauj Ruam
Yooj Yim Arduino Drum Robot: 5 Kauj Ruam

Video: Yooj Yim Arduino Drum Robot: 5 Kauj Ruam

Video: Yooj Yim Arduino Drum Robot: 5 Kauj Ruam
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Cov Khoom thiab Cov Cuab Yeej
Cov Khoom thiab Cov Cuab Yeej

Kuv mam lees. Kuv tau ua txoj haujlwm no tawm ntawm qhov tsis txaus ntseeg tom qab tau daig hauv ob peb hnub thaum lub caij me me tab sis muaj teeb meem los nag. Saib ntawm kuv tus arduino, ob peb servos, thiab qee daim kab xev, lub tswv yim yooj yim rau cov neeg hlau nruas crap pib tuaj rau fruition. Hloov tawm, yog tias koj muaj txhua yam khoom raug, qhov no yog qhov haujlwm uas tuaj yeem ua tiav hauv li 15 feeb nrog kev xyaum tsis tas yuav muaj kev paub dhau los.

Yog tias koj nyuam qhuav pib lossis tab tom nrhiav txhuam koj cov txuj ci arduino, qhov no yuav yog qhov chaw zoo pib. Cia peb pib.

Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej

Cov Khoom thiab Cov Cuab Yeej
Cov Khoom thiab Cov Cuab Yeej

Cov ntaub ntawv:

  • Arduino Uno (txawm hais tias yuav luag txhua lub rooj tsavxwm yuav tsum ua haujlwm)
  • (2) txoj haujlwm hloov chaw servo motors
  • solderless breadboard
  • cov xov hluav taws xob (tsawg kawg ib lub kaum os)
  • ib tsob ntoo ntoo
  • (2) pop-sickle sticks, tus pas nrig, cov xaum, lossis lwm yam khoom siv rau kev siv tus pas nrig
  • roj hmab ncoo, kas fes tuaj yeem hau, lossis lwm lub nruas taub hau

Cov Cuab Yeej:

  • lub khoos phis tawj nrog lub khoos phis tawj tsis ntev los no ntawm Arduino IDE teeb tsa
  • USB programming cable uas txuas rau arduino
  • kab xev
  • phom kua nplaum kub (lossis tsuas yog muaj tswv yim nrog daim kab xev)

Sijhawm:

15 feeb hauv cov xwm txheej zoo. Tej zaum ib teev yog tias yam tsis ua haujlwm thawj zaug

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Cia peb pib los ntawm kev txuas ob peb yam ua ke.

Txhua lub cav servo muaj peb qhov sib txuas: ib qho rau lub zog, thib ob rau hauv av, thiab thib peb rau cov ntaub ntawv (lossis qee yam zoo li ntawd). Qhov zoo yog ib txwm liab, av feem ntau yog xim av lossis xim dub, thiab cov ntaub ntawv txiv kab ntxwv lossis dawb. Siv lub khob cij los yog tus pin header arduino, txuas mus rau arduino lub zog thiab hauv av rau txhua lub cav. Txuas ib lub cav cov ntaub ntawv xov hlau mus rau tus pin 5 thiab lwm lub tshuab cov ntaub ntawv xov hlau rau tus pin 6. Xyuas kom tseeb tias ob tus pin txhawb PWM. Thiab…. yog li ntawd! Qhov ntawd tsis nyuaj.

Kauj Ruam 3: Ua Qhov Tseeb

Tsim Yam
Tsim Yam
Tsim Yam
Tsim Yam

Tam sim no peb yuav tsum tsim lub thav duab

Koj yuav xav siv koj lub tswv yim rau ntu no. Kuv ua qhov no rau ntawm cov ntoo tiaj tus, tab sis ib daim tiaj tiaj ntawm cov duab los qhia yuav ua haujlwm ib yam nkaus. Txhua yam tiaj tus, muaj zog, thiab yooj yim rau ua haujlwm nrog yuav ua lub hauv paus zoo.

Txhawm rau tuav lub cav nyob hauv qhov chaw, Kuv tau txiav tawm ob qho ntawm cov ntoo los ntawm cov xim pleev xim lo - yam uas koj tuaj yeem tau txais dawb thaum yuav lub peev xwm mob ntawm lub khw muag khoom kho vajtse. Kuv tau pom tias cov nplawm nplaum no muaj ntau yam zoo kawg li. Ib ntawm cov hnub no kuv yuav tshaj tawm qhov haujlwm uas ua los ntawm cov xim pleev xim. Xijpeem, koj yuav tsum tau kub cov kua nplaum no kom lawv tsis txhob mus qhov twg.

Tom ntej no, peb yuav ua cov drumsticks. Kuv txiav ob 5 nti qhov ntev ntawm 1/4 nti dowel rods, txawm hais tias muaj qee yam zoo li popsickle sticks yuav ua haujlwm ib yam nkaus. Daim kab xev los yog kua nplaum rau cov tshuab raj.

Yog tias koj tsis tau ua dua, kaw cov tshuab kom pleev xim cov khoom me me lossis txhua yam uas koj siv los tuav lawv nyob hauv qhov chaw.

Qhov ntawd yog nws! Lub sijhawm rau qee qhov chaws…

Kauj ruam 4: Nruab qhov Code

Nruab qhov Code
Nruab qhov Code

Thaum txhua yam npaj txhij mus, nws yog lub sijhawm rau nruab qee qhov chaws. Qhov no yog ib feem uas koj xav tau Arduino IDE thiab USB lub xov tooj cua programming.

Koj tuaj yeem sau koj tus kheej yog tias koj xav tau, lossis koj tsuas tuaj yeem siv kuv li. Muaj ntau ntau cov ntawv sau thiab cov lus qhia hauv cov cai, tsis txhob txhawj xeeb.

Yog tias koj npaj yuav sau koj tus lej, nws yuav yog lub tswv yim zoo kom kawm paub siv cov lus txib li cas, vim tias lawv tuaj yeem ua rau me ntsis. Tseem nco ntsoov tias servo motors siv sijhawm txav los ntawm ib txoj haujlwm mus rau lwm qhov. Lub sijhawm no yuav tsum suav nrog hauv cov cai, tshwj xeeb tshaj yog thaum sau cov phiaj xwm cuam tshuam rau lub sijhawm. Koj yuav tsis xav kom koj lub nruas bot raug ntaus.

Kauj ruam 5: Mus Ntxiv

Mus Ntxiv
Mus Ntxiv
Mus Ntxiv
Mus Ntxiv

Nrog koj zoo siab! Koj nyuam qhuav tau sib sau ua haujlwm ua neeg hlau. Nkees ntawm nws qhov txuas ntxiv tsis tau? Tsis yog? Zoo koj yuav sai sai no. Yog li peb tuaj yeem ua dab tsi kom qhov no nthuav me ntsis ntxiv?

Txog qhov pib, kuv tuaj yeem tau sau qee qhov chaws zoo dua uas tsim kho cov lus sib dhos lossis tuaj yeem ua si thib peb ntau dua li lub hlis tsis kawg thiab lub cim thib yim.

Arduino tseem muaj lub suab (Hz, sijhawm) ua haujlwm uas tso cai rau nws ua suab los ntawm tus pin PWM. Siv cov lus ntawm kev ceeb toom zaus (saib saum toj no) thiab qee qhov kev tsim tswv yim zoo, Arduino tuaj yeem ua suab paj nruag thaum tso qee qhov mob ntaus.

Yog tias ib tus ntawm koj ua txoj haujlwm no, thov qhia rau kuv paub! Kuv xav pom nws.

Yog tias koj nyiam qhov no, nco ntsoov sau npe yuav ua rau kuv tus youtube channel uas kuv tshaj tawm lwm yam kev tshawb fawb thiab thev naus laus zis ntsig txog cov haujlwm. Feem ntau tsis ntev los no kuv tau ua haujlwm ntawm qee yam khoom siv foob pob hluav taws, yog li khaws qhov muag rau qhov ntawd.

Qhov ntawd yog txhua yam rau txoj haujlwm no! Tam sim no mus ua ib yam dab tsi

Pom zoo: