最終更新:2024-12-06 (金) 16:03:30 (46d)
Raspberry Pi/ピン配置
Top / Raspberry Pi / ピン配置
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#gpio-and-the-40-pin-header
40ピン
- Raspberry Pi 2/3/4 ではGPIOピン配置は同じ(40本)
コマンド
Raspberry Pi/シリアル通信
- 標準では無効になっている
- raspi-configで有効化
Raspberry Pi/GPIO
- GPIO 0~27
Raspberry Pi/UART
Raspberry Pi/I2C
- EEPROM
Data GPIO0 Clock GPIO1
Raspberry Pi/SPI?
- SPI0: MOSI (GPIO10); MISO (GPIO9); SCLK (GPIO11); CE0 (GPIO8), CE1 (GPIO7)
- SPI1: MOSI (GPIO20); MISO (GPIO19); SCLK (GPIO21); CE0 (GPIO18); CE1 (GPIO17); CE2 (GPIO16)
Raspberry Pi/PWM?
- Software PWM available on all pins
- Hardware PWM available on GPIO12, GPIO13, GPIO18, GPIO19