Cov txheej txheem:

LiFi Kev Sib Txuas Lus: 6 Cov Kauj Ruam
LiFi Kev Sib Txuas Lus: 6 Cov Kauj Ruam

Video: LiFi Kev Sib Txuas Lus: 6 Cov Kauj Ruam

Video: LiFi Kev Sib Txuas Lus: 6 Cov Kauj Ruam
Video: ICU- TXIV NEEJ TAUG KEV | New song [official Mv] nkauj tawm tshiab 2023 2024, Kaum ib hlis
Anonim
LiFi Kev Sib Txuas Lus
LiFi Kev Sib Txuas Lus

Hauv cov lus qhia no koj yuav kawm paub siv LiFi kev sib txuas lus (xa thiab txais) ntawm software thiab kho vajtse qib.

Kauj Ruam 1: Sib Sau Ua Ke

Sau Cov Cheeb Tsam
Sau Cov Cheeb Tsam

Yam uas koj xav tau:

-Arduino thiab Zedboard

-oscilloscope

-Resistors: 8k ohm, 1k2 ohm, 1k ohm, 220 ohm thiab 27 ohm

-opamp, capacitor, zenerdiode, photodiode, LEDs thiab breadbord.

Kauj Ruam 2: Tsim Tus Qauv

Tsev Tsim
Tsev Tsim
Tsev Tsim
Tsev Tsim
Tsev Tsim
Tsev Tsim

Ntawm daim duab, cov phiaj xwm rau tus txais tau muab.

Ua ntej tshaj, txuas lub anode (qhov tsis zoo ntawm lub dav hlau) ntawm photodiode mus rau 3.3V (Vcc), cathode (qhov davhlau ya nyob twg zoo) rau hauv av los ntawm 8k2 ohm resistor. Kuj txuas cov cathode mus rau lub davhlau ya nyob twg zoo ntawm koj opamp, uas yuav siv los ua kom nrov nrov. Peb tab tom siv cov lus tsis zoo yog li txuas 2 tus tiv thaiv rau qhov tsis zoo ntawm lub opamp, 1 (1k2 ohm) mus rau qhov tso tawm ntawm opamp, lwm qhov (220 ohm) mus rau hauv av. Txhawm rau tiv thaiv koj tus GPIO tus pin, txuas qhov sib thooj zener diode ntawm 3.3V hauv kab nrog 1k2 ohm resistor rau hauv av. Cov zis ntawm opamp xav tau txuas nrog GPIO tus pin.

Lub transmitter tsuas yog suav nrog ib qho 27 ohm resistor thiab LED nyob rau hauv series. Ib kawg mus rau GPIOpin thiab lwm qhov rau hauv av, ua kom ntseeg tau tias luv luv ntawm LED txuas nrog hauv av.

Yog tias cov qauv tsim ua haujlwm koj tuaj yeem ua PCB rau nws. Ntawm PCB peb tau muab cov xa khoom thiab tus txais ntawm ib lub rooj tsavxwm, yog li peb thiaj li tuaj yeem xa cov ntaub ntawv hauv ob qho kev qhia. Koj tseem tuaj yeem pom PCB cov lej hauv cov duab rau tus txais thiab xa tawm.

Kauj Ruam 3: Kuaj Qhov Tsim

Siv lub oscilloscope los tshuaj xyuas tus qauv vim tias lub teeb pom kev ib puag ncig thiab qhov sib txawv ntawm cov duab diodes tuaj yeem muab cov txiaj ntsig sib txawv hauv cov teeb liab tso tawm.

Txuas koj lub tshuab xa mus rau arduino thiab tsim lub voj voos xwmfab nrog qhov xav tau zaus. Muab lub transmitter LED kaw rau ntawm daim duab diode.

Txuas ib qho kev sojntsuam mus rau lub davhlau ya nyob twg zoo ntawm koj opamp, lwm qhov rau qhov tso tawm ntawm koj opamp. Yog tias koj lub teeb liab tso tawm tsis dhau qhov tsis zoo tawm tswv yim resistors (1k2 ohm, 220 ohm) yuav tsum tau hloov pauv. Koj muaj 2 txoj kev xaiv, nce 1k2 ohm resistor lossis txo 220 ohm resistor. Yog tias cov zis siab dhau, ua qhov tsis sib xws.

Yog tias txhua yam zoo, ua mus rau qib tom ntej.

Kauj Ruam 4: Tau Txais Txhua Qhov Tsim Nyog Software

Tau Txais Txhua Qhov Tsim Nyog Software
Tau Txais Txhua Qhov Tsim Nyog Software

Ntawm daim duab, cov txheej txheem sib txawv tuaj yeem pom los siv LiFi. Txhawm rau txiav txim siab, tib cov kauj ruam yuav tsum tau ua nyob rau hauv rov qab.

Txog qhov haujlwm no qee lub tsev qiv ntawv xav tau, lawv suav nrog hauv cov ntaub ntawv muab thiab ntawm no yog qhov txuas mus rau github chaw cia khoom:

-Reed-Solomon:

-Convolutional encoder:

Txhawm rau kom tau txais cov ntaub ntawv los ua yam peb xav tau, peb tau ua qee qhov kev hloov pauv hauv lawv yog li nws yog qhov tsim nyog los siv peb cov ntawv ntawm cov tsev qiv ntawv, suav nrog hauv cov ntawv.

Tom qab qhov kev hloov kho tus lej nkag mus, ib qib kawg yuav tsum tau ua ntu zus, tus lej manchester. Cov ntaub ntawv los ntawm qhov kev sib cav sib cav tau xa mus rau qhov tsis sib haum. Qhov tsis zoo no tau nyeem hauv PL ib feem ntawm zedboard, txoj haujlwm tau suav nrog hauv 'LIFI.7z' cov ntaub ntawv. Nrog txoj haujlwm koj tuaj yeem tsim koj tus kheej cov kwj rau zedboard lossis koj tsuas tuaj yeem siv cov dej ntws uas peb tau muab. Txhawm rau siv cov dej ntws no koj yuav tsum nruab Xillinux 2.0 ntawm zedboard ua ntej. Kev piav qhia yuav ua li cas yog muab rau ntawm Xillybus lub vev xaib.

Kauj Ruam 5: Ua Tus Thawj Coj

Yuav tsum tau ua ob txoj haujlwm sib cais, ib qho rau tus xa thiab ib qho rau tus txais. Txhawm rau ua li ntawd, cov lus txib hauv qab no yuav tsum tau ua tiav ntawm zedboard:

- Tus xa tawm: g ++ ReedSolomon.cpp Interleaver.cpp viterbi.cpp Transmission.cpp -o Tus Kws Tshaj Lij

- Tus txais: g ++ ReedSolomon.cpp Interleaver.cpp viterbi.cpp Tus txais.cpp -o Tus Txais

Kauj Ruam 6: Xeem Txhua Yam

Txuas tus xa mus rau JD1_P tus pin thiab tus txais rau JD1_N tus pin ntawm zedboard. Nco ntsoov hloov cov ntawv txwv yog tias koj xav hloov tus qauv pins.

Txhawm rau ntsuas yog tias txhua yam ua haujlwm, qhib 2 lub qhov rai qhov rai hauv PS ntu. Hauv ib lub davhlau ya nyob twg ua tiav qhov tau txais ua ntej. Tom qab ntawd, ua tiav qhov kev xa tawm hauv lub qhov rai dav dav thib ob.

Yog tias txhua yam mus raws li nws yuav tsum tau, qhov tshwm sim yuav tsum zoo ib yam li ntawm daim duab saum toj no.

Pom zoo: