- I2C and SPI pinout
- I2C and SPI pinout
-
I2C and SPI pinout
In dts file I found pins for i2c0-pi (PI6, PI7) and i2c4-ph (PH6, PH7). These are pins, that I can use from 40 Pin GPIO (CB1 eMMC + Pi4B Adapter). I activate it in armbian-config. nano /boot/armbianEnv.txt : -> verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h616 fdtfile=allwinner/sun50i-h616-bigtreetech-cb1-emmc.dtb rootdev=UUID=a8678701-cc8d-475f-9c91-758f792917c9 rootfstype=ext4 overlays=i2c0-pi i2c4-ph usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u Rebooting... After asked enabled i2c buses: i2cdetect -ls -> i2c-0 i2c mv64xxx_i2c adapter I2C adapter i2c-1 i2c DesignWare HDMI I2C adapter Where is i2c-4 bus, that I choose in armbian-config?? Ok, I connect my devices with pins PI6 and PI7 (I tried to use PI6 as SDA, Pi7 as SCL, and vice versa), when I ask i2c0 addresses, there are no my devices (my devices addresses are 0x20 and 0x48): i2cdetect -y 0 -> 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- Only system device UU - 0x36 What's wrong? P.S. Everything works with CM4 module.
-
I2C and SPI pinout
Hello. Because of bad CB1 eMMC board manual, and very incompetent and formal tech support (they approve that their boards can only be used for 3D printers🤦🤣) I don't understand, what pins (GPIOs) of CB1 eMMC board are used for I2C and SPI interfaces. And what pins will correspond to I2C and SPI interfaces in armbian-config -> System -> Hardware? I tried to test the board with the Pi4b_Adapter, but as I understood from pinout in the manual for the adapter (the pins for I2C 3 and 5) don't work with CB1 (NC - not connected), it works only with CM4. Does anyone know what other I2C pins are exposed on the adapter board? I plan to use the CB1 board as a platform for my projects. Здравствуйте. Из-за слабой документации на плату CB1 eMMC и некомпетентной и формальной техподдержки (которая утверждала, что их платы могут использоваться только для 3d принтеров🤦🤣) я не могу разобраться, какие выводы платы соответствуют интерфейсам I2C и SPI в armbian-config -> System -> Hardware. Я попробовал протестировать плату через адаптер Pi4b_Adapter, но, как я понял из распиновки в мануале, выводы 3 и 5 для I2C - не подключены, они могут использоваться только с платой Raspberry CM4. Может быть кто-то знает, какие другие выводы I2C выведены на плату адаптера и их можно использовать? Плату CB1 планирую использовать как платформу для своих проектов.