Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Tsim Txoj Haujlwm
- Kauj ruam 2: Tus Encoder
- Kauj ruam 3: Tus Decoder
- Kauj Ruam 4: Hais "Nyob Zoo Ntiaj Teb"
Video: LabDroid: Morse Code Encoder/Decoder: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Nco tseg: Cov lus qhia no tsis tuaj yeem lees paub 1: 1 hauv qhov tshiab tshaj plaws ntawm LabDroid. Kuv yuav hloov kho sai sai no txoj haujlwm no yuav qhia koj tias koj tuaj yeem ua dab tsi nrog LabDroid. Txij li Lub Ntiaj Teb Nyob Zoo ib txwm ua raws cov ntawv, lub teeb lossis lub suab, Kuv xav rau LabDroid a Morse Code raws li kev sib txuas lus yuav yog ib qho piv txwv zoo.
Lub hauv paus ntsiab lus rau qhov no yog qhov yooj yim: Tom qab koj tau xa cov ntawv mus rau Android ntaus ntawv, cov ntawv tau muab txhais ua Morse Code thiab hloov pauv mus rau lub cev txav los ntawm lub vibrator built-in. Nyob rau tib lub sijhawm, tag nrho lub sijhawm ntsuas qhov ntsuas yuav raug nyeem kom thaum kawg rov qab ua tus qauv lees paub.
Cov cai koj yuav pom tsis qhia koj txoj hauv kev zoo tshaj los daws qhov teeb meem no. Ua siab dawb los ua koj tus kheej kev rov txhim kho rau tus lej nkag, tus txiav txim siab lossis lub hauv ntej kawg thiab qhia koj cov ntawv nrog zej zog! Thiab yog tias koj muaj ob lub cuab yeej hauv Android koj tuaj yeem sim cais cov encoder thiab decoder.
Yog tias koj nyiam lub tswv yim thov no tsuas yog ua raws LabDroid:
Lub Vev Xaib
Hackaday.io
Khoom siv
-
1x Android ntaus ntawv kom khiav daim ntawv thov
- Hauv 8.0+
- Vibrator
- Accelerometer
- 1x PC/MAC rau programm koj ntaus ntawv hauv
- 1x Network txuas koj lub PC/MAC thiab Android ntaus ntawv
- 1x lub app LabDroid
Kauj Ruam 1: Tsim Txoj Haujlwm
Ua ntej peb tuaj yeem pib nrog "coding" koj yuav tsum tau teeb tsa daim ntawv thov, tso nws thiab tsim qhov project.
Koj tuaj yeem tau txais LabDroid los ntawm Android Play Store (Txuas). Tom qab koj teeb nws tsuas yog qhib daim ntawv thov thiab lees txais qhov kev tso cai thov. (piv txwv li tsis muaj kev tso cai chaw koj tsis tuaj yeem siv GPS Node tom qab)
Tam sim no koj yuav tsum pom qhov ceeb toom nrog URL uas koj xav tau qhib kom nkag tau rau IDE. Tsuas yog coj koj lub PC/MAC thiab qhib qhov URL nrog qhov hloov tshiab kawg ntawm Chrome/Chromium.
Txhawm rau tsim txoj haujlwm tsuas yog nias lub pob ntxiv thiab muab nws lub npe (piv txwv li HelloWorld). Tom qab koj nyem tsim koj yuav tsum raug xa rov mus rau tus kws kho qhov project.
Kauj ruam 2: Tus Encoder
Hiav txwv:
- txhawm rau ntxiv cov node tsuas yog ob npaug nyem rau hauv chaw ua haujlwm
- txhawm rau txuas nrog nyem rau ntawm qhov chaw nres nkoj tso tawm, khaws cia thiab txav mus rau qhov chaw nres nkoj xav tau
- qee qhov ntawm cov chaw muaj teeb tsa (piv txwv li Script & Vibrator), tsuas yog ob npaug nyem rau hauv lub node kom qhib cov no
Okay tam sim no peb tuaj yeem pib siv lub encoder.
Ua ntej tshaj plaws peb xav tau WebSocket Node uas tso cai rau peb xa cov ntawv mus rau tus lej nkag. Ib qho ntxiv peb yuav ntxiv Script Node nrog ib qho kev nkag thiab ib qho tso tawm. Tsab Ntawv Node no tom qab yuav siv los txhais cov ntawv rau hauv cov lus txib rau lub vibrator. Vibrator Node yog qhov kawg uas peb xav tau ntxiv. Tam sim no txuas cov txiaj ntsig ntawm WebSocket nrog cov tswv yim los ntawm Script Node thiab ua tib yam rau txuas rau Script Node nrog Vibrator Node.
Peb teeb tsa cov ntaub ntawv tiav. Txhawm rau ua tus lej koj yuav tsum tso cov cai hauv qab no rau hauv Script Node:
Kauj ruam 3: Tus Decoder
Peb cov kauj ruam kawg yuav yog siv lub tshuab txiav txim siab uas yuav tsum pom qhov kev co thiab luam tawm cov cim sib xws (./-).
Lub decoder xav tau ob qho ntxiv:
- Script Node nrog ib lub tswv yim thiab ib qho tso tawm
- Accelerometer ntawm
Koj tsuas yog yuav tsum txuas rau hauv qhov kev txiav txim hauv qab no: Accelerometer Node -> Script Node
Thiab kawg tab sis tsis tsawg kawg ntawm no yog tus lej rau Script Node:
Kauj Ruam 4: Hais "Nyob Zoo Ntiaj Teb"
Tam sim no koj tau npaj pib qhov haujlwm.
Txog qhov ntawd koj tsuas yog yuav tsum nias lub pob ua si (kaum sab laug saum toj). Koj yuav tsum pom tias ntawm koj lub cuab yeej Android lub cav pom tshwm. Qhov no tseem yuav suav nrog Morse Code tus lej.
Txhawm rau ua Morse Code tus lej thiab txiav txim siab peb tsuas yog xav tau txoj hauv kev xa ntawv mus rau WebSocket. Yog tias koj paub yuav ua li cas thiaj zoo siab siv lub vev xaib yooj yim rau qhov ntawd. Yog tias tsis yog mus rau https://www.websocket.org/echo.html thiab txuas rau ws: // AndroidIP: 8081/neeg siv. Tom qab koj nias lub pob txuas koj yuav tsum muaj peev xwm ntaus qee yam hauv kab lus thib ob. Kuv xav qhia koj sim nws nrog SOS.
Koj lub cuab yeej Android yuav tsum tam sim no pib co thiab tib lub sijhawm koj yuav tsum pom cov cim hauv lub cav. Tom qab nws ua tiav lo yuav tsum luam qee yam xws li "lo lus: … --- …" (yog tias koj xa SOS).
Pom zoo:
Morse Code Chaw Nres Tsheb: 3 Kauj Ruam
Morse Code Chaw Nres Tsheb: Dit-dit-dah-dah! Kawm Morse Code nrog qhov yooj yim Arduino Uno project Qhov no yooj yim Arduino project yog Morse Code chaw nres tsheb. Morse Code yog txoj hauv kev sib txuas lus uas cim cov cim ua ntu ntu thiab kab zauv. Qhov kev siv hluav taws xob no siv piezo buzzer los
Arduino Morse Code Writer: 7 Kauj Ruam (nrog Duab)
Arduino Morse Code Writer: Kuv tau ua tus neeg hlau uas tuaj yeem hloov cov ntawv muab rau hauv Morse code thiab tom qab ntawd sau nws !! Nws tau ua los ntawm cov duab los qhia thiab Lego thiab rau cov khoom siv hluav taws xob Kuv siv Arduino thiab tsuas yog ob lub cav
Binary Tree Morse Decoder: 7 Kauj Ruam (nrog Duab)
Binary Tree Morse Decoder: a.articles {font-size: 110.0%; font-ceeb thawj: siab tawv; font-style: ntawv qaij; text-decoration: tsis muaj; keeb kwm yav dhau-xim: liab;} a.articles: hover {keeb kwm yav dhau xim: dub;} Cov lus qhia no piav qhia yuav txiav txim siab li cas Morse Code siv Arduino Uno R3.T
Infrared NEC Protocol Encoder thiab Decoder Board: 5 Cov Kauj Ruam
Infrared NEC Protocol Encoder thiab Decoder Board: Tau txais cov ntaub ntawv raw hloov lossis hloov pauv NEC IR teeb liab thiab hloov nws mus rau hauv bytes uas tau xa tawm qhov chaw nres nkoj. Tus lej baud tus lej tuaj yeem xaiv los ntawm ob qhov nrawm nrawm. Lub hom phiaj siv tsis raug xa tawm cov lus txib ua ntu zus nrog thav duab byte
Basys 3 Morse Decoder: 11 Kauj Ruam
Basys 3 Morse Decoder: Nov yog txoj haujlwm rau chav kawm hauv tsev kawm qib siab. Txoj haujlwm no tau sau hauv VHDL hauv qhov program hu ua Vivado. Cov dej num los tsim txhua tus qauv tsim nyog los siv Morse Decoder siv Basys 3 board. Lub rooj tsavxwm tau siv los coj tus lej morse los ntawm swi