Cov txheej txheem:

Tilting LEGO Maze Nrog Micro: ntsis: 9 Kauj Ruam
Tilting LEGO Maze Nrog Micro: ntsis: 9 Kauj Ruam

Video: Tilting LEGO Maze Nrog Micro: ntsis: 9 Kauj Ruam

Video: Tilting LEGO Maze Nrog Micro: ntsis: 9 Kauj Ruam
Video: Tilting LEGO Maze with micro:bit 2024, Lub Xya hli ntuj
Anonim
Tilting LEGO Maze Nrog Micro: me ntsis
Tilting LEGO Maze Nrog Micro: me ntsis
Tilting LEGO Maze Nrog Micro: me ntsis
Tilting LEGO Maze Nrog Micro: me ntsis
Tilting LEGO Maze Nrog Micro: me ntsis
Tilting LEGO Maze Nrog Micro: me ntsis

Nws tsis muaj qhov zais cia LEGO txaus, thiab tsis muaj ib yam dab tsi uas peb nyiam tshaj li ntxiv qee qhov khoom siv lom zem rau peb LEGO cov khoom siv kom ua rau lawv txaus ntshai dua. Peb LEGO tshawb nrhiav muaj pob qhov rooj ntawm ob sab kom tso cai rau koj qaij ib nrab sab saum toj thiab tswj lub pob los ntawm kev tshawb nrhiav. Koj tuaj yeem tsim koj tus kheej mazes (nws yog LEGO!) Yog li koj tuaj yeem ua rau lawv yooj yim lossis nyuaj raws li koj xav tau.

Cia peb ntxiv qee yam khoom siv hluav taws xob! Peb yuav siv lub micro: me ntsis nrog rau (LEGO sib xws) Lub Rooj Tswjhwm Saib me ntsis. Peb tab tom yuav ntsaws tus ntiv tes xoo me me rau hauv Lub Rooj Tswjhwm Saib me ntsis kom nws tuaj yeem tswj kev txav ntawm ob lub servos kom qaij qhov tshawb hauv X thiab Y axis.

Yog tias koj nyiam peb cov phiaj xwm thiab xav pom ntau yam uas peb nce mus rau txhua lub lim tiam thov ua raws peb ntawm Instagram, Twitter, Facebook, thiab YouTube.

Khoom siv:

Brown Dog Gadgets qhov tseeb muag cov khoom siv thiab khoom siv, tab sis koj tsis tas yuav yuav ib yam dab tsi los ntawm peb los ua txoj haujlwm no. Txawm hais tias yog koj ua nws pab txhawb peb hauv kev tsim cov phiaj xwm tshiab thiab cov kws qhia ntawv.

Cov Hluav Taws Xob:

  • 1 x Cov Hluav Taws Xob Hluav Taws Xob Cov Khoom Siv Hluav Taws Xob
  • 1 x micro: me ntsis
  • 2 x LEGO Tshaj 270 Degree Servo
  • 1 x Thumbstick
  • 4 x Jumper Xov

LEGO Qhov Chaw:

Peb tsuas yog xav tau ob peb ntu txhawm rau txuas peb cov kev pabcuam rau LEGO lub hauv paus thiab lub iav kom ntxaij nrog cov pob qhov qaij. Dhau li ntawd siv ob peb lub cib tiaj thiab cov hauv paus ntoo siv. Peb tau muab cov kev txuas mus rau txhua ntu ntawm BrickOwl tab sis koj tuaj yeem pom lawv nyob qhov twg LEGO lossis LEGO-sib tshooj tau muag.

  • 2 x LEGO Iav nrog 16 Hniav
  • 2 x LEGO Qag 4 (3705)
  • 4 x LEGO Technic Cib 1 x 2 nrog Qag Qhov
  • Lwm yam. Qhov (Baseplates, Cib, thiab lwm yam)

Kauj Ruam 1: Tau Txais / Sib Sau Ua Ke

Tau Txais / Sib Sau Ua Ke
Tau Txais / Sib Sau Ua Ke
Tau Txais / Sib Sau Ua Ke
Tau Txais / Sib Sau Ua Ke

Peb tau txais ib qho ntawm mazes los ntawm JK Brickworks thiab xav tias nws yuav lom zem rau kev siv lub tshuab tig thiab ua kom nws tswj tau los ntawm ob-axis tus ntiv tes xoo.

Cov khoom siv tsis muaj los ntawm LEGO ntxiv lawm tab sis koj tuaj yeem pom cov khoom siv, lossis tsim koj tus kheej tshawb nrhiav siv cov ntsiab lus los ntawm cov ntawv no.

Kauj Ruam 2: Ntxiv LEGO Phaj

Ntxiv LEGO Phaj
Ntxiv LEGO Phaj

Cov khoom tshawb pom yog tswj los ntawm txhais tes. Koj tuav thiab tig ob lub log ntawm ob sab thiab tshawb nrhiav tilts kom txav pob los ntawm nws.

Peb tau ntxiv LEGO lub hauv paus rau txhua sab uas lub log nyob yog li peb tuaj yeem txuas peb LEGO-sib xyaw servo motors.

Lub tshuab servo muaj LEGO Gear nrog 16 Cov hniav txuas rau nws uas ntxig nrog cov iav hniav nyob sab nraud ntawm lub log. Thaum peb cov servo tig, nws tig lub log thiab tig lub rooj.

Peb tshem tawm ob peb daim tiaj LEGO daim ntawm sab thiab ntxiv qee cov cib los txuas peb lub hauv paus. (Hloov koj tuaj yeem txuas qhov tshawb nrhiav thiab cov hauv paus rau lub hauv paus loj dua hauv qab, lossis tiaj tiaj nrog qee daim kab xev, thiab lwm yam)

Kauj Ruam 3: Ntxiv Pawg Thawj Coj

Ntxiv me ntsis Board
Ntxiv me ntsis Board
Ntxiv me ntsis Board
Ntxiv me ntsis Board
Ntxiv me ntsis Board
Ntxiv me ntsis Board

Ntxiv Bit Board rau koj qhov project. Koj yuav xav kom nws nyob nruab nrab ntawm ob lub servos yog li cov xov hlau tuaj yeem ncav cuag ntsaws rau hauv servo motors.

Peb tsuas yog nyam peb tus kheej mus rau LEGO lub hauv paus nrog ob peb daim nyias nyias LEGO.

Peb tsuas yog siv tus pin tus lej txhawm rau txuas cov khoom rau txoj haujlwm no yog li peb tsis tas yuav txhawj xeeb txog LEGO-sib txuas tus pin qhov ntawm Pawg Thawj Coj.

Kauj ruam 4: Ntxiv Servos

Ntxiv Servos
Ntxiv Servos
Ntxiv Servos
Ntxiv Servos

Thaum koj muaj koj daim LEGO puag hauv qhov chaw koj tuaj yeem ntxiv koj cov kev pabcuam. Peb siv cov ntu hauv qab no los txuas txhua qhov kev pabcuam:

  • 1 x LEGO Qag 4 (3705)
  • 2 x LEGO Technic Cib 1 x 2 nrog Qag Qhov

Koj tuaj yeem pom tias cov pob zeb servos me ntsis thaum tig lub iav, yog li nws tuaj yeem muaj txiaj ntsig los tsim ntau LEGO cib nyob ib puag ncig cov ntsiab lus txuas ntawm servo kom ntxiv kev ruaj ntseg.

Kauj ruam 5: Txuas Servos

Txuas Servos
Txuas Servos
Txuas Servos
Txuas Servos
Txuas Servos
Txuas Servos

Txuas lub Y Servo txuas rau tus Pin 14 kab. Cov kab xev txiv kab ntxwv nkag mus rau Pin 0, xaim liab rau hauv kab + (zoo), thiab xaim xim av rau hauv - (tsis zoo) kem.

Txuas tus X Servo txuas rau tus Pin 13 kab. Cov kab xev txiv kab ntxwv nkag mus rau Pin 0, xaim liab rau hauv kab + (zoo), thiab xaim xim av rau hauv - (tsis zoo) kem.

Nco ntsoov! Koj yuav tsum tau ntxiv lub pob roj teeb sab nraud los txhawb lub zog servos. Lub roj teeb pob tuaj yeem ua haujlwm rau servos nrog rau micro: me ntsis yog li thaum koj tau ua tiav lub micro: ntsis koj tuaj yeem tshem lub USB cable.

Kauj Ruam 6: Txuas Thumbstick

Txuas Thumbstick
Txuas Thumbstick
Txuas Thumbstick
Txuas Thumbstick

Siv Jumper Wires pib los ntawm ntsaws Thumbstick VRY Pin rau Pin 1 ntawm Pawg Thawj Coj.

Tom ntej no, ntsaws Thumbstick VRX Pin rau Pin 0 ntawm Pawg Thawj Coj.

Tom qab ntawd ntsaws Thumbstick + 5V Pin rau hauv kab + (zoo).

Thiab thaum kawg, ntsaws Thumbstick GND Pin rau hauv - (tsis zoo) kem.

Kauj Ruam 7: Ntxiv Roj Teeb

Ntxiv Roj Teeb
Ntxiv Roj Teeb

Peb tab tom yuav ntxiv ob lub roj teeb AAA rau ntawm Pawg Thawj Coj kom muaj zog rau micro: me ntsis thiab servos.

Thaum lub USB cable tuaj yeem siv los teeb tsa lub micro: me ntsis thiab muab lub zog rau qee yam khoom siv hluav taws xob qis (LED lossis Piezo Speaker, thiab lwm yam) nws tsis tuaj yeem siv lub tshuab servo uas peb siv.

Kauj Ruam 8: Thauj Cov Code

Thauj cov Code
Thauj cov Code

Txuas lub USB cable rau micro: me ntsis thiab tom qab ntawd ntsaws nws rau hauv koj lub computer.

Peb yuav siv makecode.microbit.org los teeb tsa peb pawg thawj coj. Nws siv qhov yooj yim luag thiab poob block interface.

Peb tab tom thauj cov cai hauv qab no rau peb qhov Maze Tilter program:

Thaum cov lej tau rub tawm koj tuaj yeem txuas lub USB cable thiab ntxig rau micro: me ntsis rau hauv Bit Board kom nws tuaj yeem tswj hwm cov servos.

Kauj Ruam 9: Xeem Nws

Kuaj nws!
Kuaj nws!

Tam sim no koj muaj koj lub servos thiab tus ntiv tes xoo txuas, koj cov lej tau nkag, thiab koj tau siv koj lub Rooj Tswjhwm Saib me ntsis nrog lub roj teeb, koj npaj txhij rau kev sim!

Ib yam uas koj yuav tsum tau ua yog qib lub rooj tshawb nrhiav thiab tom qab ntawd ua kom ntseeg tau tias cov servos nyob hauv ib nrab txoj haujlwm ua ntej muab cov iav tso ua ke.

Txoj cai yuav teeb tsa cov servos ntawm ib nrab qhov chaw thaum nws pib, yog li koj yuav tsum ib txwm pib nrog qib rooj thaum koj lub zog ntawm Pawg Thawj Coj.

Tus ntiv tes xoo rov qab mus rau txoj haujlwm nruab nrab thaum koj tso nws, thiab peb tau teeb tsa txoj cai tso cai rau chav me ntsis qaij li ntawd nws yuav tsis txav ntawm nws tus kheej.

Peb npaj mus! Koj puas tuaj yeem tau txais lub pob txij thaum pib mus txog qhov kawg ntawm kev tshawb nrhiav? Koj puas tuaj yeem ua sai dua koj tus phooj ywg?

Pom zoo: