Kuv yuav qhib Gpio ntawm Raspberry Pi li cas?
Kuv yuav qhib Gpio ntawm Raspberry Pi li cas?

Video: Kuv yuav qhib Gpio ntawm Raspberry Pi li cas?

Video: Kuv yuav qhib Gpio ntawm Raspberry Pi li cas?
Video: Qhia nej paub kuv yuav qhib lub lab muag phom cua FX sai sai nov / FX Impact scopecam footage 2024, Kaum ib hlis
Anonim

VIDEO

Ntawm no, Raspberry Pi GPIO ua haujlwm li cas?

Cov Raspberry Pi's GPIO Pins GPIO sawv cev rau General Purpose Input Output. Nws yog ib txoj kev Raspberry Pi tuaj yeem tswj hwm thiab saib xyuas lub ntiaj teb sab nraud los ntawm kev txuas nrog hluav taws xob circuits. Cov Raspberry Pi muaj peev xwm tswj tau LEDs, tig lawv rau lossis tawm, lossis lub cev muaj zog, lossis ntau lwm yam.

Muaj pes tsawg GPIO pins Raspberry Pi? 40 pin

Ib yam li ntawd, tib neeg nug, dab tsi yog GPIO pins siv rau ntawm Raspberry Pi?

GPIO yog koj tus qauv tus pin uas tau siv tig cov khoom siv rau thiab tawm. Piv txwv li, ib tug LED. I2C (Inter-Integrated Circuit) tus pin tso cai rau koj txuas thiab tham nrog cov khoom siv kho vajtse uas txhawb cov txheej txheem no (I2C Protocol). Cov txheej txheem no feem ntau yuav siv li ob tus pin.

Puas yog GPIO pins analog lossis digital?

Thaum tag nrho GPIO pins muab xwb digital cov tswv yim lossis cov zis, PWM tuaj yeem siv tau (nrog rau cov khoom siv hluav taws xob sab nraud tsawg heev - qhov qis-pass-filter) kom tsawg kawg nkaus analog teeb liab. Lub Pi muaj ob lub kho vajtse PWM tus pin thiab tuaj yeem siv lwm yam ntxiv GPIO pins PWM software.

Pom zoo: