First update for OrangePi 5 (Debian 11)
1. Enabling GPIO UART0 for GPS modem
GPIO pinout ->
http://www.orangepi.org/html/hardWare/co...-Pi-5.html
enabling in /boot/orangpiEnv.txt add/change line:
overlays=uart0-m2
Pins: 2,8,10,14 to be used for GPS modem (similar to Raspberry Pi)
Pins 4 and 6 used by Cooler/Fan
Rest steps of GPS modem installation as typical for Raspberry Pi
2. Enabling GPIO I2C for pypilot/sensors (in my case ICM-20948+BMP280+AHT20)
GPIO pinout ->
http://www.orangepi.org/html/hardWare/co...-Pi-5.html
enabling in /boot/orangpiEnv.txt in the line:
overlays=i2c5-m3 (or add to the existing modules after space)
Pins: 1,3,5,9 (as for Raspberry Pi)
root@orangepi5:~# i2cdetect -y 5
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77
IMU: ICM-20948 (address 0x68, SEN-15335) - detected
BMP280 - 0x77 detected
AHT20* - 0x38 detected
Overall status:
root@orangepi5:~# gpio readall
+------+-----+----------+--------+---+ OPI5 +---+--------+----------+-----+------+
| GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
+------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
| | | 3.3V | | | 1 || 2 | | | 5V | | |
| 47 | 0 | SDA.5 | ALT9 | 1 | 3 || 4 | | | 5V | | |
| 46 | 1 | SCL.5 | ALT9 | 1 | 5 || 6 | | | GND | | |
| 54 | 2 | PWM15 | IN | 1 | 7 || 8 | 1 | ALT10 | RXD.0 | 3 | 131 |
| | | GND | | | 9 || 10 | 1 | ALT10 | TXD.0 | 4 | 132 |
| 138 | 5 | CAN1_RX | IN | 1 | 11 || 12 | 1 | IN | CAN2_TX | 6 | 29 |
| 139 | 7 | CAN1_TX | IN | 1 | 13 || 14 | | | GND | | |
| 28 | 8 | CAN2_RX | IN | 1 | 15 || 16 | 1 | IN | SDA.1 | 9 | 59 |
| | | 3.3V | | | 17 || 18 | 1 | IN | SCL.1 | 10 | 58 |
| 49 | 11 | SPI4_TXD | IN | 1 | 19 || 20 | | | GND | | |
| 48 | 12 | SPI4_RXD | IN | 1 | 21 || 22 | 1 | IN | GPIO2_D4 | 13 | 92 |
| 50 | 14 | SPI4_CLK | IN | 1 | 23 || 24 | 1 | IN | SPI4_CS1 | 15 | 52 |
| | | GND | | | 25 || 26 | 1 | IN | PWM1 | 16 | 35 |
+------+-----+----------+--------+---+----++----+---+--------+----------+-----+------+
| GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
+------+-----+----------+--------+---+ OPI5 +---+--------+----------+-----+------