Cov txheej txheem:

Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas: 4 Cov Kauj Ruam
Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas: 4 Cov Kauj Ruam

Video: Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas: 4 Cov Kauj Ruam

Video: Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas: 4 Cov Kauj Ruam
Video: Python! Hiding Password Inputs 2024, Hlis ntuj nqeg
Anonim
Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas
Python Terminal rau Pheej Yig Pi Arduino Kev Sib Txuas

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

Cov cuab yeej
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

Kev teeb tsa
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: