Cov txheej txheem:

Microbit Gun Light Sound Yam Khoom Ua Si: 5 Kauj Ruam
Microbit Gun Light Sound Yam Khoom Ua Si: 5 Kauj Ruam

Video: Microbit Gun Light Sound Yam Khoom Ua Si: 5 Kauj Ruam

Video: Microbit Gun Light Sound Yam Khoom Ua Si: 5 Kauj Ruam
Video: DIY Alarm using Home Assistant, Konnected, and Sonoff RF Bridge 2024, Kaum ib hlis
Anonim
Microbit Gun Light Sound Yam Khoom Ua Si
Microbit Gun Light Sound Yam Khoom Ua Si
Microbit Gun Light Sound Yam Khoom Ua Si
Microbit Gun Light Sound Yam Khoom Ua Si
Microbit Gun Light Sound Yam Khoom Ua Si
Microbit Gun Light Sound Yam Khoom Ua Si

Nov tsuas yog cov khoom ua si yooj yim ua los sim thiab siv kuv cov khoom thiab cov khoom siv, thiab rau kuv ua si ib puag ncig thiab khawb kuv qhov khaus uas yuav tsum tau ua qee yam.

Ua lub ntsiab lus ua khoom ua si, Kuv tsis tau ua kom nws zoo li qub, thiab ua rau nws tsuas yog kom muaj lub ntsej muag dav thiab poob ntawm rab phom.

Txij li thaum kuv ua qhov no yuav muaj ntau qhov chaw ntxiv nyob hauv lub thoob, koj tuaj yeem ntxiv cov yam ntxwv ntxiv, zoo li lub ntsuas hluav taws xob nrug deb deb, lossis PIR sensor, lossis tej zaum sim ua cov phom ntev (tej zaum tsis yooj yim) yog tias koj xav tau. Txawm li cas los xij, Kuv tsis tau muaj cov no tiag tiag (lossis kuv tsoo lossis tsis tuaj yeem paub tias lawv ua haujlwm li cas yog tias kuv muaj), thiab tsuas yog cov khoom siv txuas sab hauv. Koj tuaj yeem muaj peev xwm sim nthuav qhov no mus rau hauv lub tshuab laser tag yog tias koj xav tau, tab sis vim tsis muaj peev txheej thiab sijhawm (thiab tsuas yog qhov haujlwm tshem tawm), Kuv tsuas yog ua kom yooj yim.

Kauj ruam 1: Electronics

Electronics
Electronics
Electronics
Electronics
Electronics
Electronics
Electronics
Electronics

Cheebtsam siv:

  1. Micro ntsis
  2. Micro ntsis ntug txuas (txuas rau gpio)
  3. Micro roller hloov (rau txhais)
  4. Hais lus (rau lub suab)
  5. LED dawb ci (kom ua lub teeb nyem, Kuv muaj nws li seem)

Kuv tsuas yog txuas qhov sib piv rau micro ntsis. Txawm li cas los xij rau lub teeb ci ci, koj yuav tsum txuas ncaj qha rau GPIO ntawm qhov hloov, xws li lub zog txaus yuav muab rau nws kom qhib.

Koj tuaj yeem ntxiv lwm yam khoom siv hluav taws xob hauv lub thoob, piv txwv li, kuv tau sim ntxiv lub ntsuas hluav taws xob nrug deb deb (txawm tias nws tawg), lossis PIR sensor (Ntau ntxiv tom qab ntawd).

Kauj ruam 2: Software

Hauv ntej, software yog rau lub micro me me kom ua suab thaum twg cov menyuam switxh raug nias, thiab tias koj tuaj yeem hloov lub suab ntawm lub suab ua siv lub peev xwm ntsuas.

Kuv siv Javascript Blocks editor los kho qhov no (Kuv txhais tau tias, nws yooj yim thiab nrawm)

Kauj ruam 3: Rooj plaub

Case
Case
Case
Case
Case
Case
Case
Case

Cov ntaub ntawv tau ua hauv seem ntoo rau tus tuav, thiab acrylic rau lub thoob.

Cov ntoo tuav yog lub hauv paus ntoo ntev ntev nrog rau nthuav tawm sab saum toj thiab hauv qab, txhua qhov kub kub ua ke. Hauv qab tau tso tawm rau lub txhab nyiaj hluav taws xob kom swb. pob qhov rooj

Cov phom acrylic yog ib qho ntawm cov xim dub acrylic khoov (ua rau tsis zoo nrog cov hlau txuas) kom tsim tau cov duab U ntev, tawm hauv qab

Kauj Ruam 4: Muab Nws Txhua Qhov Ua Ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Kuv siv velcro tso txhua yam rau hauv qhov chaw, suav nrog cov menyuam hloov, micro me, coj teeb nyem thiab hais lus.

Cov coj tau nyam mus rau qhov taub ntawm lub thoob, thaum tus menyuam zaum zaum tau daig ntawm tus tes tuav qhov twg yuav ua rau. Lub microbit thiab tus neeg hais lus yuav raug kaw ntawm ob sab ntawm cov khoom ua si kom lawv tsis txhob ua raws li tus neeg siv.

Lub caij no, USB txuas txuas tau kub kub sab hauv tus tuav ua qhov txuas txuas rau lub txhab nyiaj. Lub txhab nyiaj fais fab yuav tuaj yeem xaub hauv qhov hollow tuav thiab ntsaws rau lub zog ntaus ntawv.

Lub peev xwm ntsuas yuav raug teeb tsa hla lub qhov ntawm tus kov ntsib tus neeg siv.

Kauj Ruam 5: PIR Sensor

PIR Sensor Cov
PIR Sensor Cov
PIR Sensor Cov
PIR Sensor Cov

Kuv tau ntxiv PIR Sensor ntxiv ntawm qhov taub ntawm chim. Nco tseg, kom muaj PIR ua haujlwm tau zoo, koj yuav tsum hla dhau qhov ib txwm ua kom nws ncaj los ntawm 3.3V. Nov yog cov lus qhia zoo txog yuav ua li cas.

Tom qab ntawd, Kuv nyuam qhuav txuas xov tooj rau hauv av, 3.3V txog 3.3V, thiab tso tawm rau GPIO 15.

Pom zoo: