Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Kho Vajtse
- Kauj Ruam 2: Tsim Pawg Thawj Coj
- Kauj ruam 3: Software
- Kauj Ruam 4: Muaj peev xwm thiab Nta
- Kauj Ruam 5: Qhov Kawg
Video: Python RF Kev Txhim Kho Khoom Siv: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Ua ntej tshaj plaws, Kuv xav qhia me ntsis txog qhov kuv nkag mus rau hauv RF cov khoom thiab vim li cas kuv thiaj ua haujlwm ntawm txoj haujlwm no.
Raws li cov tub ntxhais kawm tshawb fawb computer nrog kev nyiam rau kho vajtse, Kuv tau pib kawm qee qhov kev kawm uas cuam tshuam nrog cov teeb liab wireless thiab kev nyab xeeb hauv kev sib txuas lus wireless thaum Lub Kaum Hli 2018. Kuv tau pib sim sai nrog RTL-SDR thiab HackRF software-txhais cov xov tooj cua thiab nrog tawm-the- txee Arduino RF modules.
Qhov teeb meem yog: SDRs tsis tuaj yeem nqa tau txaus rau kuv lub hom phiaj (ib txwm xav tau nqa lub khoos phis tawj, lub kav hlau txais xov thiab lwm yam) thiab pheej yig Arduino RF cov qauv tsis muaj peev xwm txaus raws li lub teeb liab lub zog, kev tsim nyog tau txais, ntau zaus thiab kev siv tshuab.
CC1101 tus kav hlau txais xov los ntawm Texas Instruments yog qhov kev xaiv zoo rau me me tab sis muaj peev xwm RF cov xa xov uas tseem pheej yig heev. Tib neeg tau tsim tej yam zoo nrog lawv, zoo li DIY SDRs thiab khoom zoo li ntawd.
Lwm qhov uas kuv xav hais nrog lub ncauj lus no yog CircuitPython. Nws yog hom lus tshiab los ntawm microcontrollers uas kuv tau hnov ntau yam khoom zoo txog yog li kuv xav sim nws. Nws hloov tawm tias kuv txaus siab rau nws ntau, tshwj xeeb tshaj yog ua ke nrog Adafruit's Feather M4 Express board uas kuv kuj siv hauv txoj haujlwm no. Nws yooj yim heev rau kev debug raws li koj tsis tas yuav suav cov kev cai tsim khoom txhua lub sijhawm koj sim hloov pauv me me hauv koj cov cai, koj tau txais REPL console thiab koj cov lej kuj tseem nyob ntawm microcontroller nws tus kheej uas txhais tau tias koj tuaj yeem nqa nws ncig, ntsaws nws rau hauv ntau lub khoos phis tawj thiab koj yuav ib txwm tuaj yeem hloov pauv mus.
Kauj Ruam 1: Cov Khoom Kho Vajtse
Dab tsi koj yuav xav tau los theej tawm txoj haujlwm no:
- Adafruit Feather M4 Express
- 2x Texas Instruments CC1101 Transceiver + Antenna
- Adafruit FeatherWing OLED
- 3.7 V LiPo
Qhov tseem ceeb qhov no yog txhua yam koj xav tau kom muaj lub ntsej muag zoo nkauj thiab muaj peev xwm RF kis tau tus mob, tab sis raws li koj tuaj yeem pom hauv daim duab nws yuav tsis muaj kev ntseeg tau thiab huv si nrog txhua cov jumper xov hlau.
Yog li kuv tsim tus txheej txheem PCB siv https://easyeda.com/ thiab xaj nws los ntawm JLCPCB.com (pheej yig heev thiab zoo heev!) Txhawm rau txuas txhua yam ua ke. Qhov no kuj tau tso cai yooj yim sib xyaw 3 cov nyees khawm thiab LEDs rau cov neeg siv cov tswv yim thiab cov xwm txheej tso tawm.
Thiab thaum kawg, Kuv 3D luam tawm me ntsis npog rau sab nraum qab ntawm PCB yog li nws yuav tsis tawm tsam dab tsi thiab zaum tiaj tus ntawm lub rooj.
Yog tias koj yog tus tshiab rau Electronics thiab PCB tsim, Kuv xav kom txheeb xyuas cov Lus Qhia no: Cov Khoom Siv Hluav Taws Xob, Cov Qauv Tsim Vaj Huam Sib Luag!
Hauv cov ntawv txuas koj tuaj yeem pom cov ntaub ntawv Gerber rau kuv PCB. Yog tias koj txiav txim siab kom nws tsim khoom, koj yuav xav tau ob peb yam ntxiv uas kuv tus kheej tau xaj los ntawm LCSC, txij li lawv tau cuam tshuam nrog JLCPCB yog li lawv muab nkoj txhua yam ua ke uas txuag tau me ntsis nqi thauj khoom thiab cov khoom tseem yog pheej yig heev muaj. Saib BOM rau cov npe ntxaws. Kuv txhob txwm xaiv qhov loj pob loj ntawm 0805 rau cov khoom siv SMD yog li txhua tus tuaj yeem tuaj yeem muab tes rau lawv rau ntawm PCB!
Kauj Ruam 2: Tsim Pawg Thawj Coj
Hauv thawj daim duab peb tuaj yeem pom PCBs yam tsis muaj "kev hloov kho" ua tiav - lawv tuaj zoo li no los ntawm lub hoobkas. Kev txiav kom huv (tsis muaj v-zawj, ua tiav) thiab zoo vias ntawm txhua qhov ntawm THT qhov.
Yog tias koj xav siv cov LEDs koj yuav tsum tau muab lawv txuas nrog rau cov SMD resistors. Cov resistors feem ntau muab zais hauv qab lub microcontroller tab sis pom hauv daim duab thib ob uas qhia tau tias lub rooj sib dhos tag nrho. Yog tias koj tsis muaj kev paub ntau nrog kev siv tshuaj zawv plaub hau, nws tuaj yeem ua qhov nyuaj me ntsis los txhawm rau SMD, tab sis nws yog hom xaiv tau thiab txhua yam ntawm cov khoom tseem ceeb yog THT. Kuv ib txwm nyiam los qhia Dave (EEVblog) cov vis dis aus thiab tau saib qhov no kuv tus kheej: EEVblog #186 - Kev Qhia Ua Phem Tshooj 3 - Nto Mount. Nws zoo nkauj ntev tab sis tsim nyog nws yog tias koj tshiab rau cov khoom no!
Nws hais txog qhov no ib yam nkaus, tab sis: ua tib zoo saib xyuas cov neeg tawm tsam thiab LEDs ua ntej, tom qab ntawd khawm ob thiab lub taub hau thaum kawg. Txoj hauv kev no koj ib txwm tuaj yeem siv lub rooj los thawb tawm cov khoom tiv thaiv los ntawm hauv qab thiab cov laug los ntawm sab saum toj (PCB tig rov qab).
Tom qab muag txhua yam ntawm, koj tsuas tuaj yeem ntsaws rau hauv Feather M4 thiab ib lossis ob lub kav hlau txais xov thiab kho vajtse tau npaj txhij! Txij li thaum peb tsis ua kom zoo ntawm cov khoom no, peb ib txwm tuaj yeem tshem lawv tawm ntawm lub rooj tsavxwm thiab siv lawv rau lwm qhov haujlwm uas yog qhov zoo!
Thov nco ntsoov tias hauv daim duab thib peb kuv muaj tus txiv neej luv luv ntawm lub Plaub Hlis yog li kuv tsis tuaj yeem teeb OLED rau saum. Kuv yuav tsum tau desolder lawv thiab ntxiv Feather stacking headers. Yog tias koj xav siv OLED, tau txais cov kab ntawv sib dhos tam sim ntawd, ncaj ncees: D Desoldering tsuas yog mob.
Kauj ruam 3: Software
Nrog kho vajtse tiav, cia peb tham txog software.
Raws li tau hais hauv qhov kev taw qhia, M4 sau Python code, tab sis pom tseeb tsis muaj lub tsev qiv ntawv rau CC1101 tsis muaj nyob hauv Python lus. Yog li kuv tau ua dab tsi DIYers ua thiab sau kuv tus kheej. Koj tuaj yeem pom nws ntawm no:
Nws tsis txhawb txhua yam uas tus TI zoo tshaj plaws muaj peev xwm ua tau tab sis nws txaus los xa thiab tau txais ASK-cim cov ntaub ntawv ntawm txhua zaus yooj yim. Kuv muaj peev xwm sib tham nrog RF-tswj phab ntsa nyob nrog rau kuv tsev neeg lub tsheb los ntawm kev siv lub tsev qiv ntawv no.
Kuv kuj tseem yuav txuas ntxiv ua haujlwm rau nws thiab yog tias koj muaj lus nug, cov lus thov tshwj xeeb lossis xav pab txhawb rau txoj kev txhim kho, thov hu rau kuv!
Kauj Ruam 4: Muaj peev xwm thiab Nta
Txij li thaum kuv tsim cov cuab yeej no los siv ob lub kav hlau txais xov thiab cov teeb tsa tau zoo TI CC1101 tus xa xov, koj muaj peev xwm ntau, tshwj xeeb tshaj yog nyob hauv thaj chaw uas koj tsis xav kom nqa dab tsi ntau dua li lub xov tooj ntawm tes.
Koj tuaj yeem piv txwv ntes cov cim ntawm kev sib txuas lus hauv 433MHz band thiab xa lawv rov qab mus rau koj lub chaw nres tsheb hauv tsev nrog tus kav hlau txais xov thib ob ua haujlwm ntawm 868MHz.
Lossis yog tias koj xav kawm thiab sim ua kom rov muaj suab nrov, koj tuaj yeem muaj lub mloog thiab lub xov tooj cua cuam tshuam uas xa nws tus kheej lub cim qhia sai li sai tau thaum kis tau pom, tsis tas ua "txoj hauv kev ib txwm" ntawm kev sim hloov ntawm RX thiab TX raws li sai li sai tau.
Lwm qhov txias heev txog Feather M4 yog tias nws los nrog onboard LiPo them nqi hluav taws xob yog li koj tsuas yog ntsaws koj lub roj teeb thiab npaj mus. Hauv kuv qhov xwm txheej, nrog ib tus kav hlau txais xov nyob rau hauv RX hom, mloog rau kev xa xov thiab OLED lub vijtsam ntawm, lub cuab yeej yuav khiav yuav luag 20 teev ntawm 1000 mAh LiPo.
Siv OLED npo - tab sis kuj ua tau yam tsis muaj nws, xws li siv peb qhov xwm txheej LEDs - koj tuaj yeem muaj ntau txoj haujlwm thiab xaiv qhov twg koj xav kom khiav nrog cov nyees khawm nyob hauv qab ntawm pawg thawj coj saib. Kuv tus kheej txawm siv tag nrho cov ntawv qhia zaub mov nrog hom xaiv los ntawm thiab kev teeb tsa zaus saib thiab lwm yam.
Nws kuj tseem tuaj yeem tuav tes rau qee qhov kev siv tshuab hauv tsev! Zoo li kuv tau hais, Kuv tau muaj peev xwm sib txuas lus nrog lub zog hluav taws xob ua tiav (ntes cov cim qub ib zaug thiab rov ua dua txhua lub sijhawm koj xav tau) thiab yog tias koj tshawb fawb me ntsis hauv Is Taws Nem koj yuav pom sai npaum li cas cov cuab yeej tseem ua haujlwm ntawm cov zaus no nrog cov lej tsis hloov pauv. Txawm tias qee qhov chaw tso tsheb tuaj yeem kaw thiab khaws nrog cov cuab yeej no thiab tom qab ntawd siv thaum twg los xij koj xav tau qhib lossis kaw koj lub nkas -las. Yog li qhov no tuaj yeem dhau los ua chaw nyob thoob ntiaj teb rau txhua yam ntawm koj li RF!
Kuv tus kheej tau rov ua dua RollJam tawm tsam nrog cov cuab yeej no ib yam nkaus, tab sis yuav tsis tso tawm cov cai vim tias jamming tsis raug cai hauv ntau qhov chaw yog li yog tias koj sim ua ib yam dab tsi zoo li no, sab laj nrog koj cov cai hauv cheeb tsam;-)
Txij thaum pawg thawj coj pom zoo li USB disk thaum koj ntsaws rau hauv thiab CircuitPython muaj cov yam ntxwv zoo li no, koj kuj tseem tuaj yeem muaj cov cuab yeej kaw cov ntaub ntawv xa xov RF thiab khaws cov ntaub ntawv demodulated (huag yog, cov xa tawm ua qhov no tau txais!) uas tom qab koj tuaj yeem luam theej rau koj lub PC thiab tshuaj xyuas rau lub hom phiaj kev tshawb fawb xws li thim rov qab engineering ntawm kev sib kis.
Kauj Ruam 5: Qhov Kawg
Txhua qhov kev tawm tswv yim, cov lus qhia thiab kev koom tes rau txoj haujlwm no tau txais tos thiab xav nug cov lus nug yog tias koj muaj!
Pom zoo:
Kev Txhim Kho De La Carte TagTagTag Pour Nabaztag / Txhim Kho TagTagTag Board ntawm Koj Nabaztag: 15 Kauj Ruam
Kev Txhim Kho De La Carte TagTagTag Pour Nabaztag / Txhim Kho TagTagTag Board ntawm Koj Nabaztag: (saib hauv qab no rau lus Askiv version) La carte TagTagTag a été créée en 2018 lors de Maker Faire Paris pour faire renaitre les Nabaztag et les Nabaztag: tag. Elle a fait l'objet ensuite d'un nyiaj txiag kev koom tes nrog Ulule en juin 2019, si vous souhaitez
Kev Txhim Kho De La Carte TagTagTag Pour Nabaztag: tag / Txhim Kho TagTagTag Board ntawm Koj Nabaztag: tag: 23 Kauj Ruam
Kev Txhim Kho De La Carte TagTagTag Pour Nabaztag: tag / Txhim Kho TagTagTag Pawg ntawm Koj Nabaztag: tag: (saib hauv qab no rau lus Askiv version) La carte TagTagTag a été créée en 2018 lors de Maker Faire Paris pour faire renaitre les Nabaztag et les Nabaztag: tag . Elle a fait l'objet ensuite d'un nyiaj txiag kev koom tes nrog Ulule en juin 2019, si vous souhaitez
10 Watt Endurance Laser Module Kev Txhim Kho Txhim Kho: 6 Cov Kauj Ruam
10 Watt Endurance Laser Module Kev Txhim Kho Txhim Kho: Kuv yuav 10 watt cov khoom siv laser. Kuv tau teeb tsa cov khoom siv laser thiab txuas nrog raws li cov lus qhia Thaum kuv tau kho lub laser volt thiab tam sim no kom muaj lub zog zoo laser thiab ua kom lub laser diode nyab xeeb ib yam li kuv tsis tuaj yeem tau txais ntau dua 3.7A@5VI
UDuino: Tus Nqi Tsawg Tus Nqi Arduino Tau Txais Kev Txhim Kho Kev Txhim Kho: 7 Cov Kauj Ruam (nrog Duab)
UDuino: Tus Nqi Tsawg heev Arduino Compatible Development Board: Arduino boards yog qhov zoo rau kev tsim qauv. Txawm li cas los xij lawv tau txais qhov kim dua thaum koj muaj ntau txoj haujlwm sib xws lossis xav tau ntau lub rooj tswj hwm rau txoj haujlwm loj dua. Muaj qee qhov zoo, pheej yig dua (Boarduino, Freeduino) tab sis
Yuav Ua Li Cas Txhim Kho Kev Txhim Kho Lub Vev Xaib ntawm Localhost: 6 Cov Kauj Ruam
Yuav Ua Li Cas Txhim Kho Kev Txhim Kho Lub Vev Xaib ntawm Localhost: Cov lus qhia no yog qhia koj yuav ua li cas rau nruab Apache, PHP, MySQL ntawm localhost. Kuj yuav teeb tsa nws li cas kom koj muaj qee lub network txias, xws li muaj peev xwm thauj lub hauv paus npe siv lub khoos phis tawj lub npe (http: //desktop/index.php), b