Cov txheej txheem:
Video: Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Raspberry Pi yog lub tshuab Linux yog li muaj tej zaum ib tuj ntawm daim ntawv thov davhlau ya nyob twg rau nws. Tab sis kuv tau sau qhov tshiab hauv Python, vim li cas kuv thiaj thab? Nyeem rau. Yog tias koj tab tom ua ib qhov haujlwm uas siv ob tus Pi thiab Arduino koj yuav xav tau ib txoj hauv kev rau ob leeg los sib tham. Txij li Pi yuav khiav Arduino ib puag ncig kev txhim kho, thiab nws muaj lub davhlau ya nyob twg zoo nkauj, koj yuav tsum zaum pib nrog qhov ntawd. Tab sis kuv Python davhlau ya nyob twg tau txais txiaj ntsig vim tias.
Tus Pi tau npaj tiag tiag los ua haujlwm ntawm cov neeg siv sau cov haujlwm siv Python yog li nws zoo nkauj kom muaj Python davhlau ya nyob twg
Kuv lub davhlau ya nyob twg tau sau nrog qee qhov tshwj xeeb rau kev ua haujlwm nrog micro tswj, zoo li Arduino
Lub davhlau ya nyob twg tuaj yeem ua haujlwm rau nws tus kheej, Arduino IDE cov lej saib xyuas, tsis tuaj yeem ua haujlwm tau
Yog tias koj ua txoj haujlwm tshwj xeeb koj yuav zoo li xav tau txoj haujlwm kev sib txuas lus los tswj nws, koj tuaj yeem siv lub davhlau ya nyob twg program thiab txiav thiab muab tshuaj txhuam nws ib feem los ua ib qho
Tam sim no lub davhlau ya nyob twg tsuas yog txhawb kev sib txuas lus RS232 tab sis kuv vam tias yuav txuas ntxiv txhawb SPI thiab I2C cov kev cai (tej zaum koj xav pab)
Koj tuaj yeem siv lub davhlau ya nyob twg ntawm qhov me me ntawm txhua lub operating system, yog li yog tias koj siv lub tshuab Linux, Mac lossis Windows (qhov twg kuv tau tsim nws thawj zaug) koj yuav tsum zoo. Txhua yam ntawm no yog qhib qhov chaw yog li pheej yig ntawm no txhais tau tias dawb
Lus ceeb toom: Qhov no yog cov lus qhia qub qub. Cov cai tau ua kom zoo dua qub. Saib: Python Smart Terminal rau sau txog cov xwm txheej tam sim no, thiab txuas rau cov cai tam sim no.
Kauj Ruam 1: Cov Cuab Yeej
PC - zoo nkauj npaum li OS, Linux, Windows OSX….. Rasberry PI zoo meej
Python (Kuv nyiam Anaconda rub tawm, qhov no tau tham me ntsis hauv https://www.instructables.com/id/ClipBoard-Communic… thiab
Kev paub pib ntawm Python
Arduino
Arduino rau USB kev sib txuas Qhov no tuaj yeem yog cable thiab usb chaw nres nkoj hauv Arduinos zoo li UNO, lossis FTDI cable (https://www.sparkfun.com/products/9717 txuas rau TTL RS232 Ardunio zoo li Lub Pob Zeb Pob Zeb Zoo
Kauj ruam 2: Kev teeb tsa
Tau txais cov ntaub ntawv, (lossis tsuas yog nyeem lawv nrog ob peb nyem), los ntawm github Project's GitHub Cov Ntaub Ntawv (qhov twg yuav hloov tshiab tseem yuav tshaj tawm thaum lawv tau tsim) Muab cov ntaub ntawv (unzipped yog tias yog qhov koj xaiv rub tawm) hauv ib phau ntawv teev npe hauv koj qhov kev txhim kho Python ib puag ncig.
Pom zoo:
Raspberry PI 3 - Pab Kev Sib Txuas Txuas rau TtyAMA0 rau BCM GPIO 14 thiab GPIO 15: 9 Cov Kauj Ruam
Raspberry PI 3 - Pab Txhawb Kev Sib Txuas rau TtyAMA0 rau BCM GPIO 14 thiab GPIO 15: Kuv nyuam qhuav muaj kev txaus siab los ua kom UART0 ntawm kuv Raspberry Pi (3b) yog li kuv tuaj yeem txuas nws ncaj qha rau RS -232 teeb liab qib ntaus ntawv siv tus qauv 9 -pin d-sub txuas tsis tas yuav hla USB mus rau RS-232 adapter. Ib feem ntawm kuv qhov kev xav
Pheej Yig Qhov Chaw Nkag Nkag Pheej Yig Pheej Yig: 6 Kauj Ruam (nrog Duab)
Pheej Yig Qhov Chaw Nkaum Nkag Pheej Yig: CreditI zoo nkauj heev theej Savjee qhov kev siv tab sis tsis txhob siv Shelly Kuv siv Sonoff Basic. Txheeb xyuas nws lub vev xaib thiab YouTube Channel
Kev Sib Txuas Txuas Txuas Txuas Siv Bluefruit: 4 Cov Kauj Ruam
Kev Sib Txuas Tsis Sib Txuas Siv Bluefruit: Nov yog cov lus qhia yooj yim los ntawm kauj ruam qhia los hloov koj cov xov hlau nrog bluetooth tsis muaj zog txuas: Nws coj kuv ib pliag los daws qhov no vim tias tsis muaj cov ntaub ntawv hais txog kev ua qhov no nrog bluetooth niaj hnub tsis muaj zog thev naus laus zis raws li Bluefrui
EZ Kev Sib Txuas Txuas Txuas Txuas Ntxiv - Tsis Muaj Tus Kheej! (CSRC-311): 7 Kauj Ruam
EZ Kev Sib Txuas Txuas Txuas Txuas Ntxiv - Tsis Muaj Tus Kheej! (CSRC-311): Tsis ntev dhau los ntawm Azamom.com (thov txim, tam sim no tau muag tawm) Kuv tau hla qhov kev pom zoo zoo ntawm Common Sense RC CSRC-311 tus qauv-siv servos.Noj zoo, Kuv xav hloov qee yam ntawm tsis tu ncua kev sib hloov. Txoj kev kuv tuaj nrog yog yooj yim heev thiab xav tau
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Qhov Chaw Mounted Footrest: 9 Cov Kauj Ruam (nrog Duab)
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Lub Hauv Paus Mounted Footrest: Mid-drive fais fab log lub rooj zaum (PWC) tau dhau los ua neeg nyiam nyob rau xyoo tas los no. Txawm li cas los xij, vim qhov kev tso rau pem hauv ntej casters, cov tsoos sab-mounted footrests tau hloov los ntawm ib qho chaw nruab nrab-footrest. Hmoov tsis zoo, center-mou