JacobBGardner Posted Friday at 03:00 PM Posted Friday at 03:00 PM Alright so I am trying to use this OLED display: https://www.amazon.com/AITRIP-Display-SSD1306-3-3V-5V-Arduino/dp/B08JPYJ35Y?th=1 with Armbian(minimal) on my orange pi zero 2w, but I just cant get the i2c1 bus to detect it. Here's some more details: uname -r returns: 6.12.23-current-sunxi64 cat /boot/armbianEnv.txt returns: verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h616 rootdev=UUID=adb61282-df86-4116-9688-e94c56913687 rootfstype=ext4 overlays=i2c0-pi i2c1-pi param_i2c1_pin_sda=3 param_i2c1_pin_scl=5 user_overlays= usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u sudo i2cdetect -l returns: i2c-0 i2c DesignWare HDMI I2C adapter i2c-1 i2c mv64xxx_i2c adapter I2C adapter i2c-2 i2c mv64xxx_i2c adapter I2C adapter i2c-3 i2c mv64xxx_i2c adapter I2C adapter i2c-4 i2c mv64xxx_i2c adapter I2C adapter sudo i2cdetect -y 1 returns: 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: -- -- -- -- -- -- -- -- Here's a picture of the display: Here's a picture of the pin layout: VCC is going to 3.3v, GND to GND, SDA to pin 3, and SCK to pin 5 Thanks! Feel free to ask for more details! 0 Quote
Werner Posted Friday at 03:04 PM Posted Friday at 03:04 PM zero2 != 2w moved to staging Providing logs with armbianmonitor -u helps with troubleshooting and significantly raises chances that issue gets addressed. 0 Quote
JacobBGardner Posted Friday at 05:56 PM Author Posted Friday at 05:56 PM https://paste.next.armbian.com/yogopozufa 0 Quote
IBV Posted Saturday at 09:15 AM Posted Saturday at 09:15 AM Hi, can you confirm that the OLED is working connecting it to another device (raspberry, Arduino)? It should be properly powered, cables should be checked if ok. Also, check in the spec if pull-up resistors are needed. You can force a scan of all i2c addresses again like this: # Force scan all addresses for i in {0..127}; do sudo i2cget -y 1 $i 2>/dev/null && echo "Device found at: 0x$(printf '%02x' $i)" done 0 Quote
JacobBGardner Posted Monday at 09:14 PM Author Posted Monday at 09:14 PM I tried on a RPI and it did indeed detect the OLED display. I forced the scan: # Force scan all addresses for i in {0..127}; do sudo i2cget -y 1 $i 2>/dev/null && echo "Device found at: 0x$(printf '%02x' $i)" done and it returned nothing 0 Quote
Ryzer Posted 2 hours ago Posted 2 hours ago Is i2c-1 actually mapped out to i2c-1? It should be if the aliases are setup correctly. Secondly even if the i2c bus is enabled, have the pins been successful muxed into i2c mode? You should be able to check by: sudo cat /sys/kernel/debug/pinctrl/300b000.pinctrl/pinmux-pins | grep i2c 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.