Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 2: Kev Paub Tom Qab
- Kauj Ruam 3: Khoos phis tawj khoos phis tawj
- Kauj ruam 4: Programming
- Kauj ruam 5: Qhov tshwm sim
- Kauj Ruam 6: Qhov Chaw
Video: Ua Ultrasonic Distance Tester Nrog Micro: ntsis: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Niaj hnub no, peb yuav ua tus ntsuas ntsuas nrug deb nrug nrog micro: ntsis thiab ultrasonic sensor module.
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
1 x BBC micro: me ntsis
1 x: qob
1 x OLED module
1 x HC-SR04 ultrasonic module
Kauj Ruam 2: Kev Paub Tom Qab
HC-SR04 Cov hauv paus ntsiab lus
HC-SR04 yog ib hom ultrasonic nrug ntsuas ntsuas. Nrog tus qauv no, peb tuaj yeem txheeb xyuas lub sijhawm nyob nruab nrab ntawm ultrasonic xa thiab xa rov qab, tom qab ntawd hloov nws mus rau qhov deb. Nov yog lub hauv paus ntsiab lus:
- Siv IO chaw nres nkoj TRIG txhawm rau ntsuas kev ntsuas nrug nrog 10us qib hluav taws xob tsawg kawg.
- Txiav xa 8 40kHz square yoj thiab tshawb xyuas yog tias lub teeb liab rov qab los.
- Yog tias lub teeb liab tau rov qab los, tom qab ntawd tso tawm hluav taws xob qib siab los ntawm IO chaw nres nkoj TRIG. Lub sijhawm ntawm qib hluav taws xob siab yog lub sijhawm los ntawm ultrasonic xa thiab xa rov qab.
Nrug deb = (lub sijhawm siv hluav taws xob siab x qhov chaw suab (340m/s))/2
Nco tseg: Nrhiav hauv MakeCode rau lub tsev qiv ntawv kaw ultrasonic lawm. Koj tsis tas yuav sau cov cai nyuaj tsav tab sis tsuas yog siv lub tsev qiv ntawv yooj yim.
Kauj Ruam 3: Khoos phis tawj khoos phis tawj
1. Koj tuaj yeem xa mus rau kab lus rau kev sib txuas ntawm ultrasonic module thiab octopus.
2. Thaum tsav tsheb qhov hluav taws xob ntawm SR04 ultrasonic module yog 5V, yog li peb yuav tsum xaub lub ntsuas hluav taws xob hloov pauv ntawm octopus: ntsis mus rau qhov kawg ntawm 5V.
3. Plug OLED module rau hauv IIC cpnnector ntawm octopus: ntsis.
4. Thaum txuas nrog, koj tuaj yeem pom cov duab hauv qab no pom:
Kauj ruam 4: Programming
1. Nyem qhib https://makecode.microbit.org/ thiab nkag mus rau lub program interface
2. Saib sonar hauv ADD Pob, tom qab ntawd ntxiv lub tsev qiv ntawv ultrasonic
3. Saib OLED hauv ADD Pob, tom qab ntawd ntxiv lub tsev qiv ntawv rau OLED module
4. Kev pib ua OLED npo
5. Qhov tus pin txhais ua P14 thiab tus pin echo ua P15 nrog cm ua chav. Thiab tso saib cov ntaub ntawv xa rov qab ntawm lub vijtsam OLED
6. Thaum koj ua tiav koj txoj haujlwm, koj tuaj yeem tau txais tus lej tag nrho los ntawm qhov txuas no :
Lossis koj tuaj yeem rub tus lej rau hauv micro: ntsis ncaj qha los ntawm nplooj ntawv web hauv qab no
Kauj ruam 5: Qhov tshwm sim
Tam sim no koj tau ua tiav tsim cov txheej txheem ntsuas ultrasonic. Taw tes rau lub taub hau ultrasonic mus rau qhov khoom koj xav sim, tom qab ntawd koj yuav pom qhov kev ncua deb ntawm ntawm lub vijtsam OLED.
Kauj Ruam 6: Qhov Chaw
Kab lus no yog los ntawm:
Yog tias koj muaj lus nug, koj tuaj yeem tiv toj : [email protected].
Pom zoo:
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: Ib txoj hauv kev txuas ntxiv kev ua haujlwm ntawm micro: ntsis yog siv lub rooj tsav xwm hu ua moto: ntsis los ntawm SparkFun Electronics (kwv yees li $ 15-20). Nws zoo li nyuaj thiab muaj ntau yam ntxwv, tab sis nws tsis nyuaj rau kev ua haujlwm servo motors los ntawm nws. Moto: me ntsis tso cai rau koj
Micro: ntsis MU Vision Sensor rau Cov Pib Tshiab - Cov Ntawv Cim Tus Nqi thiab Tus lej Tus lej Cim: 6 Cov Kauj Ruam
Micro: me ntsis MU Kev Pom Kev Pom Zoo rau Cov Pib Tshiab - Cov Ntawv Cim Tus Nqi thiab Tus lej Cim Cim: Qhov no yog kuv phau ntawv qhia thib ob rau MU lub zeem muag pom kev. Hauv qhov haujlwm no peb yuav ua haujlwm micro: ntsis kom paub txog daim npav sib txawv los ntawm kev siv daim ntawv lo qhov tseem ceeb
Kev Txheeb Ze Nrog Micro: me ntsis thiab Sonar (HC-SR04 Module): 3 Cov Kauj Ruam (nrog Duab)
Kev Txheeb Ze Nrog Micro: me ntsis thiab Sonar (HC-SR04 Module): Lub lim tiam no kuv tau siv qee lub sijhawm ua si nrog BBC zoo heev micro: me ntsis thiab sonic sensor. Kuv tau sim ob peb qhov qauv sib txawv (ntau dua 50 hauv tag nrho) thiab kuv xav tias nws yuav zoo yog li qhia qee qhov ntawm kuv cov txiaj ntsig.Qhov zoo tshaj plaws uas kuv tau pom txog tam sim no yog Spar
Kev ntsuas lub teeb thiab xim Nrog Pimoroni Enviro: ntsis rau Micro: ntsis: 5 Kauj Ruam
Kev ntsuas lub teeb thiab xim Nrog Pimoroni Enviro: me ntsis rau Micro: me ntsis: Kuv tau ua haujlwm ntawm qee lub cuab yeej uas tso cai ntsuas lub teeb thiab xim yav dhau los thiab koj yuav pom ntau txog qhov kev xav tom qab kev ntsuas ntsuas cov lus qhia ntawm no thiab ntawm no.Pimoroni muaj tsis ntev los no tso tawm enviro: me ntsis, ntxiv rau
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: 3 Kauj Ruam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: Qhov haujlwm no yuav pab koj txuas 18 LEDs (6 Liab + 6 Xiav + 6 Daj) rau koj lub Rooj Tswjhwm Saib Arduino thiab txheeb xyuas koj lub khoos phis tawj Lub Suab Suab Lub suab lub sijhawm tiag tiag thiab xa lawv mus rau cov LEDs kom pom lawv raws li qhov cuam tshuam (Snare, High Hat, Kick)