Cov txheej txheem:

Coronavirus EXTER-MI-NATION Nrog Micro: ntsis thiab Daleks: 4 Kauj Ruam (nrog Duab)
Coronavirus EXTER-MI-NATION Nrog Micro: ntsis thiab Daleks: 4 Kauj Ruam (nrog Duab)

Video: Coronavirus EXTER-MI-NATION Nrog Micro: ntsis thiab Daleks: 4 Kauj Ruam (nrog Duab)

Video: Coronavirus EXTER-MI-NATION Nrog Micro: ntsis thiab Daleks: 4 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image

Nov yog qhov haujlwm thib ob hauv kev tiv thaiv tus kabmob coronavirus los ntawm TinkerGen. Koj tuaj yeem pom thawj kab lus ntawm no. Peb ntseeg ruaj khov tias nrog tib neeg txoj kev koom ua ke, kev kis mob tam sim no yuav los sai sai no. Tab sis txawm tias tom qab COVID-19 dhau mus peb yuav tsum ceev faj thiab khaws tus cwj pwm zoo uas peb (vam tias) tsim thaum lub sijhawm nyuaj no. Kab lus dhau los tau tsom mus rau kev siv Micro: me ntsis kom mob siab rau peb tsis nco qab kov peb lub ntsej muag thiab los ntawm kev ua uas tiv thaiv kev kis tus kab mob. Hauv kab lus no peb yuav tsim thiab tsim kom yooj yim, tseem muaj riam phom tiv thaiv kab mob - cov cuab yeej me me, uas peb tuaj yeem siv los ntsuas lub sijhawm uas peb siv ntxuav tes.

Khoom siv

Bitmaker Lite

1/8 (3mm) plywood rau rooj plaub

Ob lub M4 * 8 + 5 ib lub taub hau tooj liab ob lub M4 ceev

Ob lub M4 * 8 Hexagon socket lub taub hau hau ntswj

Ob R480 dawb nylon rivet

Ob M2 * 15 ob-hla txhuas kab

Ob M2 * 8 cov ntsia hlau ntsia hlau

Kauj Ruam 1: Rooj Sib Tham

Rooj Sib Tham
Rooj Sib Tham
Rooj Sib Tham
Rooj Sib Tham
Rooj Sib Tham
Rooj Sib Tham

Rub tawm.dxf cov ntaub ntawv los ntawm Thingverse, tom qab ntawv txiav lawv los ntawm 1/8 (3mm) plywood. Cov ntaub ntawv muaj tus kheej ntsuas phoo tsim, tab sis koj yuav xav thov me ntsis ntawm cov kua nplaum thaum sib dhos lub thawv. Siv ob lub M4 * 8 + 5 lub taub hau tooj liab ib sab, ob lub txiv ntoo M4 thiab ob lub M4 * 8 Hexagon lub taub hau taub hau ntswj kom txuas Grove Ultrasonic Ranger rau rooj plaub sab hauv. Siv ob lub M2 * 8 cov ntsia hlau txhuam hniav txhawm rau txhim kho lub yas servo caj npab ntawm tus xub. Txuas Ultrasonic Ranger thiab Servo rau BitMaker Lite thiab tom qab ntawd kho nws sab hauv rooj plaub nrog ob R480 dawb nylon rivet. Hauv qab npog rau. Lub rooj sib txoos tiav, cia ua tus lej tam sim no!

Kauj Ruam 2: Ua Tus Txheej Txheem

Makecode Program
Makecode Program
Makecode Program
Makecode Program
Makecode Program
Makecode Program

Kuv tau ua ob tsab ntawv ntawm txoj cai rau txoj haujlwm no: ib qho yooj yim dua, ua tiav nrog Microsoft Makecode, ib puag ncig cov phiaj xwm duab thiab ib qho nyuaj dua, sau hauv Micropython - qhov ntawd kuj tseem muaj Dalek lub suab, ua ke nrog Micro: ntsis hais lus qauv. Peb tab tom yuav pib nrog txoj haujlwm yooj yim dua.

Ua ntej koj pib sau cov cai, koj yuav tsum ntxiv BitMaker lite txuas ntxiv rau Makecode. Sib tham seb yuav ua li cas ntawm no.

Sab hauv ntawm qhov pib thaiv, peb tshem tawm lub vijtsam, teeb tsa ob qhov kev hloov pauv, pib_ sijhawm thiab theem mus rau 0, teeb tsa lub kaum sab xis rau 90 thiab tos 500 ms ua ntej peb pib lub ntsiab lus voj. Txoj cai logic sab hauv lub ntsiab lus tseem ceeb yooj yim - ua ntej tshaj plaws, tsis hais yog muaj tes pom lossis tsis yog, yog theem 0, peb teeb tsa servo rau 90 degrees, nws yog lub xeev tsis raug.

Yog tias peb pom muaj ib yam khoom nyob ze ze tshaj 10 cm los ntawm peb lub cuab yeej (peb yuav xav tias nws yog tus neeg txhais tes), tom qab ntawd peb ua qhov kev kuaj xyuas yog tias 1 thib ob tau dhau mus txij li lub sijhawm dhau los peb tau hloov mus rau theem tom ntej. 1 lub sijhawm thib ob tau teeb tsa rau lub hom phiaj debug, qhov tseeb nws yuav tsum nyob ze dua 4 vib nas this (raws li CDC cov lus pom zoo, lub sijhawm zoo rau kev ntxuav tes yog 20 vib nas this, peb muaj 5 theem, yog li 20/5 = 4). Txhua lub sijhawm 1 thib ob tau dhau mus txij li peb tau nce mus rau theem, yog tias ob txhais tes tseem raug kuaj pom nyob ze ntawm lub cuab yeej, peb nce mus rau theem tom ntej, rov pib lub sijhawm thiab ua suab paj nruag. Peb kuj teeb digital pin1 rau LOW, yog li PWM tiam rau lub suab yuav tsis cuam tshuam nrog servo - yog tias koj tsis ua li ntawd, koj yuav pom tias servo yuav pib ua vwm thaum suab paj nruag ua si. Nov yog qhov paub txwv ntawm Micro: ntsis.

Tom qab ntawd rau txhua theem peb teeb tsa lub kaum sab xis hauv qhov ua tiav ntawm yog tias thaiv. Thaum kawg, yog tias tsis pom ob txhais tes (nrug deb ntawm lub cuab yeej loj dua 10 cm), thiab theem tsis yog 0 - txhais tau tias tus neeg siv tau cuam tshuam ntxuav tes ua ntej ua ntej, peb ua suab nrov tu siab thiab teeb tsa theem rov qab mus rau 0.

yog tias koj muaj teeb meem nrog txoj cai, koj tuaj yeem rub tawm cov ntawv.hex ntawm peb GitHub chaw cia khoom rau txoj haujlwm no.

Kauj Ruam 3: Micropython Program

Micropython Txoj Haujlwm
Micropython Txoj Haujlwm

Yog tias koj nyiam coding thiab zoo siab tos txais qhov nyuaj me ntsis, tom qab ntawd ua tib txoj haujlwm hauv Micropython yuav yog qhov txaus siab rau koj. Dhau li, qhov version no lom zem dua!

Micropython version cov cai tseem ceeb ua raws tib lub tswv yim. Ib qhov sib txawv loj ntawm no yog tias peb tsis tuaj yeem siv Ultrasonic Ranger lossis Servo - tsis muaj cov qauv txheej txheem hauv Micro: ntsis micropython firmware rau cov no. Yog li, peb yuav tso chav Servo no rau hauv peb cov cai thiab siv hloov kho me ntsis Grove Ultrasonic Ranger Python code rau kev ntsuas nrug. Ib txoj hauv kev zoo dua yog tsim ob daim ntawv ib leeg.py cov ntaub ntawv thiab ntshuam lawv ua cov qauv - ib qho rau chav kawm Servo, lwm qhov rau Ultrasonic ranger. Tab sis peb yuav khaws txhua yam hauv ib qho, rau qhov yooj yim.

Lwm qhov sib txawv tseem ceeb yog kev siv lub suab hais lus, uas tso cai rau peb los ua kom paub Dalek lub suab paub:) Peb siv qhov ntsuas los ntawm cov ntaub ntawv no rau kev hais lus ua suab kom ua suab zoo li Dalek lub suab.

Mus rau qhov haujlwm no GitHub chaw cia khoom kom rub tag nrho Micropython code.

Kauj ruam 4: Ua Nws Koj Tus Kheej

Ua Koj Tus Kheej
Ua Koj Tus Kheej
Ua Koj Tus Kheej
Ua Koj Tus Kheej

Peb tau tsim qhov kev nthuav qhia muaj txiaj ntsig zoo nrog Micro: ntsis thiab Bitmaker Lite txuas ntxiv, uas tuaj yeem yog ob qhov kev kawm dawb huv thiab tiag tiag tuaj yeem pom siv hauv chav dej hauv tsev kom ceeb toom tib neeg kom ntxuav lawv txhais tes ntau dua. Tau kawg, kev sim thiab txhim kho tsis tau nres ntawm no - koj tuaj yeem xav txog txoj hauv kev los ua rooj plaub thiab teeb tsa kom ruaj khov dua thiab haum rau siv hauv tsev kawm ntawv pej xeem lossis tsev kawm qib siab. Lossis koj tuaj yeem txuas tus neeg hais lus sab nraud kom nce ntim.

Qhov muaj peev xwm tsis muaj qhov kawg thiab siv koj tus kheej lub tswv yim hauv kho vajtse thiab software yog tus plig ntawm Maker txav. Yog tias koj los nrog qee txoj hauv kev tshiab thiab nthuav los txhim kho txoj haujlwm no, thov qhia hauv cov lus hauv qab no. Tsis tas li, Bitmaker Lite los nrog chav kawm online koj tuaj yeem nkag tau ntawm TinkerGen's online course platform, https://make2learn.tinkergen.com/ dawb!

Yog xav paub ntau ntxiv txog Bitmaker Lite thiab lwm yam khoom siv kho vajtse thiab kws qhia txuj ci STEM, mus saib peb lub vev xaib, https://tinkergen.com/ thiab sau npe rau peb tsab ntawv xov xwm.

Pom zoo: