Cov txheej txheem:

Bot Laser Gallery Game: 4 Cov Kauj Ruam (nrog Duab)
Bot Laser Gallery Game: 4 Cov Kauj Ruam (nrog Duab)

Video: Bot Laser Gallery Game: 4 Cov Kauj Ruam (nrog Duab)

Video: Bot Laser Gallery Game: 4 Cov Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Image
Image
Bot Laser Gallery Game
Bot Laser Gallery Game
Bot Laser Gallery Game
Bot Laser Gallery Game
Bot Laser Gallery Game
Bot Laser Gallery Game

Nov yog qhov kev ua si uas koj tsom lub laser taw qhia ntawm tus neeg hlau lub plab kom "xiam" nws. Thaum koj tsoo tus bot qhov chaw tsis muaj zog nws lub qhov muag tsaus thiab koj hnov lub suab laser. Tom qab tag nrho tsib lub bots tau xiam qhov kev ua si rov pib dua thiab cov bots tig rov los ntawm ib tus zuj zus.

Kuv tau ua qhov no vim tias nws tsim qhov piv txwv yooj yim ntawm kev tawm tswv yim/tso tawm rau kev piav qhia dab tsi microcontrollers muaj peev xwm ua tau thiab nws yog txoj hauv kev ntau dua li khawm nias ntawm lub khob cij. Cov kauj ruam tom ntej zoo yuav yog ntxiv servos lossis kev co lub zog rau qib ntxiv ntawm kev tawm tswv yim.

Kauj Ruam 1: Sau cov khoom siv

Sau Cov Khoom Siv
Sau Cov Khoom Siv
Sau Cov Khoom Siv
Sau Cov Khoom Siv
  • 5mm LED (lossis yog tias koj tsis siv lub tshuab luam ntawv 3d koj tuaj yeem siv qhov loj me)
  • LDR (lub teeb nyob ntawm tus tiv thaiv)
  • 3 kab
  • 2 tus tiv thaiv (Kuv siv 200 ohm, tab sis koj tuaj yeem siv ib qho twg uas yuav tiv thaiv koj li LED. Kev Kawm Txuas!)
  • Microcontroller, Kuv siv Arduino Nano
  • Breadboard thiab jumper cables
  • Momentary Hloov (es)
  • Piezo "tus hais lus" P.

Yeem yeem

  • Heatshrink
  • Txuas
  • Kua nplaum

Kuv teeb tsa txhua tus bot los ua tus qauv yog li kuv tuaj yeem tshem lawv yooj yim rau kev khaws lossis hloov kho. Kuv siv cua sov ntsws rau kev tiv thaiv me ntsis ntawm kev sib txuas.

Cov Cuab Yeej:

  • Cov cuab yeej siv cuab yeej
  • 3D tshuab luam ntawv (Tsis teb los tau)

Kauj Ruam 2: Kev Luam Ntawv 3d

3d Luam Ntawv
3d Luam Ntawv
3d Luam Ntawv
3d Luam Ntawv

www.thingiverse.com/thing 2069579

Yog tias koj xav siv kuv tus qauv ua raws qhov txuas. 5mm LED yuav nias haum sab nraub qaum.

LDR (lossis ib qho ntsuas nrog ob lub xov hlau) tuaj yeem ua xov nyob rau hauv pem hauv ntej. Tej zaum koj yuav tau qhib lub qhov me ntsis nrog cov ntsia hlau kub los yog me ntsis laum me ntsis.

Yog tias koj tsis xav 3d luam tus qauv koj tuaj yeem ua qee yam ntawm koj tus kheej. Tus qauv pib nrog lub hom phiaj yooj yim duab los qhia nrog cov coj ua los ntawm.

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Kuv tsim cov no kom tsis muaj cov khoom sib txuas ntxiv los ntsaws rau hauv lub khob cij. Tsuas yog cov xov hlau thiab cov hloov pauv.

Txhua txheej ntawm {LED, LDR, 2 tus tiv thaiv} sawv cev rau ib tus bot. Kuv siv cov xov txuas txuas txuas txuas uas txuas ncaj qha rau hauv lub hau taub hau kuv tau siv ntawm txhua tus neeg hlau. Daim ntawv ceeb toom yuav muaj peb lub xov hlau los ntawm txhua tus neeg hlau.

Yog li ceev faj kom txuas cov neeg tawm tsam raug rau txoj cai coj. Tej zaum koj yuav pom kuv cov phiaj xwm sib dhos me ntsis, tab sis nws tau cawm kuv los ntawm kev xav tau plaub lub xov hlau. Vam tias nws tsim nyog.

Cov kab xev txiv kab ntxwv pib HIGH. Qhov ntawd muab 5V rau txhua LDR. Txij li thaum peb tsuas yog nyeem lub teeb pom kev zoo (LDR) thaum lub teeb ci LED (txiv kab ntxwv hlau HIGH) uas ua haujlwm tau zoo. Yog tias koj hloov txoj cai los nyeem LDR thaum LED tsis teeb, koj yuav tsum tau los nrog lwm txoj hauv kev los xaim nws.

Kauj ruam 4: Programming

Nov yog cov cai

gist.github.com/justbennett/a68a47d28f705d…

Muaj 5 analog inputs, uas yog 5 LDR's. Muaj 3 qhov digital inputs. Rov pib dua, pib nce, thiab nqis nqis qis. Kev hloov chaw pib yog kom lub cuab yeej tuaj yeem hloov kho rau teeb pom kev sib txawv. Yog tias koj siv lub teeb ci laser nws yuav tsis muaj teeb meem.

Muaj 5 LED tso tawm thiab hais lus tso tawm.

Koj tuaj yeem hloov kho tus lej no rau lwm qhov kev ntsuas lossis rau ntau lub hom phiaj.

Pom zoo: