Cov txheej txheem:

MVRK's Mandalorian Tracking Fob: 8 Kauj Ruam (nrog Duab)
MVRK's Mandalorian Tracking Fob: 8 Kauj Ruam (nrog Duab)

Video: MVRK's Mandalorian Tracking Fob: 8 Kauj Ruam (nrog Duab)

Video: MVRK's Mandalorian Tracking Fob: 8 Kauj Ruam (nrog Duab)
Video: Custom Iron Man suit (Cosplay, mark 17 mk 33, Comic-Con, 3D printing, motorization, printed printer) 2024, Hlis ntuj nqeg
Anonim

Nws yog Lub Tsib Hlis 4, lwm yam hu ua Hnub Tsov Rog Hnub, hnub so ze thiab zoo rau peb lub siab. Xyoo no peb txiav txim siab ua kev zoo siab nws txawv me ntsis dua li xyoo dhau los. Nrog rau kev sim thev naus laus zis thiab tsim khoom-phiaj xwm, peb coj txoj hauv kev nyuaj thiab hloov nws mus rau qhov yooj yim ntawm qhov haujlwm hauv tsev raws li peb tau ua peb cov khoom siv ntawm kev txhawb siab los ntawm ib qho ntawm peb nyiam qhia.

Cov Lus Qhia no xav tias koj muaj qee qhov kev paub dhau los lossis kev paub dhau los nrog Arduino lossis lwm lub rooj tswj hwm kev tswj hwm microcontroller. Yog tias koj xis nyob nrog qhov ntawd, koj yuav ua tau zoo ntawm no! Txheeb xyuas cov khoom siv hauv qab no kom pib!

Kev tsis lees paub: Cov ntawv no tsis muaj feem cuam tshuam nrog Disney, Disney+, lossis Lucasfilm. Ntxiv mus, MVRK tsis lav lossis lees paub cov lus qhia no. Thov nyob nyab xeeb thiab tsim nyob hauv niam txiv kev saib xyuas.

Khoom siv

  • ESP32 board (peb siv Firebeetle ESP32 los ntawm DFRobot)
  • Lub roj teeb me me 3.7V LiPo
  • LED liab

Koj tseem yuav xav lob tus qauv rau 3D luam ntawv los ntawm hauv qab no.

Thiab rub cov cai hauv qab no. Txoj haujlwm no xav tau ESP32 cov laug cam los teeb tsa hauv Arduino IDE. Rau cov lus qhia tag nrho, txheeb xyuas cov nom github rau Arduino ESP32 ntawm no.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas

MVRK version ntawm kev taug qab fob siv Bluetooth Tsawg Zog (BLE) txhawm rau taug qab cov yuam sij, xov tooj, lossis lwm yam khoom siv BLE qhib lossis beacons. Peb siv ESP32 bluetooth qhib lub microcontroller thiab lub roj teeb LiPo me me los txuas rau BLE ntaus ntawv thiab taug qab nws lub teeb liab lub zog. Qhov ze dua qhov kev taug qab fob tau txais rau cov cuab yeej xaiv (lossis khoom plig), lub zog teeb liab muaj zog dua thiab lub teeb ci ntawm lub xub ntiag zoo dua.

Kauj Ruam 2: Bluetooth Tsawg Zog (BLE) Yog Dab Tsi?

Bluetooth Low Energy (BLE) yog dab tsi?
Bluetooth Low Energy (BLE) yog dab tsi?

Bluetooth Tsawg Zog (BLE) yog Bluetooth tus qauv tsim los muab kev txo hwj chim noj thaum tswj hwm cov txiaj ntsig zoo ib yam li Bluetooth li niaj zaus. BLE cov cuab yeej ua zoo li bluetooth servers thiab tshaj tawm lawv cov ntaub ntawv sib txuas txhua ob peb feeb mus rau ib puag ncig. Lub sijhawm tshaj tawm yog txawv rau txhua lub cuab yeej thiab tseem tuaj yeem teeb tsa tau ntawm qee yam khoom siv. Yog tias koj tsis paub nrog BLE, nws yuav tsum txhua qhov pib nkag siab hauv ntu tom ntej.

Kauj Ruam 3: Txoj Cai

Txoj Cai
Txoj Cai

Qhov no tuaj yeem ua kom me ntsis. BLE cov cuab yeej tsis tag nrho tshaj tawm nyob rau tib lub sijhawm, lossis tsis ua txhua lub cuab yeej txhua qhov txuas sib txuas. Ua ntej pib ntawm no, peb xav qhia kom tau txais BLE scanning app rau koj lub xov tooj. Yog tias koj nyob ntawm iOS zoo li peb, BLE Scanner ua haujlwm tau zoo. Cov apps no yuav tso cai rau koj pom BLE cov cuab yeej nyob ib puag ncig koj thiab txuas rau lawv kom kawm paub txog cov kev pabcuam uas lawv muab. BLE cov kev pabcuam tsim nyog tham txog ntawm no vim tias lawv yog qhov tseem ceeb rau qhov koj yuav txuas nrog lub cuab yeej koj xav taug qab li cas.

Txhua qhov kev pabcuam muaj tus lej cim thoob ntiaj teb (UUID) kom tsis txhob sib xyaw nrog lwm cov khoom siv nyob ze. Hauv txhua qhov kev pabcuam, koj yuav pom tus yam ntxwv. cov no kuj muaj UUIDs. Cov yam ntxwv no tuaj yeem nyeem, sau, sau yam tsis teb, ceeb toom, thiab lwm yam. Saib daim duab saum toj no txog cov kev pabcuam thiab cov yam ntxwv. Nws yooj yim tshaj plaws los xav txog cov kev pabcuam zoo li cov ntawv thiab cov yam ntxwv zoo li cov ntaub ntawv hauv cov ntawv ntawd.

Yog tias koj xav kawm paub ntau ntxiv txog cov kev pabcuam thiab tus yam ntxwv, nyem qhov no rau tus pib zoo qhia rau GATT Bluetooth Standard.

--

Txhua lub cuab yeej BLE uas koj tuaj yeem txuas nrog siv lub tracker no muaj UUID uas nws siv los tshaj tawm nws lub xub ntiag rau cov cuab yeej nyob ze. Koj yuav zoo li xav tau ib qho app zoo li qhov tau hais ua ntej hauv kev txhawm rau nrhiav nws. Thaum koj tau pom lub cuab yeej hauv koj lub app, txuas rau nws. Nco ntsoov tias txhua lub cuab yeej BLE txawv, yog li nws yuav siv qee qhov kev sim thiab yuam kev los nrhiav UUID raug, tab sis ib zaug koj ua, tsuas yog ntsaws nws rau hauv tus lej raws li tshaj tawm Cov cuab yeej. Txhua yam hauv txoj cai tau hais tawm, yog li koj tuaj yeem pom qhov koj tab tom nrhiav.

Tom ntej no peb nyob tom qab tus yam ntxwv. Qee lub cuab yeej siv cov kev pabcuam tshaj tawm uas txawv dua li cov uas muaj tus yam ntxwv uas peb xav tau. Yog tias qhov no yog qhov xwm txheej, tuav qhov sib txawv UUID thiab ntsaws nws ntawm kev pabcuamUUID, txwv tsis pub, tsuas yog teeb tsa serviceUUID sib npaug rau tshaj tawm Cov Khoom Siv. Tam sim no, hauv qhov kev pabcuam koj tau txuas nrog, saib rau tus yam ntxwv nyeem. Lub app yuav muab koj qhov ntev UUID, lossis nws tsuas yog 4 tus cim. Ib qho twg yog qhov zoo raws li UUID txhais hauv cov cai yuav suav nrog nws. Txuas qhov UUID rau hauv tus yam ntxwv UUID thiab koj tau ua tiav!

Nyem rau ntawm lub rooj tsavxwm, qhib qhov saib ua ntej thiab pom yam koj tau txais! Yog tias txhua yam zoo, nws yuav tsum txuas rau koj lub cuab yeej thiab pib sau npe tus nqi RSSI (tau txais lub cim qhia lub zog). Qhov qis RSSI tus nqi, ua kom lub zog muaj zog zoo dua. RSSI yog qhov qhia tau zoo ntawm kev sib thooj tab sis tsis zoo tag nrho. Yog tias koj lub teeb tsis ntsais muag li cas koj xav tau, nqes mus rau hauv qab ntawm txoj cai thiab kho qhov txiaj ntsig. Muaj cov lus piav qhia yuav ua li cas.

Raws li kev ceeb toom, tsis yog txhua lub cuab yeej BLE yuav ua haujlwm nrog tus ntsuas no. Qee lub cuab yeej yuav tsis kam txuas. Lwm tus yuav txiav tawm tom qab ob peb lub sijhawm. Thiab qee qhov tsuas yog yuav tsis tshaj tawm UUID tsim nyog los txuas. Peb tau ua tiav nrog cov xov tooj, tus nrhiav pom tseem ceeb, thiab txawm tias yog BB8 Sphero! Tawm cov lus hauv qab no qhia rau peb paub tias koj tab tom nrhiav dab tsi!

Kauj ruam 4: Soldering

Soldering
Soldering

Zoo nkauj ncaj nraim rau ntawm no. Txuas tus pin cathode ntawm koj LED mus rau GND tus pin ntawm koj lub rooj tsavxwm thiab tus pin anode rau PIN2. Koj tuaj yeem hloov qhov no yog tias koj nyiam, tsuas yog nco ntsoov tawm me ntsis chav me me rau LED kom haum qhov nws xav tau mus. Peb siv ob peb tus dhia dhia luv luv thiab qee qhov cua sov kom nqes los ntawm no.

Kauj Ruam 5: 3D Qauv thiab Luam Ntawv

3D Qauv thiab Luam Ntawv
3D Qauv thiab Luam Ntawv
3D Qauv thiab Luam Ntawv
3D Qauv thiab Luam Ntawv

Tus qauv tsim nyog rau feem ntau siv 3D luam ntawv. Peb siv lub tshuab luam ntawv Elegoo Mars thiab luam tawm nws dawb. Nws tau dhau los ua qhov zoo thiab cov ntawv luam tawm tuaj yeem nqa tawm qhov nthuav dav hauv cov ntawv luam tawm. Tab sis qhov ntawd tsis tsim nyog tag nrho ntawm no. lub tshuab luam ntawv filament zoo yuav tsum ua ib yam nkaus. Tsuas yog nco ntsoov tias koj muaj kev txhawb nqa tsim nyog thiab koj yuav tsum zoo!

Kauj Ruam 6: Xim Xim / Huab Cua

Kev pleev xim thiab ua kom huab cua puag yog ib yam lom zem tshaj plaws uas koj tuaj yeem ua tau raws li tus tsim khoom. Ua nws "koj li" thiab muab txhua qhov khawb thiab khawb qhov rov qab yog qhov tshwj xeeb. Yog li peb yuav tsis qhia koj raws nraim yuav ua li cas koj thiaj li taug qab fob, tab sis peb tuaj yeem muab qee qhov lus qhia rau koj.

Peb tau muab lub hauv paus tseem ceeb ntawm tus taug qab lub tsho tiv no ntawm cov xim dub matte thiab siv Rub 'N Buff los sau rau hauv qhov chaw nws yog xim hlau, ntxiv rau ntxiv qee qhov khawb. Tsis tas yuav hnyav nrog cov khoom no. Kuv me ntsis mus txoj kev ntev.

Lub kav hlau txais xov tau zoo heev thaum peb muab nws lub hauv paus dub thiab siv cov txheej txheem hu ua txhuam txhuam ntxiv rau xim av thiab xim liab kom zoo li xeb.

Tsis muaj txoj hauv kev tsis raug los ua nws, tab sis yog tias koj tshiab rau cov tswv yim no, muaj ntau ntau cov vis dis aus qhia zoo nyob rau ntawd. Hmoov zoo thiab qhia koj li hauv cov lus!

Pom zoo: